Repeat
Extends SceneObject
Inherited from SceneObject
name()
name(value: string): this
Sets a custom display name for this object, overriding the default type-based name.
| Parameter | Type | Description |
|---|---|---|
value | string | The display name to assign. |
Methods
instance()
instance(index: number): IRepeatInstance & RepeatAccessorsOf<T>
Selects one instance of the pattern: the repeated features at that slot
as a whole geometry, plus their forwarded bucket accessors when the
repeat clones a single feature (r.instance(1).endEdges(), or a custom
feature's own r.instance(1).tipEdges()). Slot 0 is the original for
circular, mirror, rotate and matrix repeats. Linear repeats linearize
the grid in axis order (the first axis varies slowest) with the
original at its own slot — 0 when not centered, the center slot when
centered — the same numbering the skip option uses; a skipped slot is
an error. An instance of a repeat of a repeat is the whole inner
pattern at that slot.
Returns: IRepeatInstance & RepeatAccessorsOf<T>
| Parameter | Type | Description |
|---|---|---|
index | number | The slot index. |