698 |
698 |
float Y4= MINX_SC*H*(1/(2*MINX_C4) - MINX_C4);
|
699 |
699 |
|
700 |
700 |
float[] vertices0 = { -X1, Y2, 0, -Y1, X1, Y2, 0, Y1 };
|
701 |
|
float[] bands0 = computeBands(0.03f,39,0.3f,0.2f,5);
|
|
701 |
float[] bands0 = computeBands(0.04f,20,0.3f,0.2f,5);
|
702 |
702 |
float[] vertices1 = { -X2, Y4, 0, -Y3, X2, Y4, 0, Y3 };
|
703 |
|
float[] bands1 = computeBands(0.00f,27,0.25f,0.5f,2);
|
|
703 |
float[] bands1 = computeBands(0.00f, 0,0.25f,0.5f,2);
|
704 |
704 |
|
705 |
705 |
meshes[0] = new MeshPolygon(vertices0, bands0, 1, 1);
|
706 |
706 |
meshes[0].setEffectAssociation(0, 1,0);
|
... | ... | |
1630 |
1630 |
MeshBase mesh = createFacesMinxCorner();
|
1631 |
1631 |
VertexEffect[] effects = createVertexEffectsMinxCorner();
|
1632 |
1632 |
for( VertexEffect effect : effects ) mesh.apply(effect);
|
1633 |
|
/*
|
1634 |
|
Static3D center = new Static3D(0.0f,-0.5f,-0.5f);
|
1635 |
|
Static3D[] vertices = new Static3D[2];
|
1636 |
|
vertices[0] = new Static3D(+0.5f,+0.0f,+0.0f);
|
1637 |
|
vertices[1] = new Static3D(-0.5f,+0.0f,+0.0f);
|
1638 |
|
roundCorners(mesh,center,vertices,0.06f,0.10f);
|
1639 |
|
*/
|
|
1633 |
|
|
1634 |
float A = (2*SQ3/3)*MINX_C1;
|
|
1635 |
float B = 0.4f;
|
|
1636 |
float X = MINX_C5*MINX_C1*MINX_C3;
|
|
1637 |
float Y = MINX_C1*MINX_C1 - 0.5f;
|
|
1638 |
float Z = MINX_C4*MINX_C1*MINX_C3;
|
|
1639 |
|
|
1640 |
Static3D center = new Static3D(0.0f, -(float)Math.sqrt(1-A*A)*B,-A*B);
|
|
1641 |
|
|
1642 |
Static3D[] vertices = new Static3D[4];
|
|
1643 |
vertices[0] = new Static3D( 0.0f, 0.0f, 0.0f);
|
|
1644 |
vertices[1] = new Static3D( 0.0f,-0.5f, 0.0f);
|
|
1645 |
vertices[2] = new Static3D(-X , Y ,-Z );
|
|
1646 |
vertices[3] = new Static3D(+X , Y ,-Z );
|
|
1647 |
|
|
1648 |
roundCorners(mesh,center,vertices,0.03f,0.10f);
|
|
1649 |
|
1640 |
1650 |
mesh.mergeEffComponents();
|
1641 |
1651 |
|
1642 |
1652 |
return mesh;
|
Progress with the Kilominx - shape of the mesh.