Cookbook

Generating points

Ensure that pointwrangle is set to run over Detail

Stacking boxes

//user controls 
float size = chf("size");
int pt =  chi("numpt");

// OR reference box size with expressions
// float size  = `chs("/obj/Boxes/box4/sizey")`; // notice the backticks for expressions

for(int i =0 ;i<pt;i++){
    float x = 0;
    float y = i*size;
    float z = 0;
    v@loc = set(x,y,z);
    addpoint(0,v@loc);
}

Stacking spheres

Circle

Spirals

Phyllotaxis

Vogel’s formula

r=cnθ=n137.508r = c\sqrt n \\θ = n * 137.508

Parametric equations

x=cncos(n137.508)y=cnsin(n137.508)x = c \sqrt n*cos ( n * 137.508 )\\y= c \sqrt n*sin ( n * 137.508 )
x=ρcosθsinϕy=ρsinθsinϕz=ρcosϕx = \rho cos\theta sin\phi\\y = \rho sin\theta sin\phi\\z=\rho cos\phi

Torus / Toroidal

x=(a+bcosu)cosvy=(a+bcosu)sinvz=bsinux=(a+bcosu)cosv \\ y=(a+bcosu)sinv\\ z=bsinu

Mobius strip

x=[R+scos(½t)]cos(t)y=[R+scos(½t)]sin(t)z=ssin(½t)x = [ R + s cos(½ t)] cos(t)\\ y= [ R + s cos(½ t)] sin (t) \\ z = s sin(½ t)

Check out: https://www3.math.tu-berlin.de/geometrie/Lehre/SS17/MathVis/exercise01.pdf

Cardioid

Also check out: Times Tables, Mandelbrot and the Heart of Mathematics

Points transformation

Random pscale

Random delete points/prim/id

Random 'pushing' along Normal

Rotation

Rotate to point to center

Rotation with p@orient

Rotating points with matrix

Scale

Scale primitive locally with matrix & foreach

Spreading points in one axis

Color

Band(s) of color moving across geo in one-axis

Oscillations

Sin wave

Using Cd for alpha

Connecting lines

Plexus — Entagma

Type

Random character

Last updated

Was this helpful?