]> OCCT Git - occt.git/commitdiff
Add not empty shape for views CR0_gtd_conversion
authorsshutina <svetlana.shutina@opencascade.com>
Fri, 11 Jul 2025 11:49:13 +0000 (12:49 +0100)
committersshutina <svetlana.shutina@opencascade.com>
Thu, 24 Jul 2025 10:06:32 +0000 (11:06 +0100)
Signed-off-by: sshutina <svetlana.shutina@opencascade.com>
src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx

index 87d1b245462643a5b89001220f51c1cfd19a5409..9ee2e454fd41bffb4bdb942bf9e1d4439600460b 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <XSDRAWDE.hxx>
 
+#include <BRepBuilderAPI_MakeVertex.hxx>
 #include <BRepMesh_IncrementalMesh.hxx>
 #include <DBRep.hxx>
 #include <DDocStd.hxx>
@@ -493,10 +494,9 @@ TDF_Label DataAsGeomExporter::CreateShapeLabelForViews() const
     }
 
     // Get the shape associated with the view label.
-    TopoDS_Compound aSubCompound;
-    aBuilder.MakeCompound(aSubCompound);
+    TopoDS_Vertex aV = BRepBuilderAPI_MakeVertex(gp_Pnt());
     // Add the shape to the compound.
-    aBuilder.Add(aCompound, aSubCompound);
+    aBuilder.Add(aCompound, aV);
   }
 
   const TDF_Label aShapeLabel = myShapeTool->AddShape(aCompound, true, false);