diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-20 11:51:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-20 11:51:19 +0300 |
commit | 65af15ad887b30e678db9acab75efc7897c9197e (patch) | |
tree | 645d197267a36b21b1866ee7b6d11c6a349d3571 /source/blender/bmesh/intern/bmesh_polygon.h | |
parent | ed3b7a5cd4597274f523d832494eabdf153aa597 (diff) |
UV Cube Project: improve default behavior
- initialize the cube-size from the bounding box when it's not set.
- no longer wrap faces to keep in 0-1 bounds,
other projection methods don't do this and calculating the scale
prevents the UV's from being too far outside the view.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.h b/source/blender/bmesh/intern/bmesh_polygon.h index 4ec8ea59018..a40da2bfbfa 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.h +++ b/source/blender/bmesh/intern/bmesh_polygon.h @@ -57,6 +57,8 @@ void BM_face_calc_center_mean_vcos( float const (*vertexCos)[3]) ATTR_NONNULL(); void BM_face_calc_center_mean_weighted(const BMFace *f, float center[3]) ATTR_NONNULL(); +void BM_face_calc_bounds_expand(const BMFace *f, float min[3], float max[3]); + void BM_face_normal_update(BMFace *f) ATTR_NONNULL(); void BM_edge_normals_update(BMEdge *e) ATTR_NONNULL(); |