Message 1 of 1
Plane.GetCoordinateSystem() return empty Zaxis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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...