1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
kgv 14ba0bbad7 0032351: Visualization, PrsDim_LengthDimension - add NULL checks for handling non-Line curves
Added several missing NULL-checks.
Reduced restrictions on building Edge-Edge and Edge-Vertex length dimension.
Added empty constructor for more straightforward initialization from vdimension command.
2021-05-11 19:24:10 +03:00

24 lines
460 B
Plaintext

puts "========"
puts "0032351: Visualization, PrsDim_LengthDimension - add NULL checks for handling non-Line curves"
puts "========"
pload MODELING VISUALIZATION
box b 200 0 0 100 200 300
pcylinder c 100 200
vinit View1
vdisplay -dispMode 0 b c
vfit
explode b V
explode c E
vdisplay c_1 b_1
vdimension d1 -length -shapes c_1 b_1 -plane zox
explode b E
explode c E
vdisplay c_1 b_3
vdimension d2 -length -shapes c_1 b_3
vfit
vdump $imagedir/${casename}.png