Blender Git Loki

Git Commits -> Revision b30f899

Revision b30f899 by Howard Trickey (master)
March 7, 2021, 13:55 (GMT)
Fix T85632 Improve Exact boolean in cell fracture of Suzanne.

The Exact boolean used in the cell fracture addon incorrectly
kept some outside faces: due to some raycasts going into open
eye socket then out of the head, leading to one ray direction
(out of 8) saying the face was inside the head. The current
code allowed 1 of 8 rays only as "inside" to accommodate the
case of a plane used in boolean to bisect. But this cell fracture
case needs more confidence of being inside. So changed the
test for intersection to require at least 3 of 8 rays to be inside.

Maybe the number of rays to indicate insideness should be exposed
as an option, to allow user tuning according to the degree of
"non-volumeness" of the arguments, but will try at least for now
to magically guess the right value of the rays-inside threshold.

Note: all of this only for the case where the arguments are not
all PWN (approx: manifold). The all-PWN case doesn't use raycast.

Commit Details:

Full Hash: b30f89918ee16ae3473faa2cfaa5c843b012d878
Parent Commit: e72dc1e
Lines Changed: +3, -2

1 Modified Path:

/source/blender/blenlib/intern/mesh_boolean.cc (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021