Skip to content

Intermact API Reference / @intermact/core / Geometry3DTrait

Interface: Geometry3DTrait

Defined in: packages/core/src/object/traits.ts:140

3D renderable capability marker (design.md §4.2, §5.3). Mirrors the 2D stroke/fill traits so the animation/render layers dispatch on capabilities rather than concrete object types: Create reveal mode and grouping pick the right strategy from geometryKind instead of testing object.type. The actual buffers live on the GeometryProvider3D; this trait only states which channel is active.

Properties

geometryKind

readonly geometryKind: "line" | "mesh" | "points"

Defined in: packages/core/src/object/traits.ts:143

Which 3D primitive channel the object exposes (renderer/Create dispatch).


kind

readonly kind: "geometry-3d"

Defined in: packages/core/src/object/traits.ts:141

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)