Name | Definition | Parameters |
---|---|---|
CSG.cylinderYCSG.cylinderY({center:[0,0,0], R:5}) | R2-(x-x0)2-(y-y0)2 |
|
CSG.blockCSG.block({vertex:[0,0,0], dx:4,dy:4,dz:4},{color:[0,1,0]}) | x:[vertex[1], vertex[1]+dx], ... |
|
CSG.sphereCSG.sphere({center:[3,3,3], radius:2}, {color:[1,0,0]}) | R2-(x-x0)2-(y-y0)2-(z-z0)2 |
|
CSG.torus[X|Y|Z]CSG.torusX({center:[0,0,0], R:2, r0:3}) | Torus with X, Y or Z-axis |
|
CSG.ellipticCylinderX CSG.ellipticCylinderY CSG.ellipticCylinderZCSG.ellipticCylinderZ({center:[0,0,0], a:1,b:2}, {color:[0.9,0.5,0.9]}) |
1-((y-y0)/a)2-((z-z0)/b)2
1-((x-x0)/a)2-((z-z0)/b)2 1-((x-x0)/a)2-((y-y0)/b)2 |
|
CSG.ellipsoidCSG.ellipsoid({center:[0,0,0], a:1,b:2,c:3}, {color:[1,1,0.8]}) | 1-((x-x0)/a)2-((y-y0)/b)2-((z-z0)/c)2 |
|
CSG.cylinderX CSG.cylinderY CSG.cylinderZCSG.cylinderX({center:[0,0,0], R:3}, {color:[1,1,0.8]}) |
R2-(y-y0)2-(z-z0)2 R2-(x-x0)2-(z-z0)2 R2-(x-x0)2-(y-y0)2 |
|
CSG.coneX CSG.coneY CSG.coneZCSG.coneY({center:[0,0,0], R:3}, {color:[1,1,0.8]}) |
(x-x0)2-((y-y0)/R)2-((z-z0)/R)2
(y-y0)2-((x-x0)/R)2-((z-z0)/R)2 (z-z0)2-((x-x0)/R)2-((y-y0)/R)2 |
|
CSG.catenoidCSG.catenoid({center:[0,0,0]}, {color:[0.8,1,1]}) | x2 + y2 - cosh( z )2 |
|
CSG.helicoidCSG.helicoid({center:[0,0,0]}, {color:[1,0.5,1]}) | cos( z ) y - x sin( z ) |
|
CSG.orthocircles CSG.orthocircles({center:[0,0,0], ff:0.075, bb:3}, {color:[1,0.5,1]}) |
from xahlee.org/surface/orthocircles |
|
CSG.blobbyballCSG.blobbyball({bc:[[-7.0, -7, -7],[-6.0,-4,-6],[-4.0, -7, -4],[-2.0, -4, -2],[0, -2, 0],[7, 1,4]],a:[0.7, 1, 1, 0.3, 1, 1],b:[3, 1, 1, 1, 1, 0.5],T:0.05}) | Sum b*exp(-a*r2)-T |
|
CSG.convLine Cauchy Line with Convolution SurfaceCSG.convLine({T:0.5, S:[0.65, 0.65, 1], begin:[[-8.0, 0.0, 0.0],[0.0, -8.0, 0.0],[0.0, 0.0, -8.0]],end:[[8.0, 0.0, 0.0],[0.0, 8.0, 0.0],[0.0, 0.0, 8.0]]}) |
1 / (1 + S2*R2)2 R is the distance between primitive and x |
|
CSG.convArc Cauchy Arc with Convolution Surface (By: Ken Yoshikawa)CSG.convArc({centers:[[0.0, 0.0, 0.0],[0.0, 0.0, 0.0],[0.0, 0.0, 0.0]],radius:[8.5, 8.5, 8.5],theta:[360.0, 360.0, 360.0],rotate_axes:[[0.0, 0.0, 1.0],[0.0, 1.0, 0.0],[1.0, 0.0, 0.0]],rotate_angles:[0.0, 90.0, 90.0],S:[0.65, 0.65, 0.65],T:0.22}) |
1 / (1 + S2*R2)2 R is the distance between primitive and x |
|