new LocalCappedCylinderShape(radius, isom, height, smoothness)
the radii of the cone (if a single value is passed, the top and bottom radii are the same)
the isometry defining the position of the cylinder.
height of the cylinder
smoothness of the edge (polynomial smooth max) The cylinder is the image by isom of the cylinder going through the origin and directed by the vector (0,0,1)
Coordinates of the normal vector at the bottom cap of the cylinder (before applying isom)
Coordinates of the normal vector at the top cap of the cylinder (before applying isom)
Return the vector (point + direction) orienting the geodesic Mainly used to pass data to the shader
Says whether the shape is a basic shape, that it is not build on top of other shapes.
Coordinated of the normal vector on the bottom cap of the cylinder Used to compute the SDF
Coordinated of the normal vector on the top cap of the cylinder Used to compute the SDF