Blender Git Commit Log

Git Commits -> Revision 2ba0951

Revision 2ba0951 by Germano Cavalcante (master)
May 16, 2018, 13:32 (GMT)
Snap system: Adds support to Clip Planes and uses a clip plane to simulate occlusion

This patch adds support for clip_planes (ie ignore what is behind a face)...

The idea is to first execute a raycast to get the polygon to which the mouse cursor points.
Then a snap test is done on the vertices or edges of the polygon.
Then with the normal and location obtained in raycast a new clip_plane is created and the snap over the whole scene is processed ignoring the elements behind the clip_plane.

Here 2 gif of how the previous patch would work on blender2.79:

{F497176}

{F497177}

Reviewers: mont29, campbellbarton

Reviewed By: campbellbarton

Subscribers: bliblubli

Tags: #bf_blender_2.8

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

Commit Details:

Full Hash: 2ba0951e5219aa82f3e5c00890512c8ba8889c9d
Parent Commit: 6a4ba91
Lines Changed: +417, -209

4 Modified Paths:

/source/blender/blenlib/BLI_kdopbvh.h (+1, -0) (Diff)
/source/blender/blenlib/intern/BLI_kdopbvh.c (+8, -2) (Diff)
/source/blender/editors/transform/transform_snap.c (+1, -0) (Diff)
/source/blender/editors/transform/transform_snap_object.c (+407, -207) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021