Cleaned up debug prints and debug statements

This commit is contained in:
2025-05-21 21:48:27 -04:00
parent 3426829c2b
commit e5f98f6844
2 changed files with 26 additions and 402 deletions

View File

@@ -180,7 +180,7 @@ public class MeshingTest2 extends JPanel {
private static void test( final Collection< Plane > planes ) {
final long processAllStart = System.currentTimeMillis();
planes.stream().forEach( plane -> {
planes.parallelStream().forEach( plane -> {
try {
Mesh< RegionSimple > mesh = new Mesh< RegionSimple >( () -> { return new RegionSimple( GluWindingRule.ODD ); } );
@@ -190,7 +190,7 @@ public class MeshingTest2 extends JPanel {
long start = System.currentTimeMillis();
mesh.simplify();
mesh.generateRegions();
final Collection< EdgePolygon > polys = mesh.copyOf().mesh( false );
final Collection< EdgePolygon > polys = mesh.copyOf().mesh();
long end = System.currentTimeMillis();
System.out.println( plane.polygons.size() + " to " + polys.size() + ":\t " + ( end - start ) + "ms" );
} catch ( IllegalStateException e ) {
@@ -268,12 +268,12 @@ public class MeshingTest2 extends JPanel {
Collection< EdgePolygon > polys;
try {
polys = mesh.mesh( false );
polys = mesh.mesh();
chains = mesh.chains;
} catch ( IllegalStateException e ) {
e.printStackTrace();
polys = mesh.mesh( true );
polys = mesh.mesh( );
chains = mesh.chains;
}
@@ -414,14 +414,14 @@ public class MeshingTest2 extends JPanel {
mesh.generateRegions();
try {
final Collection< EdgePolygon > polys = mesh.mesh( false );
final Collection< EdgePolygon > polys = mesh.mesh();
chains = mesh.chains;
return polys;
} catch ( Exception e ) {
e.printStackTrace();
}
final Collection< EdgePolygon > polys = mesh.mesh( true );
final Collection< EdgePolygon > polys = mesh.mesh();
chains = mesh.chains;
return polys;