+void TestViewer::ShowShape(const TopoDS_Shape& theShape, int theMode)
+{
+ int i = 0;
+ if( theShape.ShapeType()==TopAbs_SHELL )
+ {
+ TopoDS_Iterator anIt( theShape );
+ for( ; anIt.More(); anIt.Next(), i++ )
+ show( anIt.Value(), theMode, false, GetColor(i) );
+ }
+ else if (theShape.ShapeType()==TopAbs_FACE ||
+ theShape.ShapeType()==TopAbs_WIRE ||
+ theShape.ShapeType()==TopAbs_EDGE ||
+ theShape.ShapeType()==TopAbs_VERTEX )
+ show( theShape, theMode, false, GetColor(0) );
+}
+