AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
ShapeIntersector类 参考

Public 成员函数

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

详细描述

<>
Intersection testing between face and shape.

成员函数说明

◆ GetPoint()

GPnt ShapeIntersector.GetPoint ( int  idx)

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

参数
idxthe index, start from 0.
返回
the point.

◆ GetPointCount()

int ShapeIntersector.GetPointCount ( )

Get the intersecting point number

返回
the count.

◆ Perform() [1/2]

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

Perform the intersection between the line and face.

参数
linesegment.
smallestPis the smallest parameter on the line
highestPis the highest parmaeter on the line
返回
true if done.

◆ Perform() [2/2]

boolean ShapeIntersector.Perform ( TopoShape  edge)

Perform the intersection between the ledgeine and face.

参数
edgethe edge.
返回
true if done.

◆ UParameter()

double ShapeIntersector.UParameter ( int  idx)

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

参数
idxthe index, start from 0
返回
the u parameter.

◆ VParameter()

double ShapeIntersector.VParameter ( int  idx)

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

参数
idxthe index, start from 0
返回
the V parameter.

◆ WParameter()

double ShapeIntersector.WParameter ( int  idx)

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

参数
idxthe index, start from 0
返回
the parameter of the edge.