Selva Compute API Reference - v2.1.0
    Preparing search index...

    Interface DisplayCurve

    A curve shipped as Rhino-native JSON (curve.ToNurbsCurve().ToJSON()), decoded via rhino3dm and tessellated to a fat Line2 on the web (so DisplayCurve.width is honoured).

    interface DisplayCurve {
        color?: string;
        id: string;
        json: string;
        kind: "curve";
        layer: string;
        metadata?: Record<string, string>;
        name: string;
        opacity?: number;
        width?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    color?: string

    Hex/rgb/named color string, parsed by parseColor. Falls back to a viewer default.

    id: string

    Stable pick key. Both meshes and items synthesize it as ${sourceComponentId}:${originalIndex}.

    json: string

    Rhino CommonObject JSON for the curve.

    kind: "curve"
    layer: string

    Layer path for grouping in the scene manager (e.g. "Structure/Walls").

    metadata?: Record<string, string>

    Arbitrary key-value pairs from the GH Metadata input.

    name: string

    Human label (e.g. "North wall"). Distinct from id — renaming must not change identity.

    opacity?: number

    Opacity 0–1. Omitted means fully opaque.

    width?: number

    Line thickness in CSS pixels (screen-space, constant regardless of zoom). Rendered via a fat Line2, so unlike THREE.Line this is actually honoured. Omitted → viewer default.