mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-29 22:41:48 +08:00
- Renamed grid terminology and command/API surface from `inf`/“infinite” to `gpu`/“GPU”, plus `viewAdaptive` for camera-relative sizing. - Updated OpenGl grid rendering to compute adaptive bounds from the visible region and to fix axis coloring for rotated rectangular grids. - Refreshed Draw tests, help text, and API comments to match the new behavior.
36 lines
947 B
Plaintext
36 lines
947 B
Plaintext
puts "=================================================================="
|
|
puts "Restored CPU circular grid path: V3d_CircularGrid + ActivateGrid"
|
|
puts "=================================================================="
|
|
# Exercises the legacy CPU circular grid (rings + spokes drawn into a
|
|
# Graphic3d_Structure). The shader path with arc support is covered by
|
|
# circ_gpu and bounded_circ.
|
|
|
|
pload MODELING VISUALIZATION
|
|
|
|
vclear
|
|
vinit View1
|
|
vaxo
|
|
|
|
box b 1 2 3
|
|
vdisplay b -dispMode 1
|
|
vfit
|
|
vzoom 0.2
|
|
|
|
# 8 divisions (22.5 deg spokes), radius step 0.5
|
|
vgrid -type circ -step 0.5 8
|
|
vdump $imagedir/${casename}_circ.png
|
|
|
|
# Finer angular resolution, bigger radial spacing
|
|
vgrid -type circ -step 1.0 24
|
|
vdump $imagedir/${casename}_circ_fine.png
|
|
|
|
# Rotated
|
|
vgrid -type circ -step 0.5 12 -rotAngle 0.4
|
|
vdump $imagedir/${casename}_circ_rotated.png
|
|
|
|
# Points mode
|
|
vgrid -type circ -step 0.5 8 -mode points
|
|
vdump $imagedir/${casename}_circ_points.png
|
|
|
|
vgrid off
|