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
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2012-03-25 23:13:50 +0400
committerAntony Riakiotakis <kalast@gmail.com>2012-03-25 23:13:50 +0400
commit8c6fc392c28d07ab83b799702c6e65e658f74603 (patch)
tree9696592152ac91d2de50a06d44674866e7fee5fb /source
parenteb104023650f3e67c80f889df61060acc2c09123 (diff)
Comment out the projection to ngon normal plane when calculating ngon area. This is hardly worth the cost since we use an approximation anyway.
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/intern/bmesh_polygon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c
index 34a6ac8ca69..d5e3d062809 100644
--- a/source/blender/bmesh/intern/bmesh_polygon.c
+++ b/source/blender/bmesh/intern/bmesh_polygon.c
@@ -181,14 +181,14 @@ static void compute_poly_center(float center[3], float *r_area, float (* const v
}
mul_v3_fl(center, 1.0/nverts);
+#if 0
/* project vertices to the normal plane */
for (j = 0; j < nverts; j++){
project_v3_plane(verts[j], normal, center);
}
+#endif
- /* add triangle area of triangles formed by polygon edges and center.
- * For each triangle Sum(Base * Height / 2)
- * The expression for closed polygons is simplified */
+ /* add triangle area of triangles formed by polygon edges and center. */
for (j = 0; j < nverts; j++) {
area += area_tri_v3(verts[j], verts[i], center);
i = j;