MeshRankResolver type
Function that determines a mesh "rank".
Signature:
type MeshRankResolver = (mesh: NodeInterface) => 0 | 1 | 2 | undefined;
References: NodeInterface
Remarks
The mesh "rank" is a rough indication of it's importance to the overall model. Lower rankings indicate _more_ importance, for example:
For a t-shirt model, the main body may have a rank of 0, while the collar may have a rank of 2.
The internal convention is that the number approximate to:
0
, primary mesh (e.g. main body) -1
, secondary mesh (e.g. left sleeve) -2
, tertiary / detail mesh (e.g. zipper, trim)
Ranking meshes helps when automated resource application on a model. For all-over-prints you often want the print to appear on all meshes _except_ detail meshes like trim or zippers.
You're free to establish your own ranking mechanism if you're automating design creation.