In Pro Panel API it is sometimes necessary to recognize sides of a 3D object, for example to place them in a row with the same orientation.
Please mind that the sides of a Placement3D are something different than the sides of its minimal bounding box. They are related to the same part of the object 3D, independently of a transformation and a viewpoint.
The representation of sides is in the .Corners property, for example:
Placement3D.Corners.UpperRightBackAbsolute – Returns the upper right back coordinate in an absolute system.
Placement3D.Corners.LowerRightFrontRelative – Returns the lower right front coordinate in a relative system.
In this case, orientation is according to placement area.
Example terminal:
Example rack:
In this case, orientation is according to the absolute axis origin (assumed identity transformation):
Front | side with the lowest Y |
Back | side with highest Y |
Right | side with highest X |
Left | side with lowest X |
Top | side with highest Z |
Bottom | side with lowest Z |
SE isometric viewpoint:
SW isometric viewpoint :