AnyCAD Rapid SDK  2021
The Rapid CAD SDK
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
HoleExplor Class Reference

Public Member Functions

synchronized void delete ()
 
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)
 

Protected Member Functions

 HoleExplor (long cPtr, boolean cMemoryOwn)
 
void swigSetCMemOwn (boolean own)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (HoleExplor obj)
 

Detailed Description


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

Member Function Documentation

int HoleExplor.ComputeExteriorHoles ( )

Compute the exterior holes

Returns
the count
int HoleExplor.ComputeIteriorHoles ( )

Compute the iterior holes

Returns
the count
GBBox HoleExplor.GetBoundingBox ( )

Get the bounding box

Returns
the bounding box
int HoleExplor.GetDirection ( )

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

Returns
the direction.
TopoShape HoleExplor.GetEdge ( int  faceIdx,
int  edgeIdx 
)

Get the edge of face by index

Parameters
faceIdxthe face index
edgeIdxthe edge index
Returns
the face shape.
Int32List HoleExplor.GetExteriorFaces ( )

Get exterior faces

Returns
face indices.
HoleEdgeIndexList HoleExplor.GetExteriorHole ( int  idx)

Get the edges of hole by index.

Parameters
idxthe index.
Returns
the edge indices of hole.
int HoleExplor.GetExteriorHoleCount ( )

Get hole count.

Returns
the hole count
TopoShape HoleExplor.GetExteriorHoleWire ( int  idx)

Get the wire of exterior hole idx

Parameters
idxthe hole id.
Returns
the wire.
TopoShape HoleExplor.GetFace ( int  idx)

Get the face by index

Parameters
idxthe face index.
Returns
the face shape.
int HoleExplor.GetFaceCount ( )

Get face count.

Int32List HoleExplor.GetInteriorFaces ( )

Get interior faces

Returns
face indices.
HoleEdgeIndexList HoleExplor.GetInteriorHole ( int  idx)

Get the edges of hole by index.

Parameters
idxthe index.
Returns
the edge indices of hole.
int HoleExplor.GetInteriorHoleCount ( )

Get hole count.

Returns
the hole count
Int32List HoleExplor.GetMiddleFaces ( )

Get middle faces

Returns
face indices.
TopoShape HoleExplor.GetShape ( )

Get the input shape.

Returns
the shape.
double HoleExplor.GetTolerance ( )

Get tolerance.

Returns
the tolerance.
double HoleExplor.GetTubeWallThickness ( )

Get the wall thickness, not accurate.

Returns
the approximately thickness.
boolean HoleExplor.Initialize ( TopoShape  solid)

Initialize by solid.

Parameters
solidthe solid to be process.
Returns
false if failed.
void HoleExplor.SetDirection ( int  direction)

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

void HoleExplor.SetTolerance ( double  tol)

Set the tolerance.

Parameters
tolthe tolerance.
void HoleExplor.SetTubeWallThickness ( double  thickness)

Set the approximately thickness.

Parameters
thicknessthe thickness value.