Cylinder

Cylinder

Euclidean cylinder

Constructor

new Cylinder(isom, radius, material, ptMaterial)

Source:

Constructor

Parameters:
Name Type Description
isom Isometry

the location of the cylinder

radius number

the radius of the ball

material Material

the material of the ball

ptMaterial PTMaterial

material for path tracing (optional)

Classes

Cylinder
Cylinder
Cylinder

Members

isRendered

Source:
Overrides:

Says whether the solid should be rendered or not. The property can be used to define solids that will appear later in the scene (because of some animation, game event, etc) without having to rebuild the shader. Default is true.

isSolid :boolean

Source:
Overrides:

Say if the item is a solid

Type:
  • boolean

material :Material

Source:
Overrides:

The material of the solid

Type:

ptMaterial :PTMaterial

Source:
Overrides:

The material of the solid for path tracing

Type:

shape :Shape

Source:
Overrides:

The shape of the solids

Type:

Methods

glslInstance() → {string}

Source:
Overrides:

Return a chunk of GLSL code used to compute the color of the solid. This computation may involve normal and/or UV coordinates. This is automatically determined from the properties of the material.

Returns:
Type
string

onAdd(scene)

Source:
Overrides:

Additional actions to perform when the object is added to the scene. By default, propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

setId(scene)

Source:
Overrides:

Set the ID of the shape. Propagate the process if needed.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

updateData()

Source:
Overrides:

Update the data of the underlying shape. It should also update the data of all itd children.

Cylinder Cylinder

Hyperbolic cylinder

Constructor

new Cylinder(isom, radius, material, ptMaterial)

Source:

Constructor

Parameters:
Name Type Description
isom Isometry

the location of the cylinder

radius number

the radius of the cylinder

material Material

the material of the cylinder

ptMaterial PTMaterial

material for path tracing (optional)

Classes

Cylinder
Cylinder
Cylinder

Members

isRendered

Source:
Overrides:

Says whether the solid should be rendered or not. The property can be used to define solids that will appear later in the scene (because of some animation, game event, etc) without having to rebuild the shader. Default is true.

isSolid :boolean

Source:
Overrides:

Say if the item is a solid

Type:
  • boolean

material :Material

Source:
Overrides:

The material of the solid

Type:

ptMaterial :PTMaterial

Source:
Overrides:

The material of the solid for path tracing

Type:

shape :Shape

Source:
Overrides:

The shape of the solids

Type:

Methods

glslInstance() → {string}

Source:
Overrides:

Return a chunk of GLSL code used to compute the color of the solid. This computation may involve normal and/or UV coordinates. This is automatically determined from the properties of the material.

Returns:
Type
string

onAdd(scene)

Source:
Overrides:

Additional actions to perform when the object is added to the scene. By default, propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

setId(scene)

Source:
Overrides:

Set the ID of the shape. Propagate the process if needed.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

updateData()

Source:
Overrides:

Update the data of the underlying shape. It should also update the data of all itd children.

Cylinder Cylinder

Cylinder in spherical geometry

Constructor

new Cylinder(location, radius, material, ptMaterial)

Source:

Constructor

Parameters:
Name Type Description
location Isometry

the location of the cylinder

radius number

the radius of the cylinder

material Material

the material of the cylinder

ptMaterial PTMaterial

material for path tracing (optional)

Extends

Classes

Cylinder
Cylinder
Cylinder

Members

isRendered

Source:
Overrides:

Says whether the solid should be rendered or not. The property can be used to define solids that will appear later in the scene (because of some animation, game event, etc) without having to rebuild the shader. Default is true.

isSolid :boolean

Source:
Overrides:

Say if the item is a solid

Type:
  • boolean

material :Material

Source:
Overrides:

The material of the solid

Type:

ptMaterial :PTMaterial

Source:
Overrides:

The material of the solid for path tracing

Type:

shape :Shape

Source:
Overrides:

The shape of the solids

Type:

Methods

glslInstance() → {string}

Source:
Overrides:

Return a chunk of GLSL code used to compute the color of the solid. This computation may involve normal and/or UV coordinates. This is automatically determined from the properties of the material.

Returns:
Type
string

onAdd(scene)

Source:
Overrides:

Additional actions to perform when the object is added to the scene. By default, propagate the call.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

setId(scene)

Source:
Overrides:

Set the ID of the shape. Propagate the process if needed.

Parameters:
Name Type Description
scene Scene

the scene to which the object is added.

updateData()

Source:
Overrides:

Update the data of the underlying shape. It should also update the data of all itd children.