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

Public Member Functions

 FaceIntersector (TopoShape face, double tolerance)
 
boolean IsValid ()
 
boolean Perform (GLin line, double smallestP, double highestP)
 
boolean Perform (TopoShape edge)
 
boolean IsParallel ()
 
int GetPointCount ()
 
double UParameter (int idx)
 
double VParameter (int idx)
 
double WParameter (int idx)
 
GPnt GetPoint (int idx)
 

Static Public Member Functions

static GPntList Instersect (TopoShape face, TopoShape edge)
 

Detailed Description

<>
Intersection testing between face and curve.

Member Function Documentation

◆ GetPoint()

GPnt FaceIntersector.GetPoint ( int  idx)

Returns the geometric point of the ith intersection between the line and the surface.

Parameters
idxthe index, start from 0.
Returns
the point.

◆ GetPointCount()

int FaceIntersector.GetPointCount ( )

Get the intersecting point number

Returns
the count.

◆ IsParallel()

boolean FaceIntersector.IsParallel ( )

Test if curve is parallel or belongs face surface

Returns
Returns true if curve is parallel or belongs face surface.

◆ Perform() [1/2]

boolean FaceIntersector.Perform ( GLin  line,
double  smallestP,
double  highestP 
)

Perform the intersection between the line and face.

Parameters
linesegment.
smallestPis the smallest parameter on the line
highestPis the highest parmaeter on the line
Returns
true if done.

◆ Perform() [2/2]

boolean FaceIntersector.Perform ( TopoShape  edge)

Perform the intersection between the ledgeine and face.

Parameters
edgethe edge.
Returns
true if done.

◆ UParameter()

double FaceIntersector.UParameter ( int  idx)

Returns the U parameter of the ith intersection point on the surface.

Parameters
idxthe index, start from 0
Returns
the u parameter.

◆ VParameter()

double FaceIntersector.VParameter ( int  idx)

Returns the V parameter of the ith intersection point on the surface.

Parameters
idxthe index, start from 0
Returns
the V parameter.

◆ WParameter()

double FaceIntersector.WParameter ( int  idx)

Returns the parameter of the ith intersection point on the line.

Parameters
idxthe index, start from 0
Returns
the parameter of the edge.