Hide menu
Loading...
Searching...
No Matches
cadex::Measurements::BoundingCylinder Class Reference

Computes bounding cylinder of objects. More...

Static Public Member Functions

static Geom::Cylinder ComputeOrientedCylinder (const ModelData::Part &thePart)
 Computes an oriented bounding cylinder of the part.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::Part &thePart, const Geom::Axis1d &theAxis)
 Computes an oriented bounding cylinder of the part using the specified axis.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::Body &theBody)
 Computes an oriented bounding cylinder of the body.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::Body &theBody, const Geom::Axis1d &theAxis)
 Computes an oriented bounding cylinder of the body using the specified axis.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::Shape &theShape)
 Computes an oriented bounding cylinder of the shape.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::Shape &theShape, const Geom::Axis1d &theAxis)
 Computes an oriented bounding cylinder of the shape using the specified axis.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::MeshShape &theMeshShape)
 Computes an oriented bounding cylinder of the shape.
 
static Geom::Cylinder ComputeOrientedCylinder (const ModelData::MeshShape &theMeshShape, const Geom::Axis1d &theAxis)
 Computes an oriented bounding cylinder of the mesh shape using the specified axis.
 

Detailed Description

Computes bounding cylinder of objects.

Bounding cylinder can be computed for:

  • part representation;
  • body (B-Rep or mesh);
  • shape (B-Rep or mesh).

theAxis parameter specifies on which axis the computed cylinder will be located (in general, the center of the computed cylinder is offset from the location of the given axis).

If theAxis is not specified, it will be calculated based on the geometry of the given object. For mesh bodies and mesh shapes, the default axis is used.

Member Function Documentation

◆ ComputeOrientedCylinder() [1/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::Body & theBody)
static

Computes an oriented bounding cylinder of the body.

Computes with the default axis (with \((0,0,0)\) location and \((1,0,0)\) direction) if theBody is mesh body.

◆ ComputeOrientedCylinder() [2/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::Body & theBody,
const Geom::Axis1d & theAxis )
static

Computes an oriented bounding cylinder of the body using the specified axis.

◆ ComputeOrientedCylinder() [3/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::MeshShape & theMeshShape)
static

Computes an oriented bounding cylinder of the shape.

Computes with the default axis (with \((0,0,0)\) location and \((1,0,0)\) direction).

◆ ComputeOrientedCylinder() [4/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::MeshShape & theMeshShape,
const Geom::Axis1d & theAxis )
static

Computes an oriented bounding cylinder of the mesh shape using the specified axis.

◆ ComputeOrientedCylinder() [5/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::Part & thePart)
static

Computes an oriented bounding cylinder of the part.

◆ ComputeOrientedCylinder() [6/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::Part & thePart,
const Geom::Axis1d & theAxis )
static

Computes an oriented bounding cylinder of the part using the specified axis.

◆ ComputeOrientedCylinder() [7/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::Shape & theShape)
static

Computes an oriented bounding cylinder of the shape.

◆ ComputeOrientedCylinder() [8/8]

Cylinder cadex::Measurements::BoundingCylinder::ComputeOrientedCylinder ( const ModelData::Shape & theShape,
const Geom::Axis1d & theAxis )
static

Computes an oriented bounding cylinder of the shape using the specified axis.