Skip to content
ParaShape

Curve

Evaluated shape. A curve-typed parameter stores this literally.

// 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>, };
// 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>, };
// 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>, };
// 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";
📖 1 min read