Skip to content

Commit

Permalink
Remove degenerate tri epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jan 3, 2024
1 parent e9f1dbe commit c25b44a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/TriangleSplitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class TriangleSplitter {
nextTri.b.copy( _foundEdge.end );
nextTri.c.copy( _foundEdge.start );

if ( ! isTriDegenerate( nextTri, EPSILON ) ) {
if ( ! isTriDegenerate( nextTri ) ) {

triangles.push( nextTri );

Expand All @@ -295,7 +295,7 @@ export class TriangleSplitter {
tri.c.copy( _foundEdge.end );

// finish off the adjusted triangle
if ( isTriDegenerate( tri, EPSILON ) ) {
if ( isTriDegenerate( tri ) ) {

triangles.splice( i, 1 );
i --;
Expand Down Expand Up @@ -358,20 +358,20 @@ export class TriangleSplitter {
tri.c.copy( _foundEdge.start );

// don't add degenerate triangles to the list
if ( ! isTriDegenerate( nextTri1, EPSILON ) ) {
if ( ! isTriDegenerate( nextTri1 ) ) {

triangles.push( nextTri1 );

}

if ( ! isTriDegenerate( nextTri2, EPSILON ) ) {
if ( ! isTriDegenerate( nextTri2 ) ) {

triangles.push( nextTri2 );

}

// finish off the adjusted triangle
if ( isTriDegenerate( tri, EPSILON ) ) {
if ( isTriDegenerate( tri ) ) {

triangles.splice( i, 1 );
i --;
Expand Down

0 comments on commit c25b44a

Please sign in to comment.