Detecting Mirrored blocks

Hello,

How can you detect mirrored blocks?

I’m sending blocks to Revit with RhinoInside and am getting imcorrect transforms because I’m not able to differentiate mirrored vs. rotated blocks. I can see with GH that the transforms are different, but I’m not sure how to set up a reliable way to distinguish mirrored vs. rotated.

mirror.vs.rotate.3dm (2.8 MB)

Hi lignindes,

Mirrored blocks in Rhino have a negative Z axis, try this definition to sort Rhino mirrored blocks.

R8-Mirrored-Z-Axis.gh (9.0 KB)

1 Like

Hi @lignindes,

The attached Python script provides a reliable way of testing.

IsBlockInstanceMirrored.py (842 Bytes)

– Dale

2 Likes

Thank you both so much @Japhy and @dale !

We all now know about the depths of RhinoCommon, all the way down to the TransformSimilarityType enum!

TransformSimilarityType enum