Mesh

Represents a mesh element, allowing for complex geometry beyond simple cubes.

Since

3.0.0

Parameters

origin

the pivot point of the mesh

rotation

the rotation of the mesh

faces

the list of faces forming the mesh

visibility

whether the mesh is visible

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Face : Record
Represents a single face of a mesh.
Link copied to clipboard
class Point : Record
Represents a single point (vertex) in a mesh face.

Properties

Link copied to clipboard
val MESH_PIXEL: String = "mesh_pixel"
Link copied to clipboard
val MESH_TRIANGLE_DUPLEX: String = "mesh_triangle_duplex"
Link copied to clipboard
val MESH_TRIANGLE_SINGLE: String = "mesh_triangle_single"

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun rotation(): @NotNull Float3
Returns the rotation of the element.
Link copied to clipboard
@NotNull
@Unmodifiable
open fun toShape(@NotNull parentOrigin: @NotNull Float3): @NotNull @Unmodifiable List<MeshShape>
Converts this mesh into a list of MeshShape for rendering.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
open fun visibility(): Boolean
Checks if the element is visible.