Convert meshed polygons back into facet
Write facets to ply format
This commit is contained in:
@@ -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() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user