Page MenuHome

Fix T71971: Inset with depth and offset relative has weird geometry or asserts
Needs ReviewPublic

Authored by Philipp Oeser (lichtwerk) on Wed, Nov 27, 11:28 PM.



This happens on larger selections for vertices 'inside' the selection
which have all of their edges set to a -1 index (at the start of
'bmo_inset_region_exec'). This would result in a division by zero (in

Relevant previous commits:

Not particularly sure which exact case rBf48efbf4642e was trying to
solve, but this is where it started.

Previous methods of calculating average edge length for inside verts as
well was also not working well, so what I tried here is reach out from
the inside vert until a valid vert is found on the boundary [excellent
excuse to have a look at bmesh walkers :)] and use its average edge
length instead. This results in a pretty solid looking inset, not sure
if this is really the purpose of "Offset Relative" option.

If this is all bogus, the least we should do is return 0 or 1 and not
return NANs...

Diff Detail

rB Blender
T71971_b (branched from master)
Build Status
Buildable 5820
Build 5820: arc lint + arc unit

Event Timeline