Project

General

Profile

« Previous | Next » 

Revision 3821ebef

Added by Leszek Koltunski 11 months ago

speedups (correctly remove the internal walls of joined elements)

View differences:

src/main/java/org/distorted/objectlib/helpers/ObjectShape.java
61 61
    str.append("numVertices: ");
62 62
    int numV =mVertices.length;
63 63
    str.append(numV);
64
    str.append("\n");
64 65

  
65 66
    for(float[] v : mVertices)
66 67
      {
......
82 83

  
83 84
      for(int[][] mMultigonIndex : mMultigonIndices)
84 85
        {
85
        int numC=mMultigonIndex.length;
86
        str.append("\nnumComponents: ");
87
        str.append(numC);
88
        str.append("\n   ");
89

  
90 86
        for(int[] multigonIndex : mMultigonIndex)
91 87
          {
88
          str.append(" [");
92 89
          for(int index : multigonIndex)
93 90
            {
94 91
            str.append(" ");
95 92
            str.append(index);
96 93
            }
97
          str.append("\n   ");
94
          str.append("]");
98 95
          }
96
        str.append("\n");
99 97
        }
100 98
      }
101 99
    else

Also available in: Unified diff