Files
OCCT/tests/v3d/grid/rect_gpu
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

30 lines
800 B
Plaintext

puts "=================================================================="
puts "0030979: vgrid -type gpu renders the rectangular grid via the shader"
puts "=================================================================="
pload MODELING VISUALIZATION
vclear
vinit View1
vaxo
box b 1 2 3
vdisplay b -dispMode 1
vfit
vzoom 0.2
# Shader-rendered rectangular grid (-type gpu opts into the GPU path):
# XStep/YStep map to Scale/ScaleY, RotationAngle rotates in-plane basis.
vgrid -type gpu -step 0.5 0.5 -rotAngle 0
vdump $imagedir/${casename}_rect.png
# Non-isotropic step (different X and Y spacing)
vgrid -type gpu -step 0.5 1.0
vdump $imagedir/${casename}_rect_aniso.png
# In-plane rotation
vgrid -type gpu -step 0.5 0.5 -rotAngle 0.5
vdump $imagedir/${casename}_rect_rotated.png
vgrid off