1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
snn 714fb6b516 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
2022-06-10 18:56:40 +03:00

12 lines
226 B
Plaintext

ReadStep D_First [locate_data_file "as1-oc-214-mat.stp"]
set RESCALE_ASSEMBLY_FACTOR 0.5
set RESCALE_ASSEMBLY_ARGS "-root 0:1:1:9 -force"
set TypeOfFile ""
set AddToDocument ""
set CompareDocumentsMode "RESCALE_ASSEMBLY"