1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00
mzernova 113bda7072 0031773: Visualization - add Prs3d_ToolTorus
Added Prs3d_ToolTorus tool to create a torus

Added DRAW commands:
- vtorus
- vcylinder
- vsphere

Added test cases:
- v3d/quadric/torus
- v3d/quadric/cylinder
- v3d/quadric/sphere
2020-09-21 12:36:27 +03:00

20 lines
369 B
Plaintext

puts "=============================="
puts "Prs3d_ToolTorus - create torus"
puts "=============================="
# complete torus
vtorus t1 10 5
vlocation t1 -translate 0 0 20
# torus segment
vtorus t2 10 5 270
vlocation t2 -translate -20 -20 -20
# torus ring segment
vtorus t3 10 5 180 360
vlocation t3 -translate 20 20 -20
vfit
vdump $imagedir/${casename}.png