Revision 1b85f172
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/examples/meshfile/MeshFileRenderer.java | ||
---|---|---|
320 | 320 |
|
321 | 321 |
final int[] bandIndexes = new int[] { 0,0,0,0,0,0 }; |
322 | 322 |
|
323 |
final float[][] corners = new float[][] |
|
324 |
{ |
|
325 |
{ 0.01f, 0.10f } |
|
326 |
}; |
|
327 |
|
|
328 |
final int[] cornerIndexes = new int[] { 0,0,0,0,0,0,0,0 }; |
|
329 |
|
|
323 | 330 |
FactoryCubit factory = FactoryCubit.getInstance(); |
324 |
mMesh = factory.createRoundedSolid(vertices, vertIndexes, bands, bandIndexes); |
|
331 |
mMesh = factory.createRoundedSolid(vertices, vertIndexes, bands, bandIndexes, corners, cornerIndexes);
|
|
325 | 332 |
|
326 | 333 |
int numEff = mMesh.numEffComponents(); |
327 | 334 |
|
Also available in: Unified diff
Face cubit creation: progress: rounded corners