Labs.geometry ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Property of Labs · labs · since 2.0.0 · called as session.labs.geometry
readonly geometry: {
read(query: Query, attributes: readonly GeometryAttribute[], options?: {
from?: 'authored' | 'current';
signal?: AbortSignal;
}): Promise<GeometryData<C>[]>;
write(query: Query, data: GeometryWrite | null, options?: C & SignalOption): Promise<Report>;
};
Read and write vertex data of loaded and created meshes.
| Member | Summary |
|---|---|
read |
Engine query (not an asset load, so it is allowed inside beforeCommit; cache its result by describe(node).asset.version, or by asset.url when the version is null (unstamped)). |
write |
Copy-on-write per part, local space. |
| Rule | Result |
|---|---|
| 1. Neutral name | pass: geometry names no product |
| 2. A precedent | pass: Unity Mesh.vertices (row G9); Unity Mesh.GetIndices (row G9); Unity Mesh.SetVertices (row K54) |
| 3. Two apps, or labs | labs: it graduates when a second app uses it; apps today: app-b362a81c85, app-bcb7ef21da, app-f9a32142f1 |
| 4. The cheaper fix first | decided per need in Appendix B: rows G9, K54 at tier asset, labs (a member only where no rule, data, asset or app code serves the need) |