Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a plane in 3D space.

Hierarchy

  • CSGPlane

Index

Constructors

  • Initializes the plane

    Parameters

    • normal: Vector3

      The normal for the plane

    • w: number

    Returns CSGPlane

Properties

normal: Vector3
w: number
EPSILON: number

CSG.Plane.EPSILON is the tolerance used by splitPolygon() to decide if a point is on the plane

Methods

  • Clone, or make a deep copy of the plane

    Returns CSGPlane

    a new Plane

  • flip(): void
  • Flip the face of the plane

    Returns void

  • Split polygon by this plane if needed, then put the polygon or polygon fragments in the appropriate lists. Coplanar polygons go into either * coplanarFront or coplanarBack depending on their orientation with respect to this plane. Polygons in front or in back of this plane go into either front or back

    Parameters

    • polygon: CSGPolygon

      The polygon to be split

    • coplanarFront: CSGPolygon[]

      Will contain polygons coplanar with the plane that are oriented to the front of the plane

    • coplanarBack: CSGPolygon[]

      Will contain polygons coplanar with the plane that are oriented to the back of the plane

    • front: CSGPolygon[]

      Will contain the polygons in front of the plane

    • back: CSGPolygon[]

      Will contain the polygons begind the plane

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static property
  • Static method

Settings

Theme