Constructor
new CylinderShape(isom, radius)
Constructor The cylinder is the image by isom of the cylinder going through the origin and directed by e_z The UV map takes value in [-pi, pi] x [-pi, pi]. It is computed as follows
- the u-coordinate is the distance between the origin and the projection of the on the "core" geodesic
- the v-coordinate is such that v = 0 correspond to the point in the e_y direction
Parameters:
Name | Type | Description |
---|---|---|
isom |
Isometry | the position of the cylinder |
radius |
number | the radius of the cylinder |
Extends
Classes
Members
isBasicShape :boolean
- Source:
- Overrides:
Says whether the shape is a basic shape, that it is not build on top of other shapes.
Type:
- boolean
vector
Return the vector (point + direction) orienting the geodesic Mainly used to pass data to the shader
vector
Return the vector (point + direction) orienting the geodesic Mainly used to pass data to the shader