AnyCAD Rapid API 2023
Help you to create a better world!
HoleExplorLegacy Class Reference

Public Member Functions

boolean Initialize (TopoShape solid)
 
GBBox GetBoundingBox ()
 
TopoShape GetShape ()
 
int GetDirection ()
 
void SetDirection (int direction)
 
double GetTolerance ()
 
void SetTolerance (double tol)
 
double GetTubeWallThickness ()
 
void SetTubeWallThickness (double thickness)
 
int ComputeExteriorHoles ()
 
int ComputeIteriorHoles ()
 
int GetFaceCount ()
 
TopoShape GetFace (int idx)
 
Int32List GetInteriorFaces ()
 
Int32List GetMiddleFaces ()
 
Int32List GetExteriorFaces ()
 
int GetExteriorHoleCount ()
 
HoleEdgeIndexList GetExteriorHole (int idx)
 
TopoShape GetExteriorHoleWire (int idx)
 
int GetInteriorHoleCount ()
 
HoleEdgeIndexList GetInteriorHole (int idx)
 
TopoShape GetEdge (int faceIdx, int edgeIdx)
 
TopoShape GetHoleEdge (HoleEdgeIndex index)
 

Detailed Description

Find the hole information from solid.
HoleExplor exp;
exp.Initialize(shape);
exp.Compute();

Member Function Documentation

◆ ComputeExteriorHoles()

int HoleExplorLegacy.ComputeExteriorHoles ( )

Compute the exterior holes

Returns
the count

◆ ComputeIteriorHoles()

int HoleExplorLegacy.ComputeIteriorHoles ( )

Compute the iterior holes

Returns
the count

◆ GetBoundingBox()

GBBox HoleExplorLegacy.GetBoundingBox ( )

Get the bounding box

Returns
the bounding box

◆ GetDirection()

int HoleExplorLegacy.GetDirection ( )

Get direction of the shape. 0:X, 1:Y, 2:Z

Returns
the direction.

◆ GetEdge()

TopoShape HoleExplorLegacy.GetEdge ( int  faceIdx,
int  edgeIdx 
)

Get the edge of face by index

Parameters
faceIdxthe face index
edgeIdxthe edge index
Returns
the face shape.

◆ GetExteriorFaces()

Int32List HoleExplorLegacy.GetExteriorFaces ( )

Get exterior faces

Returns
face indices.

◆ GetExteriorHole()

HoleEdgeIndexList HoleExplorLegacy.GetExteriorHole ( int  idx)

Get the edges of hole by index.

Parameters
idxthe index.
Returns
the edge indices of hole.

◆ GetExteriorHoleCount()

int HoleExplorLegacy.GetExteriorHoleCount ( )

Get hole count.

Returns
the hole count

◆ GetExteriorHoleWire()

TopoShape HoleExplorLegacy.GetExteriorHoleWire ( int  idx)

Get the wire of exterior hole idx

Parameters
idxthe hole id.
Returns
the wire.

◆ GetFace()

TopoShape HoleExplorLegacy.GetFace ( int  idx)

Get the face by index

Parameters
idxthe face index.
Returns
the face shape.

◆ GetFaceCount()

int HoleExplorLegacy.GetFaceCount ( )

Get face count.

◆ GetInteriorFaces()

Int32List HoleExplorLegacy.GetInteriorFaces ( )

Get interior faces

Returns
face indices.

◆ GetInteriorHole()

HoleEdgeIndexList HoleExplorLegacy.GetInteriorHole ( int  idx)

Get the edges of hole by index.

Parameters
idxthe index.
Returns
the edge indices of hole.

◆ GetInteriorHoleCount()

int HoleExplorLegacy.GetInteriorHoleCount ( )

Get hole count.

Returns
the hole count

◆ GetMiddleFaces()

Int32List HoleExplorLegacy.GetMiddleFaces ( )

Get middle faces

Returns
face indices.

◆ GetShape()

TopoShape HoleExplorLegacy.GetShape ( )

Get the input shape.

Returns
the shape.

◆ GetTolerance()

double HoleExplorLegacy.GetTolerance ( )

Get tolerance.

Returns
the tolerance.

◆ GetTubeWallThickness()

double HoleExplorLegacy.GetTubeWallThickness ( )

Get the wall thickness, not accurate.

Returns
the approximately thickness.

◆ Initialize()

boolean HoleExplorLegacy.Initialize ( TopoShape  solid)

Initialize by solid.

Parameters
solidthe solid to be process.
Returns
false if failed.

◆ SetDirection()

void HoleExplorLegacy.SetDirection ( int  direction)

Set the direction of the shape.1:X, 2:Y, 3:Z

◆ SetTolerance()

void HoleExplorLegacy.SetTolerance ( double  tol)

Set the tolerance.

Parameters
tolthe tolerance.

◆ SetTubeWallThickness()

void HoleExplorLegacy.SetTubeWallThickness ( double  thickness)

Set the approximately thickness.

Parameters
thicknessthe thickness value.