Files
Pasukhin Dmitry 058ec16010 Visualization - Grid shader update (#1264)
- 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.
2026-05-05 09:43:14 +01:00

37 lines
1.1 KiB
Plaintext

puts "=================================================================="
puts "0030979: Bounded circular GPU grid (-radius, -arc support)"
puts "=================================================================="
# -gpu routes through the shader path so that -arc actually clips the
# rendered arc; on the CPU path Aspect_CircularGrid::SetArcRange is a no-op
# for rendering, only for snap.
pload MODELING VISUALIZATION
vclear
vinit View1 w=400 h=400
vaxo
box b 1 1 0.1
vdisplay b -dispMode 1
vfit
vzoom 0.3
# Full disc within radius 2.5
vgrid -gpu -type circ -step 0.25 16 -radius 2.5
vdump $imagedir/${casename}_disc.png
# Half circle (0..pi, walking CCW).
vgrid -gpu -type circ -step 0.25 16 -radius 2.5 -arc 0 3.14159
vdump $imagedir/${casename}_halfcircle.png
# Quarter (upper-right).
vgrid -gpu -type circ -step 0.25 16 -radius 2.5 -arc 0 1.5707
vdump $imagedir/${casename}_quarter.png
# Wraparound: 3pi/4 .. -3pi/4 covers the back pi/2 region by going CCW
# through +pi and wrapping to -pi (270-degree arc around the far side).
vgrid -gpu -type circ -step 0.25 16 -radius 2.5 -arc 2.356 -2.356
vdump $imagedir/${casename}_wraparound.png
vgrid off