Convert meshed polygons back into facet

Write facets to ply format
This commit is contained in:
2025-05-24 00:06:11 -04:00
parent 20cf9e9ec5
commit e9b8bea944
5 changed files with 363 additions and 27 deletions

View File

@@ -130,19 +130,19 @@ public class MeshingTest2 extends JPanel {
// }
List< Plane > masterPlanes = new ArrayList< Plane >();
// System.out.println( "Chunk files: " + CHUNK_DIR.listFiles().length );
// int limit = 1;
// for ( File file : CHUNK_DIR.listFiles() ) {
// masterPlanes.addAll( mesh( file ) );
// if ( --limit <= 0 ) {
// break;
// } else {
// System.out.println( "Remaining: " + limit );
// }
// }
final List< Plane > planes = mesh( new File( CHUNK_DIR, "world,-4,-6" ) );
System.out.println( "Chunk files: " + CHUNK_DIR.listFiles().length );
int limit = 1;
for ( File file : CHUNK_DIR.listFiles() ) {
masterPlanes.addAll( mesh( file ) );
if ( --limit <= 0 ) {
break;
} else {
System.out.println( "Remaining: " + limit );
}
}
// final List< Plane > planes = mesh( new File( CHUNK_DIR, "world,-4,-6" ) );
// masterPlanes.add( planes.get( 177 ) );
masterPlanes.addAll( planes );
// masterPlanes.addAll( planes );
// masterPlanes.add( getTestPlane() );