1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/vselect/cone_cylinder/generate_images
mkrylova 9dd8af261f 0032281: Visualization - add Select3D_SensitiveCylinder
- implemented Select3D_SensitiveCylinder class performing an analytical intersection with an untriangulated cone/cylinder
- added tests
2021-08-27 19:09:09 +03:00

34 lines
1.1 KiB
Plaintext

puts "================================="
puts "0032281: Visualization - add Select3D_SensitiveCylinder"
puts "Generating images based on detection of Select3D_SensitiveCylinder"
puts "================================="
pcylinder cyl 10 20
vdisplay cyl -dispmode 1
vfit
vseldump $imagedir/${casename}_cylinder_selmode_0.png -type surfNormal
vselmode 1 1
vseldump $imagedir/${casename}_cylinder_selmode_1.png -type surfNormal
vselmode 4 1
vseldump $imagedir/${casename}_cylinder_selmode_4.png -type surfNormal
vremove cyl
pcone cone 10 0 20
vdisplay cone -dispmode 1
vfit
vseldump $imagedir/${casename}_cone_selmode_0.png -type surfNormal
vselmode 1 1
vseldump $imagedir/${casename}_cone_selmode_1.png -type surfNormal
vselmode 4 1
vseldump $imagedir/${casename}_cone_selmode_4.png -type surfNormal
vremove cone
pcone tr_cone 10 5 10
vdisplay tr_cone -dispmode 1
vfit
vseldump $imagedir/${casename}_truncated_cone_selmode_0.png -type surfNormal
vselmode 1 1
vseldump $imagedir/${casename}_truncated_cone_selmode_1.png -type surfNormal
vselmode 4 1
vseldump $imagedir/${casename}_truncated_cone_selmode_4.png -type surfNormal