diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 20:31:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-03 20:31:46 +0400 |
commit | a2c182e9233333fc3b8ff40d352113ec95e7e30c (patch) | |
tree | 37a9e08f4e6c4bf794aa0c8c15af875299db4a1b /source/blender/editors/armature/meshlaplacian.c | |
parent | 86cec98f9e1523ed41b67ef998174289dbae9b83 (diff) |
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
Diffstat (limited to 'source/blender/editors/armature/meshlaplacian.c')
-rw-r--r-- | source/blender/editors/armature/meshlaplacian.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/editors/armature/meshlaplacian.c b/source/blender/editors/armature/meshlaplacian.c index a592e727988..74c44ea1f0d 100644 --- a/source/blender/editors/armature/meshlaplacian.c +++ b/source/blender/editors/armature/meshlaplacian.c @@ -129,12 +129,12 @@ struct LaplacianSystem { /* Laplacian matrix construction */ /* Computation of these weights for the laplacian is based on: - "Discrete Differential-Geometry Operators for Triangulated 2-Manifolds", - Meyer et al, 2002. Section 3.5, formula (8). - - We do it a bit different by going over faces instead of going over each - vertex and adjacent faces, since we don't store this adjacency. Also, the - formulas are tweaked a bit to work for non-manifold meshes. */ + * "Discrete Differential-Geometry Operators for Triangulated 2-Manifolds", + * Meyer et al, 2002. Section 3.5, formula (8). + * + * We do it a bit different by going over faces instead of going over each + * vertex and adjacent faces, since we don't store this adjacency. Also, the + * formulas are tweaked a bit to work for non-manifold meshes. */ static void laplacian_increase_edge_count(EdgeHash *edgehash, int v1, int v2) { @@ -217,7 +217,7 @@ static void laplacian_triangle_weights(LaplacianSystem *sys, int f, int i1, int v3= sys->verts[i3]; /* instead of *0.5 we divided by the number of faces of the edge, it still - needs to be verified that this is indeed the correct thing to do! */ + * needs to be verified that this is indeed the correct thing to do! */ t1= cotan_weight(v1, v2, v3)/laplacian_edge_count(sys->edgehash, i2, i3); t2= cotan_weight(v2, v3, v1)/laplacian_edge_count(sys->edgehash, i3, i1); t3= cotan_weight(v3, v1, v2)/laplacian_edge_count(sys->edgehash, i1, i2); @@ -391,7 +391,7 @@ float laplacian_system_get_solution(int v) /************************* Heat Bone Weighting ******************************/ /* From "Automatic Rigging and Animation of 3D Characters" - Ilya Baran and Jovan Popovic, SIGGRAPH 2007 */ + * Ilya Baran and Jovan Popovic, SIGGRAPH 2007 */ #define C_WEIGHT 1.0f #define WEIGHT_LIMIT_START 0.05f @@ -827,13 +827,13 @@ void heat_bone_weighting(Object *ob, Mesh *me, float (*verts)[3], int numsource, #ifdef RIGID_DEFORM /********************** As-Rigid-As-Possible Deformation ******************/ /* From "As-Rigid-As-Possible Surface Modeling", - Olga Sorkine and Marc Alexa, ESGP 2007. */ + * Olga Sorkine and Marc Alexa, ESGP 2007. */ /* investigate: - - transpose R in orthogonal - - flipped normals and per face adding - - move cancelling to transform, make origco pointer -*/ + * - transpose R in orthogonal + * - flipped normals and per face adding + * - move cancelling to transform, make origco pointer + */ static LaplacianSystem *RigidDeformSystem = NULL; @@ -1052,8 +1052,8 @@ void rigid_deform_end(int cancel) /************************** Harmonic Coordinates ****************************/ /* From "Harmonic Coordinates for Character Articulation", - Pushkar Joshi, Mark Meyer, Tony DeRose, Brian Green and Tom Sanocki, - SIGGRAPH 2007. */ + * Pushkar Joshi, Mark Meyer, Tony DeRose, Brian Green and Tom Sanocki, + * SIGGRAPH 2007. */ #define EPSILON 0.0001f |