Plane.GetCoordinateSystem() return empty Zaxis

Plane.GetCoordinateSystem() return empty Zaxis

m.cicognani
Contributor Contributor
158 Views
0 Replies
Message 1 of 1

Plane.GetCoordinateSystem() return empty Zaxis

m.cicognani
Contributor
Contributor

Just a weird behavior I think can be amended..

Plane pln = new Plane();    // create a standard plane, Normal is 0,0,1

CoordinateSystem3d ucsPln = pln.GetCoordinateSystem();
Debug.Print(ucsPln.Zaxis);   // Zaxis is empty: 0,0,0

CoordinateSystem3d ucsClone = CoordinateSystem3d(ucsPln.Origin, ucsPln.XAxis, ucsPln.YAxis);
Debug.Print(ucsClone.Zaxis);   // Zaxis is valid: 0,0,1

 

Is it just my environment or is by design? a bug?

Maybe it could be much clearer if Zaxis is computed immediately, is just  a cross product after all...

Not a great issue, but it took to me some time before I realized the Zaxis wasn't valid...

0 Likes
159 Views
0 Replies
Replies (0)