Model3D
does not have this information, since projection is a view / viewport property.
You can use the GeneralTransform3DTo2D
class and, in particular, TransformBounds
This returns a rectangle with a two-dimensional axis ( Rect
) from the supplied three-dimensional bounding box. Pass the bounding box of your Model3D
into this, and it will return the projected borders.
So, you can get this conversion once and use it for each Model3D
in your scene as needed.
source share