Class: Geometry

Geometry() → {Geometry}

new Geometry() → {Geometry}

Provides an object which stores geometry and provides method which controls its animations. This is created when a valid json file containging geometry is read into a Zinc.Scene object.
Author:
  • Alan Wu
Source:
Returns:
Type
Geometry

Methods

calculateUVs()

Calculate the UV for texture rendering.
Source:

checkTransparentMesh()

Handle transparent mesh, create a clone for backside rendering if it is transparent.
Source:

createMesh(geometryIn, materialIn, options)

Create the mesh for rendering
Parameters:
Name Type Description
geometryIn THREE.Geomtry Geometry to be rendered.
materialIn THREE.Material Material to be set for the geometry.
options Object Provide various options
Properties
Name Type Description
colour THREE.Color colour to be set for the geometry
localTimeEnabled Boolean A flag to indicate either the geometry is time dependent.
localMorphColour Boolean A flag to indicate either the colour is time dependent.
opacity Number Opacity to be set for the geometry
Source:

setWireframe(wireframe)

Set wireframe display for this geometry.
Parameters:
Name Type Description
wireframe Boolean Flag to turn on/off wireframe display.
Source: