Represents a rectangular selection in the world and provides iterators for heightmap vertices, texture units, chunks and models within it.
+ new selection(): selection
Returns: selection
▸ apply(): void
Applies all changes made inside this selection. You almost always want to call this function when you're done with a selection.
Returns: void
▸ center(): vector_3d
Returns the center point of this selection
Returns: vector_3d
▸ chunks(): chunk[]
Creates and returns an iterator for all chunks inside this selection
Returns: chunk[]
▸ make_noise(frequency
: number, algorithm
: string, seed
: string): noisemap
Creates a noisemap matching the location of this selection
Name | Type |
---|---|
frequency |
number |
algorithm |
string |
seed |
string |
Returns: noisemap
▸ max(): vector_3d
Returns the highest point of this selection
Returns: vector_3d
▸ min(): vector_3d
Returns the smallest point of this selection
Returns: vector_3d
▸ models(): model[]
Creates and returns an iterator for all models inside this selection
Returns: model[]
▸ size(): vector_3d
Returns a vector representing the size of this selection on each axis.
note
for iterators, only x and z values are respected. y (height) is ignored.
Returns: vector_3d
▸ tex(): tex[]
Creates and returns an iterator for all texture units inside this selection
Returns: tex[]
▸ verts(): vert[]
Creates and returns an iterator for all vertices inside this selection
Returns: vert[]