5 Commits

Author SHA1 Message Date
e737fe7061 Fix bugs exposed by using non-zero slope in all tests.
Using a non-zero slope in all tests causes some normal calculations
at the end, which in turn exposed a number of places where the trimesh
invariants were not properly maintained. This fixes all the problems
exposed by the current tests (there were several, mostly related
to how to reassign the representative edge for a vertex when
triangles and edges are collapsed.
2022-12-07 13:43:57 -05:00
58b6976a27 Fix a bug re slope on vertex events.
When insetting a square face with a slope, not all center
vertices got raised. This fixes that.
Also disabled the grid inset test, which doesn't work yet.
2022-11-05 14:38:46 -04:00
05cc4cd004 Initialize slope in mesh inset tests.
Also some format fixes, removal of unused functions, and fix
of a potential infinite loop in vertex normal calculation.
2022-09-20 08:01:19 -04:00
f789cf6ac3 Fix mesh_inset to recover leftofer interior geometry. 2022-09-12 12:50:07 -04:00
3b2bc5d146 Added a mesh_inset Blenlib function.
Based on python code from Henrik Dick, this libray function
calculates a Straight Skeleton, and hence, deals properly
with cases where the advancing inset geometry would overlap
or pass through opposite edges. It still needs work but the
basic tests pass.
This function will be used for edge and face bevels but is
not yet hooked up for that.
2022-09-08 10:04:20 -04:00