Constructor
new LocalRoundConeShape(radius, isom, height)
Constructor The origin is at the center of the half ball (i.e. at the base of the cone)
Parameters:
Name | Type | Description |
---|---|---|
radius |
number | the radius of the base of the cone |
isom |
Isometry | the isometry defining the position of the cylinder. |
height |
number | height of the cylinder 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
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
nApex :Vector4
Coordinates of the "normal" vector at the apex of the cone (before applying isom)
Type:
testApex
Coordinated of the normal vector on the top cap of the cylinder Used to compute the SDF
testCapBtm
Coordinated of the normal vector on the bottom cap of the cylinder Used to compute the SDF