Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Plane

A MeshPrimitive prepopulated with a subdivided +Z-facing plane's vertices and triangles

Hierarchy

  • MeshPrimitive
    • Plane

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Plane(width: number, height: number, uSegments?: number, vSegments?: number, material?: Material): Plane
  • Build quad geometry

    Parameters

    • width: number

      The size of the plane along the X axis

    • height: number

      The size of the plane along the Y axis

    • Default value uSegments: number = 10

      The number of subdivisions along the X axis

    • Default value vSegments: number = 10

      The number of subdivisions along the Y axis

    • Default value material: Material = null

      An initial material to apply to the plane

    Returns Plane

Properties

material

material: Material

triangles

triangles: number[] = []

vertices

vertices: Vertex[] = []

Methods

getByteSize

  • getByteSize(scanId: number): number
  • Parameters

    • scanId: number

    Returns number

serialize