Sha256: 015afd34ca245bc91ce4374bd882b2d8f3d449055eab32394e0316bce1fc7416
Contents?: true
Size: 1016 Bytes
Versions: 11
Compression:
Stored size: 1016 Bytes
Contents
package toxi.newmesh; import toxi.geom.Vec3D; import toxi.util.datatypes.ItemIndex; /** * * @author tux */ public class MeshVertexCompiler extends MeshAttributeCompiler { /** * * @param f * @param index * @param buf * @param offset */ @Override public void compileFace(AttributedFace f, ItemIndex<?> index, float[] buf, int offset) { Vec3D v = (Vec3D) index.forID(f.a); buf[offset++] = v.x; buf[offset++] = v.y; buf[offset++] = v.z; v = (Vec3D) index.forID(f.b); buf[offset++] = v.x; buf[offset++] = v.y; buf[offset++] = v.z; v = (Vec3D) index.forID(f.c); buf[offset++] = v.x; buf[offset++] = v.y; buf[offset++] = v.z; } /** * * @return */ @Override public ItemIndex<?> getIndex() { return mesh.vertices; } /** * * @return */ @Override public int getStride() { return 3; } }
Version data entries
11 entries across 11 versions & 1 rubygems