Package rope.mesh
Class R_Voronoi
java.lang.Object
rope.core.Rope
rope.core.BigBang
rope.mesh.R_Voronoi
- All Implemented Interfaces:
R_Constants
,R_Constants_Colour
-
Field Summary
Fields inherited from interface rope.core.R_Constants
ARC, BEZIER_VERTEX, BLANK, BOTTOM, BOX, BREAK, CARTESIAN, CENTER, CHAOS, CHOICE, CHORD, CIRCULAR, CLOSE, CLOUD, CORNER, CORNERS, COS, CROSS, CROSS_BOX_2, CROSS_BOX_3, CROSS_RECT, CUBE_LINE, CURVE_VERTEX, DECAGON, DIAGONAL, DIAMETER, DODECAGON, DOWN, DRAW, DXF, DYNAMIC, EAST, ELLIPSE, EQUATION, EULER, FIRST, FIT, FLOWER, FLUID, FX2D, G, GOLD_ANGLE, GOLD_NUMBER, GRAVITY, HALF, HALF_PI, HENDECAGON, HEPTAGON, HEXAGON, HORIZONTAL, HOUSE, HPI, ICOSI_DODECAHEDRON_LINE, IMAGE, JAVA2D, LANDSCAPE, LAST, LEAF, LEFT, LINE, LINEAR, MAD, MAGNETIC, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MIX, NEXT, NONAGON, NONE, NORMAL, NORTH, NORTH_EAST, NORTH_WEST, NOTCH, NOTHING, NULL, OCTOGON, OCTOHEDRON_LINE, OPEN, ORDER, P2D, P3D, PDF, PENTAGON, PERLIN, PHI, PI, PIE, PIXEL, POINT, POLAR, POLYGON, PORTRAIT, POW, PREVIOUS, QPI, QUADRATIC_VERTEX, QUARTER_PI, RADIUS, RAND, RECT, REPEAT, RHOMBIC_COSI_DODECAHEDRON_SMALL_LINE, RIGHT, ROOT, ROOT2, RUN, SCALE, SEED, SHAPE, SIN, SKY, SOUTH, SOUTH_EAST, SOUTH_WEST, SPAN, SPHERE, SPHERE_HIGH, SPHERE_LOW, SPHERE_MEDIUM, SPIRAL, SQUARE, STAR, STAR_3D, STATIC, SVG, TAN, TAU, TETRAHEDRON, TETRAHEDRON_LINE, TEXT, TOP, TREE, TRIANGLE, TWO_PI, UP, VERSION, VERTEX, VERTICAL, VIRUS, WALK, WEST
Fields inherited from interface rope.core.R_Constants_Colour
ABRICOT, ACAJOU, ALPHA, AMARANTE, AMBRE, ANSI_BLACK, ANSI_BLACK_BACKGROUND, ANSI_BLUE, ANSI_BLUE_BACKGROUND, ANSI_CYAN, ANSI_CYAN_BACKGROUND, ANSI_GREEN, ANSI_GREEN_BACKGROUND, ANSI_PURPLE, ANSI_PURPLE_BACKGROUND, ANSI_RED, ANSI_RED_BACKGROUND, ANSI_RESET, ANSI_WHITE, ANSI_WHITE_BACKGROUND, ANSI_YELLOW, ANSI_YELLOW_BACKGROUND, ARGB, ARGENT, AUBERGINE, AZUR, BIS, BISTRE, BLACK, BLANC, BLEU, BLOND, BLOOD, BLUE, BOUTEILLE, BRIGHTNESS, BRIQUE, BRONZE, BROWN, CAERULEUM, CAFE, CANARD, CANELLE, CAPUCINE, CARMIN, CARMINE, CAROTTE, CELESTE, CERISE, CHAMOIS, CHARTREUSE, CHOCOLAT, CIEL, CITROUILLE, COBALT, COFFEE, COLOMBIN, CORAIL, CYAN, EVEQUE, FRANCE, FUSCHIA, GOLD, GRADIENT, GRADIENT_BRIGHTNESS, GRADIENT_HUE, GRADIENT_SATURATION, GRAY, GRAY_MEDIUM, GREEN, GRENAT, GRIS, GRIS_MOYEN, GUEULES, HSB, HUE, IMPERIAL, JAUNE, LAPIS_LAZULI, LAVANDE, LILAS, LIME, LIN, LUNE, MAGENTA, MANDARINE, MARRON, MAUVE, MIMOSA, MOON, MOUNTBATTEN, NANKIN, NAPLE, NOIR, NOISETTE, NUIT, OCRE, OCRE_JAUNE, OCRE_ROUGE, OLIVE, OR, ORANGE, OUTREMER, PALETTE, PAYNE, PERLE, PERROQUET, PINK, PISTACHE, POURPRE, PRUNE, PURPLE, RAINBOW, RED, RGB, RGBA, ROSE, ROUGE, SANG, SAPIN, SATURATION, SAUGE, SEPIA, SHAKUDOU, SILVER, SINOPLE, SMALT, SOURIS, SPECTRUM, TAUPE, TILLEUL, TURQUOISE, VERMILLON, VERT, VERT_D_EAU, VERT_DE_GRIS, VESSIE, VIOLET, WHITE, YELLOW, ZINZOLIN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add_seed
(float x, float y) void
add_seed
(float x, float y, int arg) Add new seed to populate the voronoi diagramvoid
void
void
it's important to figure the z information will be casted to int.get_area
(int index) get_seed
(int index) get_triangle
(int index) void
remove_seed
(int index) int
size()
void
update()
Is use to update the list of coordonate for areas and triangles the refresh happen when a point is added or remove.void
update
(boolean refresh_is) Methods inherited from class rope.core.BigBang
alpha, blue, brightness, color, color, color, color, createFont, createFont, createFont, get_renderer, get_renderer, getColorMode, getColorMode, green, hue, loadImage, longest_String, longest_String, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, longest_String_pixel, noise, noiseSeed, pass_processing, red, saturation, width_char, width_char, width_char, width_String, width_String, width_String
Methods inherited from class rope.core.Rope
abs, abs, abs, abs, abs, abs, abs, abs, add, add, add, add, add, add, all, all, any, any, atan, barycenter, barycenter, barycenter, binary, binary, binary, binary, ceil, ceil, ceil, ceil, clamp, clamp, clamp, clamp, constrain, constrain, cos, cross, dist, dist, dist, dist, dist, div, div, div, div, div, div, equal, equal, equal, equal, equal, equal, equal, equal, extension, extension_is, file_name, floor, floor, floor, floor, fract, fract, fract, fract, get_os, get_os_family, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, greaterThanEqual, hex, hex, hex, hex, in_line, in_polygon, in_polygon, index_pixel_array, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, lessThanEqual, map, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, mix, mix, mix, mix, mod, mod, mod, mod, mod, mod, mod, mult, mult, mult, mult, mult, mult, only, only, pow, print_err, print_err_tempo, print_out, print_tempo, projection, projection, projection, projection, projection, projection, projection, projection, random, random, random_next_gaussian, random_next_gaussian, random_next_gaussian, round, round, round, round, sign, sign, sign, sign, sign, sign, sign, sign, sin, smoothstep, smoothstep, smoothstep, smoothstep, split, split, sq, sqrt, step, step, step, step, sub, sub, sub, sub, sub, sub, to_cartesian_2D, to_cartesian_2D, to_cartesian_2D, to_cartesian_3D, to_cartesian_3D, to_cartesian_3D, truncate, truncate, unbinary, unhex
-
Constructor Details
-
R_Voronoi
public R_Voronoi(processing.core.PApplet pa) Constructor- Parameters:
pa
-
-
R_Voronoi
public R_Voronoi(processing.core.PApplet pa, float size) Constructor- Parameters:
pa
-size
-
-
-
Method Details
-
size
public int size()- Returns:
- the num of seeds
-
update
public void update()Is use to update the list of coordonate for areas and triangles the refresh happen when a point is added or remove. -
add_seed
public void add_seed(float x, float y, int arg) Add new seed to populate the voronoi diagram- Parameters:
x
- coordinatey
- coordinatearg
- as int information, like color for example
-
add_seed
public void add_seed(float x, float y) -
add_seed
-
add_seed
-
add_seeds
it's important to figure the z information will be casted to int. see public void add_seed(float x, float y, int arg)- Parameters:
seeds
- is vec3 the first and second argument of the vec3 (x,y) is for coordinate, and z is for information, you must figure this value shoulb be cast to int
-
get_seed
-
get_seeds
-
remove_seed
public void remove_seed(int index) -
get_area
-
get_areas
- Returns:
- the list voronoi area, the area is discribe by cloud of vec2 points
-
get_triangle
-
get_triangles
- Returns:
-
update
public void update(boolean refresh_is) - Parameters:
refresh_is
- is an other condition to refresh the list.
-