Skip to content

Some bug in tri_tri_intersection_test_3d ? #1

Description

@adamsedziwy

Hi there,
I've tried to use tri_tri_intersection_test_3d(double p1[3], double q1[3], double r1[3],
double p2[3], double q2[3], double r2[3], int * coplanar, double source[3], double target[3]) function but it returns incorrect result.
I've called it for the following triangles:

double p1[3] = {12.3015,-0.253368,5.49101}; double q1[3] = {18.6765,-2.55337,4.91756}; double r1[3] = {12.3015, -2.55337,4.91756};
and
double p2[3] = {-11.9885,-0.253368,5.49101}; double q2[3] = {1.61448,-0.253368,5.49101}; double r2[3] = {1.61448,-2.55337,4.91756};

It returned 1 although the triangles are disjoint! (I've checked in Mathematica)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions