Skip to content

Commit

Permalink
removed checks on coplanarity in Point::computeBarycentric
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslg committed Aug 9, 2024
1 parent 8c08079 commit 209abb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions math/src/Point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ namespace gmds{
}
if(!AP.areCoplanar(p0,p1,p2))
{
throw GMDSException("Coplanarity is mandatory to compute barycentric coordinates of a point into a 3D triangle");
//throw GMDSException("Coplanarity is mandatory to compute barycentric coordinates of a point into a 3D triangle");
}

Vector3d v1= p1-p0;
Expand Down Expand Up @@ -338,7 +338,7 @@ namespace gmds{
}
if(!AP.areCoplanar(p0,p1,p2))
{
throw GMDSException("Coplanarity is mandatory to compute barycentric coordinates of a point into a 3D triangle");
//throw GMDSException("Coplanarity is mandatory to compute barycentric coordinates of a point into a 3D triangle");
}

Vector3d v1= p1-p0;
Expand Down

0 comments on commit 209abb4

Please sign in to comment.