summaryrefslogtreecommitdiff
path: root/src/Contraction/example/Garland_heckbert/Error_quadric.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-08-03 12:03:39 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-08-03 12:03:39 +0000
commit46d1ac72c72dca16693d6b5f12752f231a699798 (patch)
treec28f1047c40c29ec069120b43fdc47eef0908e6a /src/Contraction/example/Garland_heckbert/Error_quadric.h
parent14bf2f4f33d3f34d946777ac7bbb389fe1f987a2 (diff)
parent0cbab32353f334e0bdd5c9c520e6cc8ac9831947 (diff)
backmerge of trunk
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alphashapes@721 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 1c30d5d84f1f401089f80c08ee1d584f28bf2274
Diffstat (limited to 'src/Contraction/example/Garland_heckbert/Error_quadric.h')
-rw-r--r--src/Contraction/example/Garland_heckbert/Error_quadric.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Contraction/example/Garland_heckbert/Error_quadric.h b/src/Contraction/example/Garland_heckbert/Error_quadric.h
index 725a3a56..72134c9d 100644
--- a/src/Contraction/example/Garland_heckbert/Error_quadric.h
+++ b/src/Contraction/example/Garland_heckbert/Error_quadric.h
@@ -122,7 +122,7 @@ public :
* Return the point such that it minimizes the gradient of the quadric.
* Det must be passed with the determinant value of the gradient (should be non zero).
*/
- inline Point solve_linear_gradient(double det = grad_determinant()) const{
+ inline Point solve_linear_gradient(double det) const{
return Point({
(-coeff[1]*coeff[5]*coeff[8]+coeff[1]*coeff[7]*coeff[6]+coeff[2]*coeff[8]*coeff[4]-coeff[2]*coeff[5]*coeff[6]-coeff[3]*coeff[4]*coeff[7]+coeff[3]*coeff[5]*coeff[5])/ det,
(coeff[0]*coeff[5]*coeff[8]-coeff[0]*coeff[7]*coeff[6]-coeff[5]*coeff[2]*coeff[3]-coeff[1]*coeff[2]*coeff[8]+coeff[6]*coeff[2]*coeff[2]+coeff[1]*coeff[3]*coeff[7])/det,