/** * Returns a new simple frame with a triangle group. * @param vn true, for vertex normals; false, for triangle normals. * @param xyz array of packed vertex coordinates. * @return the simple frame. */ public static SimpleFrame asTriangles(boolean vn, float[] xyz) { return asTriangles(vn,xyz,null); }
/** * Returns a new simple frame with a triangle group. * Triangles will be constructed as vertex normals. * @param xyz array of packed vertex coordinates. * @param rgb array of packed color coordinates. * @return the simple frame. */ public static SimpleFrame asTriangles(float[] xyz, float[] rgb) { return asTriangles(true,xyz,rgb); } /**
/** * Returns a new simple frame with a triangle group. * Triangles will be constructed as vertex normals. * @param xyz array of packed vertex coordinates. * @return a simple frame. */ public static SimpleFrame asTriangles(float[] xyz) { return asTriangles(true,xyz); }
/** * Returns a new simple frame with a triangle group. * @param vn true, for vertex normals; false, for triangle normals. * @param sx sampling of x coordinates; may be non-uniform. * @param sy sampling of y coordinates; may be non-uniform. * @param z array[nx][ny] of z coordinates z = f(x,y). */ public static SimpleFrame asTriangles( boolean vn, Sampling sx, Sampling sy, float[][] z) { return asTriangles(new TriangleGroup(vn,sx,sy,z)); }
/** * Returns a new simple frame with a triangle group. * @param vn true, for vertex normals; false, for triangle normals * @param xyz array of packed vertex coordinates. * @param rgb array of packed color coordinates. * @return the simple frame. */ public static SimpleFrame asTriangles(boolean vn, float[] xyz, float[] rgb) { return asTriangles(new TriangleGroup(vn,xyz,rgb)); }
/** * Returns a new simple frame with a triangle group. * @param vn true, for vertex normals; false, for triangle normals. * @param sx sampling of x coordinates; may be non-uniform. * @param sy sampling of y coordinates; may be non-uniform. * @param z array[nx][ny] of z coordinates z = f(x,y). * @param r array[nx][ny] of red color components. * @param g array[nx][ny] of green color components. * @param b array[nx][ny] of blue color components. */ public static SimpleFrame asTriangles( boolean vn, Sampling sx, Sampling sy, float[][] z, float[][] r, float[][] g, float[][] b) { return asTriangles(new TriangleGroup(vn,sx,sy,z,r,g,b)); }