Project

General

Profile

« Previous | Next » 

Revision 0c7c957f

Added by Leszek Koltunski 5 months ago

fix face shapes in TwistyCutSolid.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistyCutFisher.java
72 72
    int E=1;
73 73
    float height = isInIconMode() ? 0.001f : 0.02f;
74 74

  
75
    return new float[][] { {height,35,0.3f,0.5f,N,E,E}, {0.001f,35,0.3f,0.5f,N,E,E} };
75
    return new float[][] { {height,45,0.3f,0.5f,N,E,E}, {0.001f,45,0.3f,0.5f,N,E,E} };
76 76
    }
77 77

  
78 78
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/objectlib/objects/TwistyCutSolid.java
223 223
    int[][] ind    = shape.getVertIndices();
224 224
    float[][] vert = shape.getVertices();
225 225
    float[][] pos  = getCubitPositions();
226
    int[] indices  = FactoryShape.produceBandIndices(vert, pos[variant], ind, getFaceAxis(), getDist() );
226
    int firstCubit = getFirstCubitOfVariant(variant);
227
    int[] indices  = FactoryShape.produceBandIndices(vert, pos[firstCubit], ind, getFaceAxis(), getDist() );
227 228
    float[][] bands= getBands();
228 229
    return new ObjectFaceShape(bands,indices,null);
229 230
    }

Also available in: Unified diff