Mesh

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

Since

3.0.0

Parameters

uuid

the UUID of the mesh

origin

the pivot point (origin) of the mesh

rotation

the rotation of the mesh

vertices

a map of vertex identifiers to their 3D positions

faces

a map of face identifiers to their face data

_visibility

the visibility state (null means visible)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Face : Record
Represents a single face of a mesh.

Properties

Link copied to clipboard
val CAMERA: String = "camera"
The type identifier for a camera element.
Link copied to clipboard
val CUBE: String = "cube"
The type identifier for a cube element.
Link copied to clipboard
val LOCATOR: String = "locator"
The type identifier for a locator element.
Link copied to clipboard
val MESH: String = "mesh"
The type identifier for a mesh element.
Link copied to clipboard
val NULL_OBJECT: String = "null_object"
The type identifier for a null object element.
Link copied to clipboard
val PARSER: JsonDeserializer<ModelElement>
A JSON deserializer that automatically dispatches to the correct ModelElement implementation based on the "type" field.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isSupported(): Boolean
Checks if this element type is supported by the engine.
Link copied to clipboard
@NotNull
open fun origin(): @NotNull Float3
Returns the pivot point (origin) of the mesh.
Link copied to clipboard
@NotNull
open fun rotation(): @NotNull Float3
Returns the rotation of the mesh.
Link copied to clipboard
@NotNull
open fun toBlueprint(): @NotNull BlueprintElement
Converts this raw element into a processed BlueprintElement.
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun type(): @NotNull String
Returns the type identifier of this element.
Link copied to clipboard
@NotNull
abstract fun uuid(): @NotNull String
Returns the unique identifier (UUID) of this element.
Link copied to clipboard
open fun visibility(): Boolean