Loading src/external/triangle_triangle_intersection.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -201,12 +201,12 @@ int sub_sub_cross_sub_dot(real a[3], real b[3], real c[3], real d[3]); source and target are the endpoints of the line segment of intersection */ extern "C" real orient3d(const real *pa, const real *pb, const real *pc, const real *pd); //extern "C" real orient3d(const real *pa, const real *pb, const real *pc, const real *pd); #include <geogram/delaunay/delaunay_3d.h> inline int sub_sub_cross_sub_dot(real pa[3], real pb[3], real pc[3], real pd[3]) { const real result = orient3d(pa, pb, pc, pd); // auto result = -GEO::PCK::orient_3d(pa, pb, pc, pd); // const real result = orient3d(pa, pb, pc, pd); auto result = -GEO::PCK::orient_3d(pa, pb, pc, pd); if (result > 0) return 1; else if (result < 0) Loading src/main.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ protected: void connect_2_meshes(std::string m1, std::string m2, std::string m); extern "C" void exactinit(); //extern "C" void exactinit(); int main(int argc, char **argv) { // connect_2_meshes("/Users/yixinhu/Downloads/test_cutting/100729.stl", // "/Users/yixinhu/Downloads/test_cutting/37627.stl"); Loading Loading @@ -135,7 +135,7 @@ int main(int argc, char **argv) { #endif GEO::initialize(); exactinit(); // exactinit(); std::vector<int> indices(20); std::iota(std::begin(indices), std::end(indices), 0); Loading Loading
src/external/triangle_triangle_intersection.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -201,12 +201,12 @@ int sub_sub_cross_sub_dot(real a[3], real b[3], real c[3], real d[3]); source and target are the endpoints of the line segment of intersection */ extern "C" real orient3d(const real *pa, const real *pb, const real *pc, const real *pd); //extern "C" real orient3d(const real *pa, const real *pb, const real *pc, const real *pd); #include <geogram/delaunay/delaunay_3d.h> inline int sub_sub_cross_sub_dot(real pa[3], real pb[3], real pc[3], real pd[3]) { const real result = orient3d(pa, pb, pc, pd); // auto result = -GEO::PCK::orient_3d(pa, pb, pc, pd); // const real result = orient3d(pa, pb, pc, pd); auto result = -GEO::PCK::orient_3d(pa, pb, pc, pd); if (result > 0) return 1; else if (result < 0) Loading
src/main.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ protected: void connect_2_meshes(std::string m1, std::string m2, std::string m); extern "C" void exactinit(); //extern "C" void exactinit(); int main(int argc, char **argv) { // connect_2_meshes("/Users/yixinhu/Downloads/test_cutting/100729.stl", // "/Users/yixinhu/Downloads/test_cutting/37627.stl"); Loading Loading @@ -135,7 +135,7 @@ int main(int argc, char **argv) { #endif GEO::initialize(); exactinit(); // exactinit(); std::vector<int> indices(20); std::iota(std::begin(indices), std::end(indices), 0); Loading