mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026925: Data Exchange - Exception can be raised if assembly is empty
- Issue is done in previous version OCCT - Add test to verify the creating of the label structure using plain OCAF/XDE API - Situation when the assembly label has no shape attached is correct
This commit is contained in:
parent
a87b1b3738
commit
72e6020d50
21
tests/bugs/step/bug26925
Normal file
21
tests/bugs/step/bug26925
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
puts "# ====================================================================="
|
||||||
|
puts "# 0026925: Data Exchange - Execeptions can be raised if assembly is empty"
|
||||||
|
puts "# ====================================================================="
|
||||||
|
puts ""
|
||||||
|
|
||||||
|
pload DCAF
|
||||||
|
XNewDoc D
|
||||||
|
XNewShape D
|
||||||
|
box a 0 0 0 10 10 10
|
||||||
|
XAddShape D a 0
|
||||||
|
ttranslate a 10 0 0
|
||||||
|
XAddComponent D 0:1:1:1 a
|
||||||
|
XGetShape s0 D 0:1:1:1
|
||||||
|
checkshape s0 l
|
||||||
|
XUpdateAssemblies D
|
||||||
|
XGetShape s1 D 0:1:1:1
|
||||||
|
|
||||||
|
checkshape s1 r
|
||||||
|
checknbshapes s1 -vertex 8 -edge 12 -shape 35 -face 6 -solid 1 -shell 1
|
||||||
|
|
||||||
|
Close D
|
Loading…
x
Reference in New Issue
Block a user