|
static TopoShape | Boolean (TopoShape shapeA, TopoShape shapeB, EnumBooleanType type) |
|
static TopoShape | Cut (TopoShape shapeA, TopoShape shapeB) |
|
static TopoShape | Cut (TopoShape shapeA, TopoShapeList shapeB) |
|
static TopoShape | Fuse (TopoShape shapeA, TopoShape shapeB) |
|
static TopoShape | Fuse (TopoShapeList shapes) |
|
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 TopoShapeList | SliceApart (TopoShape shape, GPnt position, GDir dir) |
|
static TopoShapeList | SliceApart (TopoShape shape, TopoShape tool) |
|
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 | Sewing (TopoShapeList shapes) |
|
<>
BooleanTool
对TopoShape进行布尔操作的工具类.
◆ Boolean()
通用布尔运算
- 参数
-
shapeA | 对象A
|
shapeB | 对象B
|
type | 布尔操作类型
|
- 返回
- 操作结果
◆ Common()
布尔And操作: A n B, 计算A和B的公共部分.
- 参数
-
shapeA | the shape A.
|
shapeB | the shape B.
|
- 返回
- A n B.
◆ Cut() [1/2]
◆ Cut() [2/2]
◆ Fuse()
布尔加操作: A + B.
- 参数
-
- 返回
- A + B.
◆ Section() [1/2]
使用平面剖切几何对象.
- 参数
-
shape | 几何对象.
|
position | 平面的位置.
|
dir | 平面的方向.
|
- 返回
- 生成的公共部分:边.
◆ Section() [2/2]
剖切,计算两个几何的公共部分. eg. 如两个面相交的公共部分(边).
- 参数
-
shapeA | the shape A.
|
shapeB | the shape B.
|
- 返回
- 剖切.
◆ Sewing() [1/2]
◆ Sewing() [2/2]
◆ Slice()
使用平面剖切实体.
- 参数
-
solid | 体对象.
|
position | 平面的位置.
|
dir | 平面的方向.
|
- 返回
- 剖切生成的面对象列表.
◆ SliceApart() [1/2]
使用平面切分任意shape
- 参数
-
shape | 被切分的对象
|
position | 切分平面的位置
|
dir | 切分平面的方向
|
- 返回
- 分割结果,平面正方向部分位于数组首位,平面反方向部分位于数组第二位
◆ SliceApart() [2/2]
使用tool(Solid)切割任意shape
- 参数
-
- 返回
- 切割结果,切割体内部分位于数组首位,切割体外部分位于数组第二位
◆ Split()
分离几何对象.
- 参数
-
shape | 被分离的几何对象.
|
tool | 分离工具,如面对象.
|
- 返回
- 分离的结果, 可能是组合体.
◆ SplitCurve()
◆ Unify()
static TopoShape BooleanTool.Unify |
( |
TopoShape |
shape, |
|
|
boolean |
unifyEdges, |
|
|
boolean |
unifyFaces, |
|
|
boolean |
concatBSplines |
|
) |
| |
|
static |
使得在相同几何对象的上的边、面成为一体.
- 参数
-
shape | 输入对象.
|
unifyEdges | 是否使得边成为一体
|
unifyFaces | 是否使得面成为一体
|
concatBSplines | 是否连接BSplines
|
- 返回
- 结合后的对象