台州网站制作计划,如何建设网站设计,长沙网站建设市场低价,旺道营销软件在CAD建模中#xff0c;布尔运算是一种逻辑运算方法#xff0c;通过这种方法#xff0c;可以创建、修改或组合几何对象。布尔运算主要包括并集#xff08;UNION#xff09;、交集#xff08;INTERSECT#xff09;和差集#xff08;SUBTRACT#xff09;三种运算。
并集…在CAD建模中布尔运算是一种逻辑运算方法通过这种方法可以创建、修改或组合几何对象。布尔运算主要包括并集UNION、交集INTERSECT和差集SUBTRACT三种运算。
并集UNION将两个或多个实体合并成一个整体。在CAD中可以通过选择并集命令然后依次选择要求并集的实体完成并集操作后这些实体将合并成一个整体。
交集INTERSECT取两个实体的公共部分保留为新对象相交以外的部分删除。在CAD中执行交集命令后需要先选择第一个对象然后选择第二个对象系统会根据这两个对象生成一个新的实体只包含它们的公共部分。
差集SUBTRACT从第一个选择的对象中减去第二个选择的对象。在CAD中执行差集命令后需要先选择被减对象然后选择减去的对象完成后被减对象中减去减去对象的部分将被删除。
在OCCT中布尔运算后往往会出现缝合线。为了消除缝合线我们需要用到工具类ShapeUpgrade_UnifySameDomain该工具用于统一一个几何模型上的面和边。应该可以理解为同一模型同一面上的边统一用边界的边来表示其余的去掉。
This tool tries to unify faces and edges of the shape which lies on the same geometry. Faces/edges considering as same-domain if a group of neighbouring faces/edges lying on coincident surfaces/curves. In this case these faces/edges can be unified into one face/edge. ShapeUpgrade_UnifySameDomain initialized by the shape and the next optional parameters: UnifyFaces - tries to unify all possible faces UnifyEdges - tries to unify all possible edges ConcatBSplines - if this flag set to true then all neighbouring edges which lays on the BSpline or Bezier curves with C1 continuity on their common vertices will be merged into one common edge The output result of tool is an unified shape All the modifications of initial shape are recorded during unifying. Method Generated() can be used to obtain the new (unified) shape from the old one. TopoDS_Shape fuse BRepAlgoAPI_Fuse(bigCube, smallCube);//先融合 ShapeUpgrade_UnifySameDomain unif(fuse , false, true, false); unif.Build(); fuse unif.Shape();