LocalRoundConeShape

LocalRoundConeShape

Local cone with a half ball at the bottom

Constructor

new LocalRoundConeShape(radius, isom, height)

Source:

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

LocalRoundConeShape

Members

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

nApex :Vector4

Source:

Coordinates of the "normal" vector at the apex of the cone (before applying isom)

Type:

testApex

Source:

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

testCapBtm

Source:

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