package org.uct.cs.simplify.ply.reader;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class Vertex
{
    public float x;
    public float y;
    public float z;
    public byte[] data;

    public Vertex(byte[] input)
    {
        this.data = input;
        ByteBuffer bf = ByteBuffer.wrap(input);
        bf.order(ByteOrder.LITTLE_ENDIAN);
        this.x = bf.getFloat();
        this.y = bf.getFloat();
        this.z = bf.getFloat();
    }


}

@@ -172,16 +172,100 @@
 loat z;%0A
+    //    public int r;%0A//    public int g;%0A//    public int b;%0A//    public int a;%0A
     publ
@@ -529,22 +529,197 @@
 getFloat();%0A
+//%0A//        this.r = 0xFF & ((int)bf.get());%0A//        this.g = 0xFF & ((int)bf.get());%0A//        this.b = 0xFF & ((int)bf.get());%0A//        this.a = 0xFF & ((int)bf.get());%0A
     %7D%0A%0A%0A%7D%0A

Add colour stuff to vertex but commented out