Skip to content

cutOut beta ​

Function of @v12-engine/editor

ts
export declare function cutOut(document: Document, nodeIndex: number | readonly number[], format: ModelFormat, name: string, options?: CutOptions): Promise<Uint8Array>;

A part of a model cut out as a model of its own, or several parts as one: each node by its index in the file, with everything under it, as it stands in the model (its parents' turn and scale baked into it), with nothing the rest used (meshes, materials, pictures, bones, clips moving other nodes). One part stands at the origin by its own pivot; several keep their places to each other, stood together with the middle of their footprint at the origin and their lowest point on the ground. Written as format says