Plane from instance reference?

Is there a quicker way to get a plane from a instance reference than…

var blockRef = block.getRefrences(0);
var xform = blockRef.InstanceXform;
Plane blockPlane = Plane.WorldXY.Transform(xform);

Hi @SpunkyDeadcat,

The the underlying geometry planar? If not, then it’s really up to you how you do this. Perhaps just getting the bounding box and then creating a plane from it’s corners is sufficient?

– Dale

it’s not really planar. would it be possible to pull a plane from the geometry’s gumball frame? What I posted works just curious if there was a better way.