Project

General

Profile

« Previous | Next » 

Revision 59a971c1

Added by Leszek Koltunski over 2 years ago

Remove the need to provide the number of outer faces of a ObjectShape.

View differences:

src/main/java/org/distorted/objectlib/objects/TwistySquare1.java
96 96
         {4,5,6,7}
97 97
        };
98 98

  
99
      return new ObjectShape(vertices, indices, 3);
99
      return new ObjectShape(vertices, indices);
100 100
      }
101 101
    else if( variant==1 )
102 102
      {
......
119 119
         {5,3,0,2}
120 120
        };
121 121

  
122
      return new ObjectShape(vertices, indices, 2);
122
      return new ObjectShape(vertices, indices);
123 123
      }
124 124
    else
125 125
      {
......
144 144
         {4,5,6,7}
145 145
        };
146 146

  
147
      return new ObjectShape(vertices, indices, 3);
147
      return new ObjectShape(vertices, indices);
148 148
      }
149 149
    }
150 150

  

Also available in: Unified diff