Hide menu
Loading...
Searching...
No Matches
cadex.Measurements.BoundingBox Class Reference

Computes bounding boxes of objects. More...

Inherits global.SystemIDisposable.

Public Member Functions

 BoundingBox (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 

Static Public Member Functions

static void Compute (cadex.ModelData.Model theModel, cadex.ModelData.Box theBox)
 
static void Compute (cadex.ModelData.ModelElement theElement, cadex.ModelData.Box theBox)
 
static void Compute (cadex.ModelData.Body theBody, cadex.ModelData.Box theBox)
 
static void Compute (cadex.ModelData.Shape theShape, cadex.Geom.Transformation theTransformation, cadex.ModelData.Box theBox)
 
static void Compute (cadex.ModelData.MeshShape theMeshShape, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 
static void ComputeMin (cadex.ModelData.Shape theShape, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 
static void ComputeMin (cadex.ModelData.Shape theShape, cadex.Geom.Transformation theTransformation, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 
static void ComputeOptimal (cadex.ModelData.Model theModel, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 Returns an optimal bounding box.
 
static void ComputeOptimal (cadex.ModelData.Part thePart, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 Returns an optimal bounding box.
 
static void ComputeOptimal (cadex.ModelData.Body theBody, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 Returns an optimal bounding box.
 
static void ComputeOptimal (cadex.ModelData.Shape theShape, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 Returns an optimal bounding box.
 
static void ComputeOptimal (cadex.ModelData.MeshShape theMeshShape, cadex.ModelData.Box theBox, cadex.Geom.Transformation theOutTransformation)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Computes bounding boxes of objects.

Computes minimum bounding box and required transformation.

Computes a bounding a box of either a scene graph or its subtree. Uses a flat vector of parts with individual accumulated transformations.

Bounding box can be computed for the following types of objects:

A bounding box of a model is accumulation of bounding boxes of its roots.

A bounding box of an assembly is a cumulative bounding box of its children taking into account their transformation matrices.

A part's bounding box is accumulation of bounding boxes of available part's representations.

Member Function Documentation

◆ Compute() [1/3]

static void cadex.Measurements.BoundingBox.Compute ( cadex.ModelData.Body theBody,
cadex.ModelData.Box theBox )
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ Compute() [2/3]

static void cadex.Measurements.BoundingBox.Compute ( cadex.ModelData.ModelElement theElement,
cadex.ModelData.Box theBox )
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ Compute() [3/3]

static void cadex.Measurements.BoundingBox.Compute ( cadex.ModelData.Shape theShape,
cadex.Geom.Transformation theTransformation,
cadex.ModelData.Box theBox )
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ ComputeMin() [1/2]

static void cadex.Measurements.BoundingBox.ComputeMin ( cadex.ModelData.Shape theShape,
cadex.Geom.Transformation theTransformation,
cadex.ModelData.Box theBox,
cadex.Geom.Transformation theOutTransformation )
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

theTransformation specifies the input transformation that must be applied to theShape before computing its bounding box.

Note
The computation of minimum boxes is currently in feature preview state. Its API may change, so binary compatibility can be broken.

◆ ComputeMin() [2/2]

static void cadex.Measurements.BoundingBox.ComputeMin ( cadex.ModelData.Shape theShape,
cadex.ModelData.Box theBox,
cadex.Geom.Transformation theOutTransformation )
inlinestatic

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

theOutTransformation specifies the output transformation that was applied to theShape before computing its bounding box.

Note
The computation of minimum boxes is currently in feature preview state. Its API may change, so binary compatibility can be broken.

◆ ComputeOptimal() [1/4]

static void cadex.Measurements.BoundingBox.ComputeOptimal ( cadex.ModelData.Body theBody,
cadex.ModelData.Box theBox,
cadex.Geom.Transformation theOutTransformation )
inlinestatic

Returns an optimal bounding box.

theOutTransformation specifies the output transformation that was applied to theBody before computing its bounding box.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ ComputeOptimal() [2/4]

static void cadex.Measurements.BoundingBox.ComputeOptimal ( cadex.ModelData.Model theModel,
cadex.ModelData.Box theBox,
cadex.Geom.Transformation theOutTransformation )
inlinestatic

Returns an optimal bounding box.

theOutTransformation specifies the output transformation that was applied to theModel roots before computing its bounding box.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ ComputeOptimal() [3/4]

static void cadex.Measurements.BoundingBox.ComputeOptimal ( cadex.ModelData.Part thePart,
cadex.ModelData.Box theBox,
cadex.Geom.Transformation theOutTransformation )
inlinestatic

Returns an optimal bounding box.

theOutTransformation specifies the output transformation that was applied to thePart before computing its bounding box.

◆ ComputeOptimal() [4/4]

static void cadex.Measurements.BoundingBox.ComputeOptimal ( cadex.ModelData.Shape theShape,
cadex.ModelData.Box theBox,
cadex.Geom.Transformation theOutTransformation )
inlinestatic

Returns an optimal bounding box.

theOutTransformation specifies the output transformation that was applied to theShape before computing its bounding box.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.