1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0032612: Data Exchange, RWGltf_CafReader - lost hierarchy of two nested compounds

RWGltf_GltfJsonParser::gltfParseSceneNode() - prevent flattering of Scene nodes
(allow flattering only of Mesh nodes).

Added command XAutoNaming managing XCAFDoc_ShapeTool::SetAutoNaming().
Added comparisons with reference Xdump data to glTF tests.
This commit is contained in:
kgv
2021-10-11 22:05:58 +03:00
committed by smoskvin
parent 34043fc845
commit 16f9b46dbb
21 changed files with 1229 additions and 8 deletions

View File

@@ -494,6 +494,9 @@ static Standard_Integer WriteGltf (Draw_Interpretor& theDI,
anApp->NewDocument (TCollection_ExtendedString ("BinXCAF"), aDoc);
Handle(XCAFDoc_ShapeTool) aShapeTool = XCAFDoc_DocumentTool::ShapeTool (aDoc->Main());
// auto-naming doesn't generate meaningful instance names
//aShapeTool->SetAutoNaming (false);
aNodeNameFormat = RWMesh_NameFormat_Product;
aShapeTool->AddShape (aShape);
}
}