Interface ImportParams

Object used in RenderMesh.importFromFile and one of RenderMesh constructors. Here you can put some additional parameters, that will be applied to the mesh, when the file is being imported.

interface ImportParams {
    clear?: boolean;
    invertV?: boolean;
    noRebuild?: boolean;
    scale?: [number, number, number];
    translate?: [number, number, number];
}

Properties

clear?: boolean

If true, all existing vertices of the mesh are deleted before the file is imported.

invertV?: boolean

If true, vertex of the texture is inverted.

noRebuild?: boolean

If true, Minecraft won't be forced to rebuild the following RenderMesh before the file is imported.

scale?: [number, number, number]

Additional scale along x, y and z axis.

translate?: [number, number, number]

Additional translation along x, y and z axis.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.