Do auxiliary improvement in OCCT.
return Standard_False;
}
+ if (toMakeAssembly)
+ {
+ TDF_Label aRefLabel;
+ theTools.ShapeTool->GetReferredShape(aNewLabel, aRefLabel);
+ if (!aRefLabel.IsNull())
+ {
+ theTools.OriginalShapeMap.Bind(theShape, aRefLabel);
+ }
+ }
+
// if new label is a reference get referred shape
TDF_Label aNewRefLabel = aNewLabel;
theTools.ShapeTool->GetReferredShape (aNewLabel, aNewRefLabel);
Handle(XCAFDoc_ColorTool) ColorTool;
Handle(XCAFDoc_VisMaterialTool) VisMaterialTool;
NCollection_DataMap<TopoDS_Shape, TDF_Label, TopTools_ShapeMapHasher> ComponentMap;
+ NCollection_DataMap<TopoDS_Shape, TDF_Label, TopTools_ShapeMapHasher> OriginalShapeMap;
};
public: