Project

General

Profile

« Previous | Next » 

Revision 5655d3a9

Added by Leszek Koltunski 11 months ago

minor speedup.

View differences:

src/main/java/org/distorted/objectlib/helpers/FactoryBandagedCuboid.java
993 993

  
994 994
    int sum = mX+mY+mZ;
995 995
    int numVertA= sum>=19 ? 3 : (sum>=16 ? 4:5);
996
    int numVertI= 3;
996
    int numVertI= sum>=13 ? 2 : 3;
997 997

  
998 998
    float[][] bands  = { {  0.001f,angle[0],R,S,numVertI,extraV,extraI},
999 999
                         {height  ,angle[1],R,S,numVertA,extraV,extraI},

Also available in: Unified diff