HB-Aperture Plane-XY Axes Varies with Surface Orientation?

Hi all,

I am running into a weird issue, and not sure if its a bug, or the intended behavior?

When creating Honeybee Apertures in Rhino, the XY Axis of the Aperture geometry’s Plane seems to flip, depending on the ‘direction’ of the face in Rhino? That is very surprising to me? I would assume that the Aperture XY would match the Rhino XY?

If I just visualize the XYZ-Axes of the original Rhino geometry, and the Aperture Geometry (note: the aperture is offset for clarity) note that the X and Y Axes flip as I rotate the rhino-geometry about the world-Y:




That seems really odd to me - isn’t it? Or is there some reason that the XY axis flips like that depending on the surface’s original normal direction?


This uncertainty/variability in the geometry’s XY-Axes is causing issues with some later uses where I’m sorting, labeling, and ordering aperture elements.

Is there a known way to manage this variability and get the Plane of the Aperture to match the Plane of the input geometry consistently? Example attached for reference.

thanks!!
@edpmay

aperture_example.gh (20.9 KB)

Hey @edpmay ,

The XY axis of the Aperture plane in the honeybee object originates from the UV plane of the Rhino surface. You can see that this happens on this line of the source code:

Translating the Aperture geometry back into Rhino breps will erase the original plane since we do not pass this to the Rhino breps that is created on this line of code:

So the reason why the XY axis might not make sense is because it is being regenerated from the vertices.

Use Aperture.geometry.plane if you want something with an XY plane that follows the original UV grid of the Rhino surface.

ah! I see. Thanks @chris !

best
@edpmay

1 Like