Repository navigation
Commit f7511b1
feat(examples): add ray-cast-space and lattice-deform (#304)
ray-cast-space: Object.ray_cast takes object-local coordinates;
Scene.ray_cast takes world coordinates. The script casts five closed-form
rays at a block that is translated, rotated about Z and scaled unevenly.
- Scene.ray_cast hits every world point and normal exactly (exit 3).
- Object.ray_cast, given matrix_world.inverted() origins and directions
mapped through the 3x3 only, hits the same polygons and maps back
within 5e-7 m (exit 4).
- World coordinates passed straight to Object.ray_cast land at least
0.287 m from the true hits (exit 5).
- --world-to-object exits 4 with a 1.125 m error.
lattice-deform: a 2x2x2 KEY_LINEAR lattice with two corners moved
through co_deform puts all 602 evaluated vertices on the trilinear
closed form, max error 5.6e-7, through a translated and unevenly scaled
lattice.
- An unmoved lattice is the identity (exit 3).
- The mesh really does move (exit 5).
- --bspline, the default interpolation, misses by 0.2145 and exits 4.
Both pass the default check on Blender 4.5.11, 5.1.2 and 5.2.1, and each
falsifier is proven on 4.5.11 and 5.2.1. Contact sheets are committed
under docs/gallery/contact-sheets/. Counts are updated in README, AGENTS,
CLAUDE and new-example-prompt; the AGENTS and CLAUDE showcase counts are
corrected from 67 to 72 as well.
Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent d800a39 commit f7511b1
75 files changed
Lines changed: 3808 additions & 148 deletions
File tree
- .cursor-plugin
- docs
- gallery
- armature-bend
- assets
- attribute-domain-shear
- bake-normal-high-to-low
- bmesh-gear
- car-mirror-symmetry
- collision-hull-proxy
- color-attribute-wheel
- compositor-glare
- contact-sheets
- cross-version-property-delete
- curve-bevel-arc
- custom-normals-shade
- damped-track-aim
- degenerate-bevel-weld
- depsgraph-export
- driver-wave
- export-preset-axis
- gltf-export-roundtrip
- gltf-skin-roundtrip
- gn-instance-grid
- gn-modifier-inputs
- gn-sdf-remesh
- gn-sim-fountain
- gn-socket-rename
- gn-zone-iterate
- gp-lineart-contour
- grease-pencil-rosette
- image-pixels-testcard
- lattice-deform
- light-link-studio
- lightmap-uv-channel
- lod-decimate-chain
- mesh-hygiene-audit
- modular-kit-snap
- parent-inverse-orrery
- png-exr-alpha
- prop-origin-transform
- ray-cast-space
- shader-node-group
- shape-key-blend
- sky-texture-sun-elevation
- soccer-ball-goldberg
- socket-attach-points
- swatch-grid
- temp-override-join
- text-version-stamp
- triangulate-tangents
- turntable
- usd-export-evaluation-mode
- uv-layer-grid
- vertex-color-ao
- vertex-weight-limit
- vse-cut-list
- vse-gamma-cross
- wave-displace
- examples
- lattice-deform
- ray-cast-space
- tests/smoke
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
651 | 682 | | |
652 | 683 | | |
653 | 684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
1053 | | - | |
| 1053 | + | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
| |||
Loading
Loading
Loading
Loading
0 commit comments