Curve
A SceneObject whose data is { "type": "curve", …Curve } — the tag plus every field of Curve.
Curve
Used by: HatchEntity, PieceData.
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { CurveEdge } from "./CurveEdge.js";
import type { CurveVertex } from "./CurveVertex.js";
export type Curve = {
/**
* geometry — positions the edges index.
*/
vertices: Array<CurveVertex>,
/**
* geometry — unshared chains in connectivity; no edge is privileged.
*/
edges: Array<CurveEdge>, };| field | type | optional | class | doc |
|---|---|---|---|---|
vertices | Array<CurveVertex> | no | geometry | geometry — positions the edges index. |
edges | Array<CurveEdge> | no | geometry | geometry — unshared chains in connectivity; no edge is privileged. |
CurveEdge
Used by: Curve.
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { LineStyle } from "./LineStyle.js";
export type CurveEdge = {
/**
* geometry — vertex id.
*/
start: number,
/**
* geometry — vertex id, never `start`.
*/
end: number,
/**
* intent
*/
lineStyle?: LineStyle,
/**
* intent — by name.
*/
material?: string,
/**
* intent — by name.
*/
layer?: string,
/**
* intent
*/
attributes?: Record<string, unknown>, };| field | type | optional | class | doc |
|---|---|---|---|---|
start | number | no | geometry | geometry — vertex id. |
end | number | no | geometry | geometry — vertex id, never start. |
lineStyle | LineStyle | yes | intent | intent |
material | string | yes | intent | intent — by name. |
layer | string | yes | intent | intent — by name. |
attributes | Record<string, unknown> | yes | intent | intent |
CurveVertex
Used by: Curve.
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CurveVertex = {
/**
* geometry — mm, Z-up.
*/
position: [number, number, number],
/**
* intent — the joint is tangent-continuous; an extrude hands it to `MeshEdge.smooth`.
*/
smooth: boolean,
/**
* intent
*/
attributes?: Record<string, unknown>, };| field | type | optional | class | doc |
|---|---|---|---|---|
position | [number, number, number] | no | geometry | geometry — mm, Z-up. |
smooth | boolean | no | intent | intent — the joint is tangent-continuous; an extrude hands it to MeshEdge.smooth. |
attributes | Record<string, unknown> | yes | intent | intent |
LineStyle
intent — how the line itself is drawn.
Used by: CurveEdge, RenderCell.
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
/**
* intent — how the line itself is drawn.
*/
export type LineStyle = "solid" | "dashed" | "dotted";Values: "solid", "dashed", "dotted".
📖 1 min read