Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ThreeUtils

Index

Constructors

constructor

Methods

Static PlaneHelper

  • PlaneHelper(plane: Plane, size?: number): Mesh

Static addFace

  • addFace(geom: Geometry, points: any): void

Static bboxFromObject

  • bboxFromObject(object: Object3D): Box3

Static bboxFromObjects

  • bboxFromObjects(objects: Object3D[]): null | Box3

Static centroidFromBbox

  • centroidFromBbox(bbox: Box3): Vector3

Static centroidFromObject

  • centroidFromObject(object: Object3D): Vector3

Static centroidFromObjects

  • centroidFromObjects(objects: Object3D[]): null | Vector3

Static centroidOfPolygon

  • centroidOfPolygon(arr: any): number[]

Static edgesFromObject

  • edgesFromObject(object: Mesh): Line3[]

Static facePoints

  • facePoints(geom: Geometry, face: Face3, faceIndex: number): { normal: Vector3; uv: undefined | Vector2; vertex: Vector3 }[]
  • Parameters

    • geom: Geometry
    • face: Face3
    • faceIndex: number

    Returns { normal: Vector3; uv: undefined | Vector2; vertex: Vector3 }[]

Static facePosition

  • facePosition(plane: any, points: any): string

Static geometryFromBuffer

  • geometryFromBuffer(bufferGeometry: BufferGeometry): Geometry

Static intersectPlane

  • intersectPlane(p1: any, p2: any, plane: any): null | { normal: any; uv: any; vertex: any }

Static intersectingGeometry

  • intersectingGeometry(object: Mesh, plane: Plane, scene: any): Geometry

Static intersectingLines

  • intersectingLines(object: Mesh, plane: Plane): any[]
  • Input: an array of polygons where each element is a ring Output: coordinates of MultiPolygon, compatible with GeoJSON

    Parameters

    • object: Mesh
    • plane: Plane

    Returns any[]

Static isBbox000

  • isBbox000(bbox: Box3): boolean

Static isPointInsidePolygon

  • isPointInsidePolygon(point: any, polygon: any): boolean

Static objectToAxisPolygon

  • objectToAxisPolygon(object: Mesh, positionOnAxis: any, planeNormalAxis?: string): any[]

Static objectToPolygon

  • objectToPolygon(object: Mesh, plane: Plane, scene?: null): any[]

Static sliceFace

  • sliceFace(plane: Plane, geom: Geometry, points: any, DIRECTION: any): void

Static sliceGeometry

  • sliceGeometry(geometry: Geometry, plane: Plane, DIRECTION?: string): Geometry

Static vertexPosition

  • vertexPosition(plane: Plane, vertex: any): string

Generated using TypeDoc