gophergfx
    Preparing search index...

    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.

    Index
    • Parameters

      • numSegments: number = 20
      • radius: number = 1
      • height: number = 1

      Returns Mesh3