Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Face

Index

Constructors

Properties

halfedge: Halfedge

Methods

  • getMidpoint(target: Vector3): void
  • getNormal(target: Vector3): void
  • halfedgeFromPosition(position: Vector3, tolerance?: number): null | Halfedge
  • Returns the face halfedge containing the given position.

    Parameters

    • position: Vector3

      Target position

    • tolerance: number = 1e-10

      Tolerance

    Returns null | Halfedge

    HalfEdge if found, null otherwise

  • hasVertex(vertex: Vertex): boolean
  • isFront(position: Vector3): boolean
  • Returns wether the face facing the given position

    Parameters

    • position: Vector3

      The position

    Returns boolean

    true if face is front facing, false otherwise.

  • vertexFromPosition(position: Vector3, tolerance?: number): null | Vertex
  • Returns the face vertex that matches the given position within the tolerance

    Parameters

    • position: Vector3
    • tolerance: number = 1e-10

    Returns null | Vertex

Generated using TypeDoc