Revision efa5bc1e
Added by Leszek Koltunski 11 months ago
src/main/java/org/distorted/objectlib/helpers/FactoryBandagedPyraminx.java | ||
---|---|---|
910 | 910 |
ObjectShape shape = createIrregularShape(0,pos); |
911 | 911 |
ObjectFaceShape face = createIrregularFaceShape(0,iconMode); |
912 | 912 |
ObjectVertexEffects effects = createVertexEffects(0,roundCorners); |
913 |
int[][] indices = shape.getVertIndices(); |
|
914 |
int numComponents = indices.length; |
|
913 |
int numFaces = shape.getNumFaces(); |
|
915 | 914 |
|
916 | 915 |
FactoryCubit factory = FactoryCubit.getInstance(); |
917 | 916 |
factory.clear(); |
918 | 917 |
factory.createNewFaceTransform(shape,null); |
919 |
return factory.createRoundedSolid(shape,face,effects,MESH_NICE,numComponents);
|
|
918 |
return factory.createRoundedSolid(shape,face,effects,MESH_NICE,numFaces);
|
|
920 | 919 |
} |
921 | 920 |
} |
Also available in: Unified diff
Code changes to introduce cubits whose faces can be split into components.