mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028646: Draw Harness, ViewerTest - rename vsetfilter command with vselfilter
TopAbs::ShapeTypeToString() is now used instead of duplicating TopAbs_ShapeEnum printing code. vselmode now accepts shape type string for activating standard AIS_Shape selection modes.
This commit is contained in:
@@ -35,16 +35,5 @@ MoniTool_SignShape::MoniTool_SignShape () { }
|
||||
if (HS.IsNull()) return ent->DynamicType()->Name();
|
||||
TopoDS_Shape sh = HS->Shape();
|
||||
if (sh.IsNull()) return "SHAPE";
|
||||
switch (sh.ShapeType()) {
|
||||
case TopAbs_VERTEX : return "VERTEX";
|
||||
case TopAbs_EDGE : return "EDGE";
|
||||
case TopAbs_WIRE : return "WIRE";
|
||||
case TopAbs_FACE : return "FACE";
|
||||
case TopAbs_SHELL : return "SHELL";
|
||||
case TopAbs_SOLID : return "SOLID";
|
||||
case TopAbs_COMPSOLID : return "COMPSOLID";
|
||||
case TopAbs_COMPOUND : return "COMPOUND";
|
||||
default : break;
|
||||
}
|
||||
return "SHAPE";
|
||||
return TopAbs::ShapeTypeToString (sh.ShapeType());
|
||||
}
|
||||
|
Reference in New Issue
Block a user