Boolean operations are used to create new shapes from the combinations of two groups of shapes.
Operation | Result |
---|---|
Fuse | All points in S1 or S2 |
Common | All points in S1 and S2 |
Cut S1 by S2 | All points in S1 and not in S2 |
布尔运算用于通过两组形状的组合创建新形状。
操作 | 结果 |
---|---|
融合(Fuse) | S1 或 S2 中的所有点 |
交集(Common) | S1 且 S2 中的所有点 |
S1 减去 S2(Cut S1 by S2) | S1 中 不含 S2 的所有点 |
From the viewpoint of Topology these are topological operations followed by blending (putting fillets onto edges created after the topological operation).
从拓扑学角度来看,这些是拓扑操作后紧接着进行的混合处理(即在拓扑操作后生成的边上添加圆角)。
Topological operations are the most convenient way to create real industrial parts. As most industrial parts consist of several simple elements such as gear wheels, arms, holes, ribs, tubes and pipes. It is usually easy to create those elements separately and then to combine them by Boolean operations in the whole final part.
拓扑操作是创建实际工业零件的最便捷方式。由于大多数工业零件由多个简单元素组成,例如齿轮、臂架、孔、肋板、管道和管件,通常可以先分别创建这些元素,然后通过布尔运算将它们组合成完整的最终零件。
See Boolean Operations for detailed documentation.
有关详细文档,请参阅“布尔运算”。
Boolean Operations have the following types of the arguments and produce the following results:
布尔运算具有以下参数类型并产生相应结果:
BRepAlgoAPI_BooleanOperation class is the deferred root class for Boolean operations.
BRepAlgoAPI_Fuse performs the Fuse operation.
TopoDS_Shape A = ..., B = ...;
TopoDS_Shape S = BRepAlgoAPI_Fuse(A,B);
BRepAlgoAPI_Common performs the Common operation.
TopoDS_Shape A = ..., B = ...;
TopoDS_Shape S = BRepAlgoAPI_Common(A,B);
BRepAlgoAPI_Cut performs the Cut operation.
TopoDS_Shape A = ..., B = ...;
TopoDS_Shape S = BRepAlgoAPI_Cut(A,B);
BRepAlgoAPI_Section performs the section, described as a TopoDS_Compound made of TopoDS_Edge.
Section operation
TopoDS_Shape A = ..., TopoDS_Shape B = ...;
TopoDS_Shape S = BRepAlgoAPI_Section(A,B);
BRepAlgoAPI_BooleanOperation 类是布尔运算的抽象基类。
BRepAlgoAPI_Fuse 用于执行融合操作。
TopoDS_Shape A = ..., B = ...;
TopoDS_Shape S = BRepAlgoAPI_Fuse(A,B);
BRepAlgoAPI_Common 用于执行交集操作。
TopoDS_Shape A = ..., B = ...;
TopoDS_Shape S = BRepAlgoAPI_Common(A,B);
BRepAlgoAPI_Cut 用于执行切割操作。
TopoDS_Shape A = ..., B = ...;
TopoDS_Shape S = BRepAlgoAPI_Cut(A,B);
BRepAlgoAPI_Section 用于执行截面操作,结果为由 TopoDS_Edge 组成的 TopoDS_Compound。
截面操作
TopoDS_Shape A = ..., TopoDS_Shape B = ...;
TopoDS_Shape S = BRepAlgoAPI_Section(A,B);