]> OCCT Git - occt.git/commit
0032954: Tool for applying transformation to OCAF document
authorsnn <snn@opencascade.com>
Fri, 13 May 2022 09:53:03 +0000 (12:53 +0300)
committermsv <msv@opencascade.com>
Thu, 11 Aug 2022 11:03:24 +0000 (14:03 +0300)
commit2b10a3579cea55b5ee8a6af4a211210f754c3987
tree61da2a1c68dc139379956a5bac5550ade94bf35e
parentb4714e9823965c2f8df1983e56c141af3d9fa0ad
0032954: Tool for applying transformation to OCAF document

New XCAFDoc classes:
- XCAFDoc_AssemblyIterator: iterator in depth along the assembly tree
- XCAFDoc_AssemblyGraph: assembly graph with iterator
- XCAFDoc_AssemblyTool: provides generic methods for traversing assembly tree and graph

A method for re-scaling (sub-)assembly geometry is added to XCAFDoc_Editor.

New DRAW commands:
- XDumpAssemblyTree: iterates through the assembly tree in depth up to the specified level, if any
- XDumpAssemblyGraph: prints assembly graph structure
- XDumpNomenclature: prints number of (sub-)assembly/part instances
- XRescaleGeometry: applies geometrical scale to (sub-)assembly
19 files changed:
src/XCAFDoc/FILES
src/XCAFDoc/XCAFDoc_AssemblyGraph.cxx [new file with mode: 0644]
src/XCAFDoc/XCAFDoc_AssemblyGraph.hxx [new file with mode: 0644]
src/XCAFDoc/XCAFDoc_AssemblyIterator.cxx [new file with mode: 0644]
src/XCAFDoc/XCAFDoc_AssemblyIterator.hxx [new file with mode: 0644]
src/XCAFDoc/XCAFDoc_AssemblyTool.hxx [new file with mode: 0644]
src/XCAFDoc/XCAFDoc_Editor.cxx
src/XCAFDoc/XCAFDoc_Editor.hxx
src/XDEDRAW/XDEDRAW.cxx
tests/xcaf/end
tests/xcaf/grids.list
tests/xcaf/rescale/A1 [new file with mode: 0644]
tests/xcaf/rescale/A2 [new file with mode: 0644]
tests/xcaf/rescale/B1 [new file with mode: 0644]
tests/xcaf/rescale/C1 [new file with mode: 0644]
tests/xcaf/traverse/A1 [new file with mode: 0644]
tests/xcaf/traverse/A2 [new file with mode: 0644]
tests/xcaf/traverse/A3 [new file with mode: 0644]
tests/xcaf/traverse/B1 [new file with mode: 0644]