Revision fa96775c
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
1428 | 1428 |
FactoryCubit factory = FactoryCubit.getInstance(); |
1429 | 1429 |
factory.clear(); |
1430 | 1430 |
|
1431 |
ObjectShape shape = new ObjectShape(vertices,vertIndexes,vertIndexes.length);
|
|
1431 |
ObjectShape shape = new ObjectShape(vertices,vertIndexes); |
|
1432 | 1432 |
ObjectFaceShape face= new ObjectFaceShape(bands,bandIndexes,corners,cornerIndexes,centers,centerIndexes,convexCenter); |
1433 | 1433 |
|
1434 |
factory.createNewFaceTransform(shape); |
|
1434 |
int[] outer = new int[vertIndexes.length]; |
|
1435 |
|
|
1436 |
factory.createNewFaceTransform(shape,outer); |
|
1435 | 1437 |
mMesh = factory.createRoundedSolid(shape,face,numComponents, MESH_NICE ); |
1436 | 1438 |
|
1437 | 1439 |
int numEff = mMesh.getNumEffComponents(); |
Also available in: Unified diff
Remove the need to provide the number of outer faces of a ObjectShape.