Toponaming/Part: clean, doc, and test getSubTopoShape

This commit is contained in:
bgbsww
2024-02-13 10:14:39 -05:00
parent 76df39e99d
commit ae4393978f
4 changed files with 101 additions and 1 deletions

View File

@@ -346,6 +346,7 @@ TopoDS_Shape TopoShape::getSubShape(TopAbs_ShapeEnum type, int index, bool silen
if(index <= 0) {
if(silent)
return {};
// TODO: Is this message clear? Should we complain about the negative index instead
Standard_Failure::Raise("Unsupported sub-shape type");
}