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

Static Public Member Functions

static TopoShape ProjectOnPlane (TopoShape curve, GPnt planePosition, GDir planeDir, GDir projDir)
 
static TopoShape ProjectOnPlane (TopoShape curve, GPnt planePosition, GDir planeDir)
 
static TopoShape ProjectOnSurface (TopoShape curve, TopoShape surface, boolean faceBoundaries)
 
static TopoShape ProjectOnSurface (TopoShape curve, TopoShape surface)
 
static ProjSurfaceResult ProjectOnSurface (GPnt point, TopoShape surface, double tolerance)
 
static ProjCurveResult ProjectOnCurve (GPnt point, TopoShape curve, double tolerance)
 
static TopoShape ProjectOnShape (TopoShape wire, TopoShape shape, GDir dir)
 
static TopoShape ProjectOnShape (TopoShape wire, TopoShape shape, GPnt pt)
 

Detailed Description

<>
The Projection tools.

Member Function Documentation

◆ ProjectOnCurve()

static ProjCurveResult ProjectionTool.ProjectOnCurve ( GPnt  point,
TopoShape  curve,
double  tolerance 
)
static

Project the point to edge or wire.

Parameters
pointthe point
curvethe curve.
tolerancethe tolerance.
Returns
the projected result.

◆ ProjectOnPlane() [1/2]

static TopoShape ProjectionTool.ProjectOnPlane ( TopoShape  curve,
GPnt  planePosition,
GDir  planeDir 
)
static

Project the edge/wire to plane surface.

Parameters
curvethe edge/wire shape
planePositionthe position of the plane.
planeDirthe direction of the plane.
Returns
the projected curve.

◆ ProjectOnPlane() [2/2]

static TopoShape ProjectionTool.ProjectOnPlane ( TopoShape  curve,
GPnt  planePosition,
GDir  planeDir,
GDir  projDir 
)
static

Project the edge/wire to plane surface.

Parameters
curvethe edge/wire shape
planePositionthe position of the plane.
planeDirthe direction of the plane.
projDirthe projection direction.
Returns
the projected curve.

◆ ProjectOnShape() [1/2]

static TopoShape ProjectionTool.ProjectOnShape ( TopoShape  wire,
TopoShape  shape,
GDir  dir 
)
static

Makes a Cylindrical projection of Wire om Shape

Parameters
wirethe input
shapethe shape
dirthe direction
Returns
the compound shape of wires.

◆ ProjectOnShape() [2/2]

static TopoShape ProjectionTool.ProjectOnShape ( TopoShape  wire,
TopoShape  shape,
GPnt  pt 
)
static

Makes a Conical projection of Wire om Shape

Parameters
wirethe input
shapethe shape
ptthe point
Returns
the compound shape of wires.

◆ ProjectOnSurface() [1/3]

static ProjSurfaceResult ProjectionTool.ProjectOnSurface ( GPnt  point,
TopoShape  surface,
double  tolerance 
)
static

Project the point to surface.

Parameters
pointthe point
surfacethe surface.
tolerancethe tolerance.
Returns
the projected result.

◆ ProjectOnSurface() [2/3]

static TopoShape ProjectionTool.ProjectOnSurface ( TopoShape  curve,
TopoShape  surface 
)
static

Project the edge/wire to surface.

Parameters
curvethe edge/wire shape
surfacethe surface.

Returns
the projected curve.

◆ ProjectOnSurface() [3/3]

static TopoShape ProjectionTool.ProjectOnSurface ( TopoShape  curve,
TopoShape  surface,
boolean  faceBoundaries 
)
static

Project the edge/wire to surface.

Parameters
curvethe edge/wire shape
surfacethe surface.
faceBoundariesif bound by the surface.
Returns
the projected curve.