Project

General

Profile

« Previous | Next » 

Revision 57ef6378

Added by Leszek Koltunski over 2 years ago

Float vertices - scratchbook

View differences:

src/main/java/org/distorted/objectlib/json/JsonWriter.java
190 190

  
191 191
///////////////////////////////////////////////////////////////////////////////////////////////////
192 192

  
193
  private JSONArray generateVertices(double[][] vertices, int[] cornerIndices, int[] centerIndices) throws JSONException
193
  private JSONArray generateVertices(float[][] vertices, int[] cornerIndices, int[] centerIndices) throws JSONException
194 194
    {
195 195
    JSONArray array = new JSONArray();
196 196
    int numVertices = vertices.length;
......
250 250
      ObjectShape shape = object.getObjectShape(i);
251 251

  
252 252
      float[] convexity  = shape.getConvexityCenter();
253
      double[][] vertices= shape.getVertices();
253
      float[][] vertices = shape.getVertices();
254 254
      int[][] vertIndices= shape.getVertIndices();
255 255
      float[][] bands    = shape.getBands();
256 256
      int[] bandIndices  = shape.getBandIndices();

Also available in: Unified diff