-
-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathrun_visual_examples.sh
More file actions
executable file
·60 lines (50 loc) · 1.44 KB
/
run_visual_examples.sh
File metadata and controls
executable file
·60 lines (50 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Run all parry 2D and 3D examples that use kiss3d for visualization.
# Close each window to proceed to the next example.
set -e
cd "$(dirname "$0")"
# 3D examples using kiss3d
EXAMPLES_3D=(
aabb3d
bounding_sphere3d
convex_hull3d
plane_intersection
project_point3d
)
# 3D examples requiring the wavefront feature
EXAMPLES_3D_WAVEFRONT=(
convex_decomposition
)
# 2D examples using kiss3d
EXAMPLES_2D=(
aabb2d
bounding_sphere2d
convex_hull2d
project_point2d
point_in_poly2d
polygons_intersection2d
raycasts_animated
)
TOTAL=$((${#EXAMPLES_3D[@]} + ${#EXAMPLES_3D_WAVEFRONT[@]} + ${#EXAMPLES_2D[@]}))
echo "Running $TOTAL parry examples with kiss3d visualization..."
echo "Close each window to proceed to the next example."
echo ""
echo "=== Running 3D examples ==="
for example in "${EXAMPLES_3D[@]}"; do
echo "=== Running: $example (parry3d) ==="
cargo run --release -p parry3d --example "$example"
echo ""
done
echo "=== Running 3D examples (with wavefront feature) ==="
for example in "${EXAMPLES_3D_WAVEFRONT[@]}"; do
echo "=== Running: $example (parry3d) ==="
cargo run --release -p parry3d --features wavefront --example "$example"
echo ""
done
echo "=== Running 2D examples ==="
for example in "${EXAMPLES_2D[@]}"; do
echo "=== Running: $example (parry2d) ==="
cargo run --release -p parry2d --example "$example"
echo ""
done
echo "All examples completed!"