From: sshutina Date: Fri, 11 Jul 2025 11:49:13 +0000 (+0100) Subject: Add not empty shape for views X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9ba04e1171c6460a2a6fbc9998227c6eb62d5155;p=occt.git Add not empty shape for views Signed-off-by: sshutina --- diff --git a/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx b/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx index 87d1b24546..9ee2e454fd 100644 --- a/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx +++ b/src/Draw/TKXSDRAWDE/XSDRAWDE/XSDRAWDE.cxx @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -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);