Revision a97e02b7
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/CubitFactory.java | ||
---|---|---|
242 | 242 |
meshes[2] = meshes[0].copy(true); |
243 | 243 |
meshes[2].setEffectAssociation(0,4,0); |
244 | 244 |
|
245 |
float[] vertices1 = { 0,0, F,0, F/2,(SQ3/2)*F }; |
|
245 |
float[] vertices1 = { 0,0, F,0, 7*F/8,(SQ3/8)*F, 5*F/8,(3*SQ3/8)*F, F/2,(SQ3/2)*F };
|
|
246 | 246 |
float[] bands1 = computeBands(0,0,1,0,3); |
247 | 247 |
|
248 | 248 |
meshes[3] = new MeshPolygon(vertices1,bands1,1,5); |
... | ... | |
268 | 268 |
meshes[0] = new MeshPolygon(vertices0, bands0, 3, 3); |
269 | 269 |
meshes[0].setEffectAssociation(0,1,0); |
270 | 270 |
|
271 |
float[] vertices1 = { -E,-SQ3*E, +E,-SQ3*E, 0,0 }; |
|
271 |
float[] vertices1 = { -E,-SQ3*E, -E*0.7f,-SQ3*E, +E*0.7f,-SQ3*E, +E,-SQ3*E, 0,0 };
|
|
272 | 272 |
float[] bands1 = computeBands(0,0,1,0,3); |
273 | 273 |
|
274 | 274 |
meshes[1] = new MeshPolygon(vertices1,bands1,0,0); |
Also available in: Unified diff
Objects must explicitly provide a list of offsets specifying where the cut planes are (rather than just a BASIC_STEP - the width of the layer - which is insufficient in case of objects which have layers of vastly different width, like the Master Skewb)