Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Quad

A MeshPrimitive prepopulated with a single +Z-facing quad's vertices and triangles

Hierarchy

  • MeshPrimitive
    • Quad

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Quad(width: number, height: number, material?: Material): Quad
  • Build quad geometry

    Parameters

    • width: number

      The size of the quad along the X axis

    • height: number

      The size of the quad along the Y axis

    • Default value material: Material = null

      An initial material to apply to the quad

    Returns Quad

Properties

material

material: Material

triangles

triangles: number[] = []

vertices

vertices: Vertex[] = []

Methods

getByteSize

  • getByteSize(scanId: number): number
  • Parameters

    • scanId: number

    Returns number

serialize