Click or drag to resize

BBox Class

Store the bounding box of a mesh and expose center and radius of a bounding sphere.
Inheritance Hierarchy
SystemObject
  Demo3D.VisualsBBox

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 18.03.00
Syntax
C#
public class BBox

The BBox type exposes the following members.

Constructors
  NameDescription
Public methodBBox
Initializes a new instance of the BBox class
Public methodBBox(BSphere)
Initializes a new instance of the BBox class
Public methodBBox(Vector3)
Initializes a new instance of the BBox class
Public methodBBox(Vector3, Vector3)
Create a bounding box.
Public methodBBox(Vector3, Single)
Create a bounding sphere.
Public methodBBox(Single, Single, Single)
Initializes a new instance of the BBox class
Top
Properties
Methods
  NameDescription
Public methodAdd(BSphere)
Public methodAdd(Vector3)
Public methodContains
Public methodStatic memberFromPoints
Public methodStatic memberGE
Public methodIntersects(Ray)
Whether the specified ray intersects the bounding box.
Public methodIntersects(Ray, Single)
Whether the specified ray intersects the bounding box.
Public methodStatic memberLE
Public methodStatic memberMax
Public methodStatic memberMin
Public methodToString (Overrides ObjectToString.)
Public methodStatic memberTransform
Get the bounding box and transform it into parent coordinates. Bounding cube needs all 8 points to be transformed in case of rotation p3 p0/pMax p7 p4 p2 p1 p6/pMin p5 And then new bounding box computed to be axis aligned.
Top
Operators
Fields
  NameDescription
Public fieldCenter
Public fieldStatic memberEmpty
Public fieldPmax
Public fieldPmin
Public fieldSize
Top
See Also