diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-07 02:55:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-07 02:55:41 +0400 |
commit | cead1e19770d3523df5a4e84bec6ea1f373fe9e7 (patch) | |
tree | 35910ae39235837209f4b526f743633a7a0b08fa /source/blender/blenkernel/BKE_mesh.h | |
parent | 35e80c5544d1a0e9a33169182a0a268d726928ca (diff) |
added mesh_calc_normals_ex() which is mesh_calc_normals() with an option to skip recalculating the vertex normals (only calculate poly/face normals instead).
also removed unneeded allocation of face normals.
otherwise no functional change.
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_mesh.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h index 8db9d3f5447..a8bc2323d0f 100644 --- a/source/blender/blenkernel/BKE_mesh.h +++ b/source/blender/blenkernel/BKE_mesh.h @@ -136,8 +136,13 @@ void mesh_strip_loose_edges(struct Mesh *me); * and vertex normals are stored in actual mverts. */ void mesh_calc_normals(struct MVert *mverts, int numVerts, struct MLoop *mloop, - struct MPoly *mpolys, int numLoops, int numPolys, float (*polyNors_r)[3], + struct MPoly *mpolys, int numLoops, int numPolys, float (*polyNors_r)[3], struct MFace *mfaces, int numFaces, int *origIndexFace, float (*faceNors_r)[3]); + /* extended version of 'mesh_calc_normals' with option not to calc vertex normals */ +void mesh_calc_normals_ex(struct MVert *mverts, int numVerts, struct MLoop *mloop, + struct MPoly *mpolys, int numLoops, int numPolys, float (*polyNors_r)[3], + struct MFace *mfaces, int numFaces, int *origIndexFace, float (*faceNors_r)[3], + const short only_face_normals); /* Return a newly MEM_malloc'd array of all the mesh vertex locations * (_numVerts_r_ may be NULL) */ |