Methods
Static PlaneHelper
- PlaneHelper(plane: Plane, size?: number): Mesh
-
Parameters
-
plane: Plane
-
size: number = 10000
Returns Mesh
Static addFace
- addFace(geom: Geometry, points: any): void
-
Parameters
-
geom: Geometry
-
points: any
Returns void
Static bboxFromObject
- bboxFromObject(object: Object3D): Box3
Static bboxFromObjects
- bboxFromObjects(objects: Object3D[]): null | Box3
-
Parameters
Returns null | Box3
Static centroidFromBbox
- centroidFromBbox(bbox: Box3): Vector3
-
Parameters
Returns Vector3
Static centroidFromObject
- centroidFromObject(object: Object3D): Vector3
-
Parameters
Returns Vector3
Static centroidFromObjects
- centroidFromObjects(objects: Object3D[]): null | Vector3
-
Parameters
Returns null | Vector3
Static centroidOfPolygon
- centroidOfPolygon(arr: any): number[]
-
Parameters
Returns number[]
Static edgesFromObject
- edgesFromObject(object: Mesh): Line3[]
-
Parameters
Returns 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
-
Parameters
Returns string
Static geometryFromBuffer
- geometryFromBuffer(bufferGeometry: BufferGeometry): Geometry
-
Parameters
-
bufferGeometry: BufferGeometry
Returns Geometry
Static intersectPlane
- intersectPlane(p1: any, p2: any, plane: any): null | { normal: any; uv: any; vertex: any }
-
Parameters
-
p1: any
-
p2: any
-
plane: any
Returns null | { normal: any; uv: any; vertex: any }
Static intersectingGeometry
- intersectingGeometry(object: Mesh, plane: Plane, scene: any): Geometry
-
Parameters
-
object: Mesh
-
plane: Plane
-
scene: any
Returns Geometry
Static intersectingLines
- intersectingLines(object: Mesh, plane: Plane): any[]
-
Parameters
-
object: Mesh
-
plane: Plane
Returns any[]
Static isBbox000
- isBbox000(bbox: Box3): boolean
-
Parameters
Returns boolean
Static isPointInsidePolygon
- isPointInsidePolygon(point: any, polygon: any): boolean
-
Parameters
Returns boolean
Static objectToAxisPolygon
- objectToAxisPolygon(object: Mesh, positionOnAxis: any, planeNormalAxis?: string): any[]
-
Parameters
-
object: Mesh
-
positionOnAxis: any
-
planeNormalAxis: string = 'y'
Returns any[]
Static objectToPolygon
- objectToPolygon(object: Mesh, plane: Plane, scene?: null): any[]
-
Parameters
-
object: Mesh
-
plane: Plane
-
scene: null = null
Returns any[]
Static sliceFace
- sliceFace(plane: Plane, geom: Geometry, points: any, DIRECTION: any): void
-
Parameters
-
plane: Plane
-
geom: Geometry
-
points: any
-
DIRECTION: any
Returns void
Static sliceGeometry
- sliceGeometry(geometry: Geometry, plane: Plane, DIRECTION?: string): Geometry
-
Parameters
-
geometry: Geometry
-
plane: Plane
-
DIRECTION: string = 'front'
Returns Geometry
Static vertexPosition
- vertexPosition(plane: Plane, vertex: any): string
-
Parameters
Returns string
Input: an array of polygons where each element is a ring Output: coordinates of MultiPolygon, compatible with GeoJSON