Class Geometry3Factory

This is a factory class for creating a variety of common geometries that can be drawn in a 3D scene. Most of these geometries are Mesh3s, meaning they are constructed from triangles, but there are also a few Line3 objects. If you have a really complex 3D model, like an animated character, that geometry will probably be stored in a 3D model file that can be loaded with the MeshLoader class. In contrast this factory is for creating simple geometries (cubes, spheres, cylinders, cones) that can be easily described by a mathematical function.

Hierarchy

  • Geometry3Factory

Constructors

Methods

  • Parameters

    • v1: number
    • v2: number
    • v3: number
    • c1: number
    • c2: number
    • c3: number

    Returns number[]

Generated using TypeDoc