LocalCappedConeShape

LocalCappedConeShape

Local cylinder in hyperbolic geometry

Constructor

new LocalCappedConeShape(radius, isom, height, smoothness)

Source:

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

LocalCappedConeShape

Members

capBtm :Vector4

Source:

Coordinates of the normal vector at the bottom cap of the cylinder (before applying isom)

Type:

capTop :Vector4

Source:

Coordinates of the normal vector at the top cap of the cylinder (before applying isom)

Type:

direction

Source:

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

Source:

Coordinated of the normal vector on the bottom cap of the cylinder Used to compute the SDF

testCapTop

Source:

Coordinated of the normal vector on the top cap of the cylinder Used to compute the SDF