Geometry · function

placeMesh

mesh scaled uniformly and then moved by x, y, z. The same object when the fit is the identity; otherwise a copy of the positions and every other attribute shared, since a uniform scale turns no normal. Morph deltas are the caller's to scale.

Explained in Hello world, Meshes and geometry.

function placeMesh(mesh: MeshData, x: number, y: number, z: number, scale?: number): MeshData
import { placeMesh } from '@driftengine/core';

Parameters

ParameterTypeDescription
meshMeshData
xnumber
ynumber
znumber
scale?number