Plugin Marketplace
Sign in

Documentation

Lua API: every module and type
Lua API · Class

Mesh

A value the API hands your plugin; call its methods to read or change it.

API version1.0.0manifest.json"project.plugin": "1.0.0"From PrusaSlicer3.0.0-alpha13Editor stubsDownload .zip

Where it is used

Methods

#translate

method
mesh:translate(x: number, y: number, z: number)

Translates the mesh in 3D space by the given offsets.

Parameters
xnumber
The X offset.
ynumber
The Y offset.
znumber
The Z offset.
Returns

Nothing.

#bounds

method
mesh:bounds() → BoundingBox

Calculates and returns the bounding box of the mesh.

Returns
BoundingBoxbounds
The computed bounding box.

    ↑↓ move↵ openAPI 1.0.0