AnyCAD Rapid API 2023
Help you to create a better world!
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 Unify (TopoShape shape, boolean unifyEdges, boolean unifyFaces, boolean concatBSplines)
 
static TopoShape Common (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Section (TopoShape shapeA, TopoShape shapeB)
 
static TopoShapeList Section (TopoShape shape, GPnt position, GDir dir)
 
static TopoShapeList Slice (TopoShape solid, GPnt position, GDir dir, double tol)
 
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() [1/2]

static TopoShapeList BooleanTool.Section ( TopoShape  shape,
GPnt  position,
GDir  dir 
)
static

Compute the section line of shape with plane.

Parameters
shapethe shape.
positionthe plane position.
dirthe plane direction.
Returns
the edges.

◆ Section() [2/2]

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.

◆ Slice()

static TopoShapeList BooleanTool.Slice ( TopoShape  solid,
GPnt  position,
GDir  dir,
double  tol 
)
static

Slice the solid with plane.

Parameters
solidthe solid.
positionthe postion of the plane.
dirthe direction of the plane.
Returns
the faces.

◆ 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.

◆ Unify()

static TopoShape BooleanTool.Unify ( TopoShape  shape,
boolean  unifyEdges,
boolean  unifyFaces,
boolean  concatBSplines 
)
static

Unify faces and edges of the shape which lie on the same geometry.

Parameters
shapethe input shape.
unifyEdgesunify edges
unifyFacesunify faces
concatBSplinesconcat BSplines
Returns
the unified shape