public class MeshMaker extends Object
Constructor and Description |
---|
MeshMaker() |
Modifier and Type | Method and Description |
---|---|
static List<Point3f> |
copyTranslated(List<Point3f> ps,
float dx,
float dy,
float dz) |
static List<Point3f> |
createDisc(double x,
double y,
double z,
double nx,
double ny,
double nz,
double radius,
int edgePoints) |
static List<Point3f> |
createIcosahedron(int subdivisions,
float radius)
Returns a "3D Viewer"-ready list mesh, centered at 0,0,0 and with radius as
the radius of the enclosing sphere.
|
static List<Point3f> |
createQuadSphere(double x,
double y,
double z,
double r,
int meridians,
int parallels) |
static List<Point3f> |
createSphere(double x,
double y,
double z,
double r) |
static List<Point3f> |
createSphere(double x,
double y,
double z,
double r,
int meridians,
int parallels) |
static List<Point3f> |
createTube(double[] x,
double[] y,
double[] z,
double[] r,
int parallels,
boolean do_resample) |
static double[][][] |
generateGlobe(int meridians,
int parallels)
Generate a globe of radius 1.0 that can be used for any Ball.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static List<Point3f> createSphere(double x, double y, double z, double r, int meridians, int parallels)
public static List<Point3f> createQuadSphere(double x, double y, double z, double r, int meridians, int parallels)
public static double[][][] generateGlobe(int meridians, int parallels)
public static List<Point3f> createTube(double[] x, double[] y, double[] z, double[] r, int parallels, boolean do_resample)
public static List<Point3f> createDisc(double x, double y, double z, double nx, double ny, double nz, double radius, int edgePoints)
public static final List<Point3f> createIcosahedron(int subdivisions, float radius)
Copyright © 2015–2021 Fiji. All rights reserved.