docsby gkjohnson
Flattening a square of terrain
Data courtesy of NASA/JPL-Caltech
On this page

Methods

hasShape( mesh: Object3D ): boolean
addShape(
	// The shape mesh to flatten tile vertices onto.
	mesh: Object3D,

	// Direction to cast rays when flattening (default downward along -Z).
	direction?: Vector3,
	options?: {
		// Maximum distance from the shape surface within which vertices are flattened. `Infinity` always flattens; `0` never flattens.
		threshold: number = Infinity
	}
): void
updateShape( mesh: Object3D ): void
deleteShape( mesh: Object3D ): boolean
clearShapes(): void