Constructor
new LocalCappedConeShape(radius, isom, height, smoothness)
Constructor
Parameters:
Name | Type | Description |
---|---|---|
radius |
number | Vector2 | the radii of the cone (if a single value is passed, the top and bottom radii are the same) |
isom |
Isometry | the isometry defining the position of the cylinder. |
height |
number | height of the cylinder |
smoothness |
number | 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) |
Extends
Classes
Members
capBtm :Vector4
Coordinates of the normal vector at the bottom cap of the cylinder (before applying isom)
Type:
capTop :Vector4
Coordinates of the normal vector at the top cap of the cylinder (before applying isom)
Type:
direction
Return the vector (point + direction) orienting the geodesic Mainly used to pass data to the shader
isBasicShape :boolean
- Source:
- Overrides:
Says whether the shape is a basic shape, that it is not build on top of other shapes.
Type:
- boolean
testCapBtm
Coordinated of the normal vector on the bottom cap of the cylinder Used to compute the SDF
testCapTop
Coordinated of the normal vector on the top cap of the cylinder Used to compute the SDF