mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0033371: USD - Implementation of import and export USD files using the USD SDK. 1 Stage
Do auxiliary improvement in OCCT.
This commit is contained in:
parent
2956d432e2
commit
b0e00ef466
@ -383,6 +383,16 @@ Standard_Boolean RWMesh_CafReader::addShapeIntoDoc (CafDocumentTools& theTools,
|
|||||||
return Standard_False;
|
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
|
// if new label is a reference get referred shape
|
||||||
TDF_Label aNewRefLabel = aNewLabel;
|
TDF_Label aNewRefLabel = aNewLabel;
|
||||||
theTools.ShapeTool->GetReferredShape (aNewLabel, aNewRefLabel);
|
theTools.ShapeTool->GetReferredShape (aNewLabel, aNewRefLabel);
|
||||||
|
@ -57,6 +57,7 @@ public:
|
|||||||
Handle(XCAFDoc_ColorTool) ColorTool;
|
Handle(XCAFDoc_ColorTool) ColorTool;
|
||||||
Handle(XCAFDoc_VisMaterialTool) VisMaterialTool;
|
Handle(XCAFDoc_VisMaterialTool) VisMaterialTool;
|
||||||
NCollection_DataMap<TopoDS_Shape, TDF_Label, TopTools_ShapeMapHasher> ComponentMap;
|
NCollection_DataMap<TopoDS_Shape, TDF_Label, TopTools_ShapeMapHasher> ComponentMap;
|
||||||
|
NCollection_DataMap<TopoDS_Shape, TDF_Label, TopTools_ShapeMapHasher> OriginalShapeMap;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user