Toponaming: Tests, cleanup, and fix axis drawing
This commit is contained in:
@@ -4783,12 +4783,10 @@ TopoShape& TopoShape::makeElementRefine(const TopoShape& shape, const char* op,
|
||||
return {};
|
||||
|
||||
std::vector<Data::IndexedName> res;
|
||||
int type = shape.shapeType();
|
||||
for(;;) {
|
||||
if(--type < 0)
|
||||
break;
|
||||
const char *shapetype = shapeName((TopAbs_ShapeEnum)type).c_str();
|
||||
for(int idx : findAncestors(shape.getShape(), (TopAbs_ShapeEnum)type))
|
||||
|
||||
for (int type = shape.shapeType() - 1; type >= 0; type--) {
|
||||
const char* shapetype = shapeName((TopAbs_ShapeEnum)type).c_str();
|
||||
for (int idx : findAncestors(shape.getShape(), (TopAbs_ShapeEnum)type))
|
||||
res.emplace_back(shapetype, idx);
|
||||
}
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user