Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 14, 2023
1 parent 88212cb commit 389dc84
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example/edgeProjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const params = {
displayEdges: false,
displayProjection: true,
sortEdges: true,
includeIntersectionEdges: false,
includeIntersectionEdges: true,
useWorker: false,
rotate: () => {

Expand Down Expand Up @@ -230,6 +230,14 @@ function* updateEdges( runTime = 30 ) {

yield;

if ( params.includeIntersectionEdges ) {

outputContainer.innerText = 'processing: finding edge intersections...';
projection.geometry.dispose();
projection.geometry = new BufferGeometry();

}

// generate the candidate edges
timeStart = window.performance.now();

Expand Down

0 comments on commit 389dc84

Please sign in to comment.