You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Surface_mesh_simplification/include/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/internal/Lindstrom_Turk_core.h
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,8 @@ private :
152
152
}
153
153
#endif
154
154
155
-
static Vector SL_cross_product(const Vector& a, const Vector& b)
155
+
// balanced solution based on abusing the fact that here we expect u and v to have similar coordinates
156
+
static Vector robust_cross_product(const Vector& a, const Vector& b)
156
157
{
157
158
const FT ax=a.x(), ay=a.y(), az=a.z();
158
159
const FT bx=b.x(), by=b.y(), bz=b.z();
@@ -184,9 +185,10 @@ private :
184
185
exv.exact();
185
186
return to_approx(exv);
186
187
}
187
-
#endif
188
188
189
-
static Vector X_product(const Vector& u, const Vector& v)
189
+
190
+
191
+
static Vector experimental_cross_product(const Vector& u, const Vector& v)
190
192
{
191
193
#if 0
192
194
// this can create large errors and spiky meshes for kernels with inexact constructions
0 commit comments