|
| | LatheStock (LatheSurface surface) |
| |
| | LatheStock (LatheSurface surface, Orientation orientation) |
| |
|
LatheStock | getThis () |
| |
| | Shape3D () |
| |
| void | addPickHandler (Object obj, String methodName) |
| |
| Shape3D | pickable (boolean pickable) |
| |
| boolean | pickable () |
| |
| int | nbrParts () |
| |
| Shape3D | use (int parts_to_use) |
| |
| Shape3D | tag (String tag) |
| |
| Shape3D | tag (String tag, int parts) |
| |
| String[] | tags () |
| |
| Shape3D | drawMode (int mode) |
| |
| Shape3D | drawMode (int mode, int parts) |
| |
| int[] | drawModes () |
| |
| Shape3D | fill (int col) |
| |
| Shape3D | fill (int col, int parts) |
| |
| int[] | fills () |
| |
| Shape3D | stroke (int col) |
| |
| Shape3D | stroke (int col, int parts) |
| |
| int[] | strokes () |
| |
| Shape3D | strokeWeight (float weight) |
| |
| Shape3D | strokeWeight (float weight, int parts) |
| |
| float[] | strokeWeights () |
| |
| Shape3D | scale (float scale) |
| |
| float | scale () |
| |
| Shape3D | movie (PApplet pApplet, PImage movie) |
| |
| Shape3D | movie (PApplet pApplet, PImage movie, int parts) |
| |
| Shape3D | texture (PApplet app, String filename) |
| |
| Shape3D | texture (PImage texture) |
| |
| Shape3D | texture (PApplet app, String filename, int parts) |
| |
| Shape3D | texture (PImage texture, int parts) |
| |
| PImage[] | textures () |
| |
| Shape3D | uv (float u0, float u1, float v0, float v1) |
| |
| Shape3D | uv (float u0, float u1, float v0, float v1, int parts) |
| |
| Shape3D | uvt (TransformUV transformer) |
| |
| Shape3D | uvt (TransformUV transformer, int parts) |
| |
| Shape3D | uvwrap (int wrap) |
| |
| Shape3D | uvwrap (int wrap, int parts) |
| |
|
Shape3D | mesh (int nbrColSlices, int nbrRowSlices) |
| |
|
Shape3D | mesh (int nbrColSlices, int nbrRowSlices, int parts) |
| |
| Shape3D | visible (boolean visible) |
| |
| Shape3D | visible (boolean visible, int parts) |
| |
| boolean[] | visibles () |
| |
| Shape3D | moveTo (PVector pos) |
| |
| Shape3D | moveTo (float x, float y, float z) |
| |
| Shape3D | moveTo (float[] xyz) |
| |
|
float | x () |
| |
|
float | y () |
| |
|
float | z () |
| |
| PVector | getPosVec () |
| |
| PVector | getPosVec (PVector target) |
| |
| float[] | getPosArray () |
| |
| float[] | getPosArray (float[] target) |
| |
| PVector | getRotVec () |
| |
| PVector | getRotVec (PVector target) |
| |
| float[] | getRotArray () |
| |
| float[] | getRotArray (float[] target) |
| |
| Shape3D | rotateTo (PVector angles) |
| |
| Shape3D | rotateTo (float[] angles) |
| |
| Shape3D | rotateTo (float x, float y, float z) |
| |
| Shape3D | rotateToX (float x) |
| |
| Shape3D | rotateToY (float y) |
| |
| Shape3D | rotateToZ (float z) |
| |
| Shape3D | rotateBy (float x, float y, float z) |
| |
| Shape3D | rotateBy (float[] angle) |
| |
| Shape3D | rotateBy (PVector angles) |
| |
| Shape3D | rotateByX (float x) |
| |
| Shape3D | rotateByY (float y) |
| |
| Shape3D | rotateByZ (float z) |
| |
|
void | draw (PGraphics pg) |
| |
|
void | drawPickBuffer (PGraphics pg) |
| |
|
|
static void | showSurfaceNormals () |
| |
|
static void | showSurfaceNormals (int color, float weight, float length) |
| |
|
static void | hideSurfaceNormals () |
| |
|
static int | nextPickColor () |
| |
| static Picked | pick (PApplet app, PGraphics canvas, int x, int y) |
| |
| static Picked[] | pick (PApplet app, PGraphics canvas, int x0, int y0, int x1, int y1) |
| |
| static Picked[] | mergePicks (Picked[] picked) |
| |
| static void | keepPickBufferImage (boolean keep) |
| |
| static PImage | pickBufferImage () |
| |
| static int | nbrShapes3D () |
| |
| String | tag |
| |
| int | tagNo = 0 |
| |
|
int | WIRE = 0x00000011 |
| |
|
int | SOLID = 0x00000012 |
| |
|
int | TEXTURE = 0x00000014 |
| |
|
int | DRAWALL = WIRE | SOLID | TEXTURE |
| |
|
int | WHITE = 0xFFFFFFFF |
| |
|
int | BLACK = 0xFF000000 |
| |
|
int | GREY = 0xFFC0C0C0 |
| |
|
int | RED = 0xFFFF0000 |
| |
|
int | GREEN = 0xFF00FF00 |
| |
|
int | BLUE = 0xFF0000FF |
| |
|
int | YELLOW = 0xFFFFFF00 |
| |
|
int | PURPLE = 0xFFFF00FF |
| |
|
int | CYAN = 0xFF00FFFF |
| |
|
int | ORANGE = 0xFFFFC000 |
| |
|
int | CW = 1 |
| |
|
int | CCW = 2 |
| |
|
int | ALL = 0b11111111 |
| |
|
int | BOTTOM = 0b00000001 |
| |
|
int | TOP = 0b00000010 |
| |
|
int | FRONT = 0b00000100 |
| |
|
int | BACK = 0b00001000 |
| |
|
int | LEFT = 0b00010000 |
| |
|
int | RIGHT = 0b00100000 |
| |
|
int | BODY = 0b00000001 |
| |
|
int | END0 = 0b00000010 |
| |
|
int | END1 = 0b00000100 |
| |
|
float | ONE_DEG_T = (float) (Math.PI / 180.0) |
| |
|
PathOrthogonal | ORTHO_X = new PathOrthogonal.PathNormalX() |
| |
|
PathOrthogonal | ORTHO_Y = new PathOrthogonal.PathNormalY() |
| |
|
PathOrthogonal | ORTHO_Z = new PathOrthogonal.PathNormalZ() |
| |
|
PathOrthogonal | ORTHO_A = new PathOrthogonal.PathNormalAMC() |
| |
|
TransformUV | ROT_0 = TransformUV.ROT0 |
| |
|
TransformUV | ROT_90 = TransformUV.ROT90 |
| |
|
TransformUV | ROT_180 = TransformUV.ROT180 |
| |
|
TransformUV | ROT_270 = TransformUV.ROT270 |
| |
|
TransformUV | FLIP_H = TransformUV.FLIPH |
| |
|
TransformUV | FLIP_V = TransformUV.FLIPV |
| |
|
Rotation | ROTATION_ZERO = new Rotation() |
| |
|
int | T_BOX = 0x1001 |
| |
|
int | T_DOME = 0x1002 |
| |
|
int | T_CONE = 0x1003 |
| |
|
int | T_ELLIPSOID = 0x1004 |
| |
|
int | T_EXTRUSION = 0x1005 |
| |
|
int | T_LATHESTOCK = 0x1006 |
| |
|
int | T_MD2 = 0x1007 |
| |
|
int | T_SKYBOX = 0x1008 |
| |
|
int | T_SKYDOME = 0x1009 |
| |
|
int | T_TERRAIN = 0x100A |
| |
|
int | T_TUBE = 0x100B |
| |
|
int | C_LATHESURFACE = 0x2001 |
| |
|
int | C_OVAL = 0x2002 |
| |
|
int | C_POLYGON = 0x2003 |
| |
|
int | P_BCURVE2D = 0x3001 |
| |
|
int | P_BCURVE3D = 0x3002 |
| |
|
int | P_BSPLINE2D = 0x3003 |
| |
|
int | P_BSPLINE3D = 0x3004 |
| |
|
int | P_LINEAR = 0x3005 |
| |
|
int | P_LISSAJOUS = 0x3006 |
| |
|
int | P_RING = 0x3007 |
| |
|
int | P_SPIRAL = 0x3008 |
| |
|
static HashMap< Integer, Shape3D > | mapColor2Shape = new HashMap<Integer, Shape3D>() |
| |
static HashMap< PGraphics,
PGraphics > | mapCanvas2ColorBuffer = new HashMap<PGraphics, PGraphics>() |
| |
|
static List< Shape3D > | shapesMade = new ArrayList<Shape3D>() |
| |
|
static Set< Picked > | marqueeSelection = new HashSet<Picked>() |
| |
|
static boolean | show_normals = false |
| |
|
static int | normal_color = 0xFFFF00FF |
| |
|
static float | normal_weight = 1.0f |
| |
|
static float | normal_length = 10 |
| |
|
static int | nextPickColor = 0xFF000000 |
| |
|
static boolean | keepCopy = false |
| |
|
static PImage | pbImage = null |
| |
A shape that might have been created on a lathe. The shape is created by rotating a 2D path round the Y axis.
- Author
- Peter Lager