1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Add not empty shape for views

Signed-off-by: sshutina <svetlana.shutina@opencascade.com>
This commit is contained in:
sshutina
2025-07-11 12:49:13 +01:00
parent 41d29526a9
commit 9ba04e1171

View 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);