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

静态 Public 成员函数

static TopoShape Boolean (TopoShape shapeA, TopoShape shapeB, EnumBooleanType type)
 
static TopoShape Cut (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape CutTwo (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Cut (TopoShape shapeA, TopoShapeList shapeB)
 
static TopoShape CutByGroup (TopoShape shapeA, TopoShapeList shapeB)
 
static TopoShape Cut (TopoShape shape, GPnt position, GDir dir)
 
static TopoShape CutByHalfPlane (TopoShape shape, GPnt position, GDir dir)
 
static TopoShape Fuse (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape FuseTwo (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Fuse (TopoShapeList shapes)
 
static TopoShape FuseByGroup (TopoShapeList shapes)
 
static TopoShape Common (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Section (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape SectionTwo (TopoShape shapeA, TopoShape shapeB)
 
static TopoShapeList Section (TopoShape shape, GPnt position, GDir dir)
 
static TopoShapeList SectionByPlane (TopoShape shape, GPnt position, GDir dir)
 
static TopoShapeList Slice (TopoShape solid, GPnt position, GDir dir, double tol)
 
static TopoShapeList SliceApart (TopoShape shape, TopoShape tool)
 
static TopoShapeList SliceApartByTool (TopoShape shape, TopoShape tool)
 
static TopoShapeList SliceApart (TopoShape shape, GPnt position, GDir dir)
 
static TopoShapeList SliceApartByPlane (TopoShape shape, GPnt position, GDir dir)
 
static TopoShape Unify (TopoShape shape, boolean unifyEdges, boolean unifyFaces, boolean concatBSplines)
 
static TopoShape Split (TopoShape shape, TopoShape tool)
 
static TopoShapeList SplitCurve (TopoShape curve, GPnt point)
 
static TopoShape Sewing (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape SewingTwo (TopoShape shapeA, TopoShape shapeB)
 
static TopoShape Sewing (TopoShapeList shapes)
 
static TopoShape SewingByGroup (TopoShapeList shapes)
 

详细描述

<>
BooleanTool
对TopoShape进行布尔操作的工具类.

成员函数说明

◆ Boolean()

static TopoShape BooleanTool.Boolean ( TopoShape shapeA,
TopoShape shapeB,
EnumBooleanType type )
static

通用布尔运算

参数
shapeA对象A
shapeB对象B
type布尔操作类型
返回
操作结果

◆ Common()

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

布尔And操作: A n B, 计算A和B的公共部分.

参数
shapeAthe shape A.
shapeBthe shape B.
返回
A n B.

◆ Cut() [1/3]

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

使用一个半空间切对象,保留几何在另外一半空间的部分。

参数
shape几何对象.
position平面的位置.
dir平面的方向。
返回
对象

◆ Cut() [2/3]

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

布尔减操作:A - B

参数
shapeA对象A.
shapeB对象B.
返回
A - B.

◆ Cut() [3/3]

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

布尔减操作:A - B

参数
shapeA对象A.
shapeB对象B,列表.
返回
A - B.

◆ Fuse() [1/2]

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

布尔加操作: A + B.

参数
shapeA对象A.
shapeB对象B.
返回
A + B.

◆ Fuse() [2/2]

static TopoShape BooleanTool.Fuse ( TopoShapeList shapes)
static

布尔加操作.

参数
shapes对象列表.
返回
融合的结果.

◆ Section() [1/2]

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

使用平面剖切几何对象.

参数
shape几何对象.
position平面的位置.
dir平面的方向.
返回
生成的公共部分:边.

◆ Section() [2/2]

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

剖切,计算两个几何的公共部分. eg. 如两个面相交的公共部分(边).

参数
shapeAthe shape A.
shapeBthe shape B.
返回
剖切.

◆ Sewing() [1/2]

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

缝合两个物体

参数
shapeA对象1
shapeB对象2
返回
结果

◆ Sewing() [2/2]

static TopoShape BooleanTool.Sewing ( TopoShapeList shapes)
static

缝合多个物体

参数
shapes对象列表
返回
结果

◆ Slice()

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

使用平面剖切实体.

参数
solid体对象.
position平面的位置.
dir平面的方向.
返回
剖切生成的面对象列表.

◆ SliceApart() [1/2]

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

使用平面切分任意shape

参数
shape被切分的对象
position切分平面的位置
dir切分平面的方向
返回
分割结果,平面正方向部分位于数组首位,平面反方向部分位于数组第二位

◆ SliceApart() [2/2]

static TopoShapeList BooleanTool.SliceApart ( TopoShape shape,
TopoShape tool )
static

使用tool(Solid)切割任意shape

参数
shape被切割的对象
tool切割体
返回
切割结果,切割体内部分位于数组首位,切割体外部分位于数组第二位

◆ Split()

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

分离几何对象.

参数
shape被分离的几何对象.
tool分离工具,如面对象.
返回
分离的结果, 可能是组合体.

◆ SplitCurve()

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

Split 使用点分离曲线

参数
curve被分离的曲线
point分离的位置
返回
曲线列表.

◆ Unify()

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

使得在相同几何对象的上的边、面成为一体.

参数
shape输入对象.
unifyEdges是否使得边成为一体
unifyFaces是否使得面成为一体
concatBSplines是否连接BSplines
返回
结合后的对象