Toponaming: Squash to one index character in element names
This commit is contained in:
@@ -265,7 +265,7 @@ void TopoCrossSection::sliceNonSolid(int idx,
|
||||
BRepAlgoAPI_Section cs(shape.getShape(), gp_Pln(a, b, c, -d));
|
||||
if (cs.IsDone()) {
|
||||
std::string prefix(op);
|
||||
prefix += Data::indexSuffix(idx,Data::ELEMENT_MAP_INDEX2);
|
||||
prefix += Data::indexSuffix(idx);
|
||||
auto res = TopoShape()
|
||||
.makeElementShape(cs, shape, prefix.c_str())
|
||||
.makeElementWires()
|
||||
@@ -294,7 +294,7 @@ void TopoCrossSection::sliceSolid(int idx,
|
||||
BRepPrimAPI_MakeHalfSpace mkSolid(TopoDS::Face(face.getShape()), refPoint);
|
||||
TopoShape solid(idx);
|
||||
std::string prefix(op);
|
||||
prefix += Data::indexSuffix(idx,Data::ELEMENT_MAP_INDEX2);
|
||||
prefix += Data::indexSuffix(idx);
|
||||
solid.makeElementShape(mkSolid, face, prefix.c_str());
|
||||
BRepAlgoAPI_Cut mkCut(shape.getShape(), solid.getShape());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user