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

Public Member Functions

BufferShapeBase GetShape ()
 
boolean Initialize (BufferShapeBase shape)
 
int ComputeDirection ()
 
boolean Compute (int dir)
 
long GetHoleCount ()
 
Uint32List GetHoleFaces (long holeIdx)
 
void BuildHoleExteriorEdges ()
 
void BuildHoleInteriorEdges ()
 
Uint32List GetHoleExteriorEdges (long holeIdx)
 
Uint32List GetHoleInteriorEdges (long holeIdx)
 
Uint32List GetHoleExteriorSupportEdges (long holeIdx)
 
Uint32List GetHoleInteriorSupportEdges (long holeIdx)
 
long GetExteriorSupportFace (long supportEdgeIdx)
 
long GetInteriorSupportFace (long supportEdgeIdx)
 
void Debug (String fileName)
 

Detailed Description

<> Compute the Hole feature

Member Function Documentation

◆ Compute()

boolean HoleExplor.Compute ( int  dir)

Compute the holes.

Parameters
dirthe direction. 0: x; 1: y; 2: z
Returns
true if done.

◆ GetExteriorSupportFace()

long HoleExplor.GetExteriorSupportFace ( long  supportEdgeIdx)

Get the index of the exterior face where the support edge locating.

Parameters
supportEdgeIdxthe edge index.
Returns
the face ID.

◆ GetHoleCount()

long HoleExplor.GetHoleCount ( )

Get the hole count.

Returns
the number.

◆ GetHoleExteriorEdges()

Uint32List HoleExplor.GetHoleExteriorEdges ( long  holeIdx)

Get the exterior edges of the hole.

Parameters
holeIdxthe hole index.
Returns
the edge IDs.

◆ GetHoleExteriorSupportEdges()

Uint32List HoleExplor.GetHoleExteriorSupportEdges ( long  holeIdx)

Get the edges of the exterior faces.

Parameters
holeIdxthe hole index.
Returns
the edge IDs.

◆ GetHoleFaces()

Uint32List HoleExplor.GetHoleFaces ( long  holeIdx)

Get the faces of the hole.

Parameters
holeIdxthe hole index.
Returns
the face list.

◆ GetHoleInteriorEdges()

Uint32List HoleExplor.GetHoleInteriorEdges ( long  holeIdx)

Get the interior edges of the hole.

Parameters
holeIdxthe hole index.
Returns
the edge IDs.

◆ GetHoleInteriorSupportEdges()

Uint32List HoleExplor.GetHoleInteriorSupportEdges ( long  holeIdx)

Get the edges of the interior faces.

Parameters
holeIdxthe hole index.
Returns
the edge IDs.

◆ GetInteriorSupportFace()

long HoleExplor.GetInteriorSupportFace ( long  supportEdgeIdx)

Get the index of the interior face where the support edge locating.

Parameters
supportEdgeIdxthe edge index.
Returns
the face ID.

◆ Initialize()

boolean HoleExplor.Initialize ( BufferShapeBase  shape)

Init the HoleExplor