Blender Git Loki

Git Commits -> Revision f600b4b

Revision f600b4b by Alexander Gavrilov (master)
November 6, 2018, 18:20 (GMT)
Shrinkwrap: new mode that projects along the target normal.

The Nearest Surface Point shrink method, while fast, is neither
smooth nor continuous: as the source point moves, the projected
point can both stop and jump. This causes distortions in the
deformation of the shrinkwrap modifier, and the motion of an
animated object with a shrinkwrap constraint.

This patch implements a new mode, which, instead of using the simple
nearest point search, iteratively solves an equation for each triangle
to find a point which has its interpolated normal point to or from the
original vertex. Non-manifold boundary edges are treated as infinitely
thin cylinders that cast normals in all perpendicular directions.

Since this is useful for the constraint, and having multiple
objects with constraints targeting the same guide mesh is a quite
reasonable use case, rather than calculating the mesh boundary edge
data over and over again, it is precomputed and cached in the mesh.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D3836

Commit Details:

Full Hash: f600b4bc67667b867899cac3725ac7ed44bfbfe3
Parent Commit: 0709fac
Lines Changed: +719, -13

17 Modified Paths:

/release/scripts/startup/bl_ui/properties_constraint.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_data_modifier.py (+1, -1) (Diff)
/source/blender/blenkernel/BKE_shrinkwrap.h (+34, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+12, -0) (Diff)
/source/blender/blenkernel/intern/mesh.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/mesh_runtime.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/shrinkwrap.c (+536, -6) (Diff)
/source/blender/blenlib/BLI_math_solvers.h (+9, -0) (Diff)
/source/blender/blenlib/intern/math_solvers.c (+95, -0) (Diff)
/source/blender/depsgraph/DEG_depsgraph.h (+5, -1) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+3, -0) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+6, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021