Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-08 18:58:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-08 18:58:38 +0400
commit6f20ef6d870464a66ffa108b85c9ace405235f43 (patch)
treef0e712f275338e8b8aab1b6fefe46c2d5e90bc24 /source/blender/blenkernel/BKE_mesh.h
parentd7bc2c7f0639d808095d600b534a879daec7b8d7 (diff)
optimize ngon angle calculation in solidify modifier (was doing prev/next vector subtract and normalize for every vertex). now store the previous normalized vector for re-use.
also add BKE_mesh_poly_calc_angles() which is mostly a reference for now.
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh.h')
-rw-r--r--source/blender/blenkernel/BKE_mesh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h
index 88a92d9028e..bdadce2c7c7 100644
--- a/source/blender/blenkernel/BKE_mesh.h
+++ b/source/blender/blenkernel/BKE_mesh.h
@@ -304,6 +304,9 @@ void BKE_mesh_loops_to_mface_corners(struct CustomData *fdata, struct CustomData
const int polyindex, const int mf_len,
const int numTex, const int numCol, const int hasPCol, const int hasOrigSpace);
+void BKE_mesh_poly_calc_angles(struct MVert *mvert, struct MLoop *mloop,
+ struct MPoly *mp, float angles[]);
+
#ifdef __cplusplus
}
#endif