AnyCAD Rapid SDK 2022
The Rapid CAD SDK
Static Public Member Functions | List of all members
BooleanTool Class Reference

Static Public Member Functions

static TopoShape Cut (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Cut (TopoShape shapeA, TopoShapeList shapeB)
 
static TopoShape Fuse (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Common (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Section (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Split (TopoShape shape, TopoShape tool)
 
static TopoShapeList SplitCurve (TopoShape curve, GPnt point)
 

Detailed Description

<>
BooleanTool

Method to apply boolean operations.

Member Function Documentation

◆ Common()

static TopoShape BooleanTool.Common ( TopoShape  shapeA,
TopoShape  shapeB 
)
static

make A n B, compute the commmon part of two shapes.

Parameters
shapeAthe shape A.
shapeBthe shape B.
Returns
A n B.

◆ Cut()

static TopoShape BooleanTool.Cut ( TopoShape  shapeA,
TopoShape  shapeB 
)
static

make A - B operation.

Parameters
shapeAthe shape A.
shapeBthe shape B.
Returns
A - B.

◆ Fuse()

static TopoShape BooleanTool.Fuse ( TopoShape  shapeA,
TopoShape  shapeB 
)
static

make A + B operation.

Parameters
shapeAthe shape A.
shapeBthe shape B.
Returns
A + B.

◆ Section()

static TopoShape BooleanTool.Section ( TopoShape  shapeA,
TopoShape  shapeB 
)
static

compute the section part of two shapes. eg. the section of two surfaces is curve.

Parameters
shapeAthe shape A.
shapeBthe shape B.
Returns
the section shape.

◆ Split()

static TopoShape BooleanTool.Split ( TopoShape  shape,
TopoShape  tool 
)
static

Splt the shape.

Parameters
shapethe target shape.
toolthe spliiter.
Returns
the new shapes, mybe compund shape.

◆ SplitCurve()

static TopoShapeList BooleanTool.SplitCurve ( TopoShape  curve,
GPnt  point 
)
static

Split the curve by point

Parameters
curvethe input curve
pointthe split position.
Returns
the compund edges.