]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/OCC2VTK/OCC2VTK_Tools.cxx
Salome HOME
Fixing visibility of standalone vertices in compound in VTK viewer.
[modules/geom.git] / src / OCC2VTK / OCC2VTK_Tools.cxx
index 8e325c88700f02a1e4fce053af5529ec4f7b8bce..e9b592035f70bb0d5e05d95d022dc54e8687c536 100755 (executable)
@@ -88,6 +88,7 @@ namespace GEOM
   void SetShape(const TopoDS_Shape& theShape,
                 const TopTools_IndexedDataMapOfShapeListOfShape& theEdgeMap,
                 bool theIsVector,
+                GEOM_VertexSource* theStandaloneVertexSource,
                 GEOM_EdgeSource* theIsolatedEdgeSource,
                 GEOM_EdgeSource* theOneFaceEdgeSource,
                 GEOM_EdgeSource* theSharedEdgeSource,
@@ -98,6 +99,7 @@ namespace GEOM
       TopoDS_Iterator anItr(theShape);
       for (; anItr.More(); anItr.Next()) {
         SetShape(anItr.Value(),theEdgeMap,theIsVector,
+                 theStandaloneVertexSource,
                  theIsolatedEdgeSource,
                  theOneFaceEdgeSource,
                  theSharedEdgeSource,
@@ -123,6 +125,10 @@ namespace GEOM
         break;
       }
       case TopAbs_VERTEX: {
+        if ( theStandaloneVertexSource ) {
+          const TopoDS_Vertex& aVertex = TopoDS::Vertex(theShape);
+          theStandaloneVertexSource->AddVertex(aVertex);
+        }
         break;
       }
       default: {