addtriangle |
Mesh:addtriangle(P1_X, P1_Y, P1_Z, P2_X, P2_Y, P2_Z, P3_X, P3_Y, P3_Z:number) |
Adds a triangle to a mesh |
applymatrix |
mesh:applymatrix(matrix:LUAMatrix4f) |
Applies a 4×4 transformation matrix to a mesh. The matrix is passed as LUAMatrix4f object. |
calcoutbox |
Outbox = mesh:calcoutbox() |
Calculates the bounding box of a mesh, returns Outbox object. |
create_partorienter |
orienter = mesh:create_partorienter() |
Creates and returns new Orienter object for this mesh, see PartOrienter |
dupe |
Newmesh = mesh:dupe() |
Creates and returns a full copy of the mesh, incurring associated memory cost. |
fillplatformwithparts |
mesh:fillplatformwithparts('':string, distance_between_parts:number, distance_to_border:number, distance_from_top:number, distance_from_bottom:number) |
Multiplies the given tray mesh part enough times and arranges the result including original in a cuboid grid to fill the part's current buildroom. Internally, these are proper duplicates, not instances, with the associated memory cost. The string argument is required but is currently not used. |
invert |
mesh:invert() |
Inverts the orientation of all triangles |
merge |
mesh:merge(anothermesh:string) |
Adds another mesh into the mesh |
move |
mesh:move(x:number, y:number, z:number) |
Translates the mesh by a given vector |
movetoorigin |
mesh:movetoorigin() |
Translates the mesh to the origin |
minimizeoutbox |
Mesh:minimizeoutbox(mode:string) |
Rotates the mesh to minimize the volume or the height and the base area of the mesh bounding box. "Volume" minimizes the bounding box volume. "VolumeFlat" mimizes the bounding box volume, then orients the mesh so that the shortest edges of the bounding box align with the Z axis. "HeightBase" minimizes the bounding box volume, then rotates the mesh in Z to minimize the bounding box base area. |
release |
mesh:release() |
Releases the memory of a mesh. It cannot be accessed anymore after applying this method |
rotate |
mesh:rotate(xAxis:number, yAxis:number, zAxis:number, angle:number, xCen:number, yCen:number, zCen:number) |
Rotates the mesh by a given angle (given in degree) around a given axis and a given center. The center is optional. If no center is given, (0,0,0) is used. |
scale |
mesh:scale(x:number, y:number, z:number) |
Scales the mesh by a given factor. Center is the point of origin. If y and z are not specified, x value is used. |
zcompensation |
mesh:zcompensation(value:integer) |
Applies Z-Compensation to mesh, Value in mm. |