Project

General

Profile

« Previous | Next » 

Revision 3542b8f3

Added by Leszek Koltunski about 2 years ago

Optionally split the outer faces of the Dino cubit into two components [test of the MeshMultigon, now switched off]

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyDino.java
166 166
  private float[][] getVertices(int variant)
167 167
    {
168 168
    return new float[][] { {-1.5f, 0.0f, 0.0f},{ 1.5f, 0.0f, 0.0f},{ 0.0f,-1.5f, 0.0f},{ 0.0f, 0.0f,-1.5f} };
169
    //return new float[][] { {-1.5f, 0.0f, 0.0f},{ 1.5f, 0.0f, 0.0f},{ 0.0f,-1.5f, 0.0f},{ 0.0f, 0.0f,-1.5f},{0,0,0} };
169 170
    }
170 171

  
171 172
///////////////////////////////////////////////////////////////////////////////////////////////////
......
173 174
  public ObjectShape getObjectShape(int variant)
174 175
    {
175 176
    int[][] indices = { {2,1,0},{3,0,1},{2,3,1},{3,2,0} };
177
    //int[][][] indices = { {{2,4,0},{2,1,4}},{{3,0,4},{4,1,3}},{{2,3,1}},{{3,2,0}} };
176 178
    return new ObjectShape(getVertices(variant), indices);
177 179
    }
178 180

  
......
182 184
    {
183 185
    float h1 = isInIconMode() ? 0.001f : 0.035f;
184 186
    float h2 = isInIconMode() ? 0.001f : 0.010f;
185
    float[][] bands  = { {h1,30,0.16f,0.8f,6,2,2}, {h2,30,0.16f,0.2f,6,2,2} };
187
    float[][] bands  = { {h1,30,0.16f,0.8f,6,1,2}, {h2,30,0.16f,0.8f,6,1,2} };
186 188
    int[] bandIndices= { 0,0,1,1 };
187 189
    return new ObjectFaceShape(bands,bandIndices,null);
188 190
    }
......
192 194
  public ObjectVertexEffects getVertexEffects(int variant)
193 195
    {
194 196
    float[][] corners   = { {0.07f,0.40f}, {0.05f,0.30f} };
195
    int[] cornerIndices = { 0,0,1,1 };
197
    int[] cornerIndices = { 0,0,1,1,/*-1*/ };
196 198
    float[][] centers   = { {0.0f, -0.75f, -0.75f} };
197
    int[] centerIndices = { 0,0,0,0 };
199
    int[] centerIndices = { 0,0,0,0,/*-1*/ };
198 200
    return FactoryCubit.generateVertexEffect(getVertices(variant),corners,cornerIndices,centers,centerIndices);
199 201
    }
200 202

  

Also available in: Unified diff