]> OCCT Git - occt.git/commit
0032954: Tool for applying transformation to OCAF document IR-2022-06-10
authorsnn <snn@opencascade.com>
Fri, 13 May 2022 09:53:03 +0000 (12:53 +0300)
committerafokin <afokin@opencascade.com>
Fri, 10 Jun 2022 15:56:40 +0000 (18:56 +0300)
commit714fb6b5161c61af461fb6f804c3257e7c255e26
treed6900407a0c7a24a99b5dbc1e86525ced4ce21fc
parentbf8b7e08f16d60d0487f4bdf98ef27db1e43fc2a
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]