1
0
Fork 0
mirror of https://github.com/imjasonh/scad-to-png synced 2026-07-07 01:22:23 +00:00
scad-to-png/generate-test-suite.sh
Jason Hall 0fcfc580f1
Add comprehensive test suite and automatic README generation
- Add 40 test SCAD files covering various OpenSCAD features:
  - Basic shapes (sphere, cylinder, cone, torus)
  - Boolean operations (union, difference, intersection)
  - Advanced features (polyhedron, extrusion, recursion)
  - Complex patterns (Menger sponge, voronoi, fractals)
  - Mathematical surfaces (bezier, gyroid, saddle)
  - Mechanical parts (gears, springs, knurled surfaces)

- Add automatic README.md generation for each output:
  - Links to STL file
  - Displays all 8 PNG views
  - Includes timestamp and attribution

- Document discovered limitations:
  - Text rendering requires fonts (not available in WASM)
  - Complex boolean operations may fail
  - Mesh topology constraints
  - No implicit surface support
  - No adaptive mesh refinement

- Update generate-test-suite.sh to show timing information

The test suite validates functionality and documents edge cases.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-20 19:28:23 -04:00

17 lines
453 B
Bash
Executable file

#!/bin/bash
# Generate outputs for all test suite files
echo "Generating outputs for test suite..."
for scad_file in test-suite/*.scad; do
if [ -f "$scad_file" ]; then
base_name=$(basename "$scad_file" .scad)
echo "Processing $base_name..."
time ./scad-to-png "$scad_file" -o "output/test-suite/$base_name" || {
echo "Failed to process $base_name"
}
fi
done
echo "Test suite generation complete!"