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

36 lines
754 B
Plaintext

XOpen [locate_data_file "as1_pmi.xbf"] D_First
set TRAVERSE_ASSEMBLY_GRAPH_ARGS "-names"
set TRAVERSE_ASSEMBLY_GRAPH_RESULT "1 R 'as1' 2 9 22 25
2 O 'rod-assembly_1' 3
3 A 'rod-assembly' 4 6 7
4 O 'nut_1' 5
5 P 'nut'
6 O 'nut_2' 5
7 O 'rod_1' 8
8 P 'rod'
9 O 'l-bracket-assembly_1' 10
10 A 'l-bracket-assembly' 11 16 17 18
11 O 'nut-bolt-assembly_1' 12
12 A 'nut-bolt-assembly' 13 15
13 O 'bolt_1' 14
14 P 'bolt'
15 O 'nut_3' 5
16 O 'nut-bolt-assembly_2' 12
17 O 'nut-bolt-assembly_3' 12
18 O 'l-bracket_1' 19
19 P 'l-bracket' 20 21
20 S 0:1:1:8:1
21 S 0:1:1:8:2
22 O 'plate_1' 23
23 P 'plate' 24
24 S 0:1:1:9:1
25 O 'l-bracket-assembly_2' 10"
set TypeOfFile ""
set AddToDocument ""
set CompareDocumentsMode "TRAVERSE_ASSEMBLY_GRAPH SKIP_CHECKVIEW"