Commonplace kernel API
    Preparing search index...

    Type Alias CurveDefExperimental

    CurveDef:
        | { end: Point3; kind: "line"; start: Point3 }
        | {
            center: Point3;
            kind: "arc";
            normal: Point3;
            radius: number;
            refAxis: Point3;
            startAngle: number;
            sweepAngle: number;
        }
        | {
            axisU: Point3;
            axisV: Point3;
            center: Point3;
            kind: "ellipse";
            major: Point3;
            minor: Point3;
            normal: Point3;
            phase: number;
            startAngle: number;
            sweepAngle: number;
        }
        | { controls: Point3[]; kind: "bezier"; weights?: number[] }
        | { curve: string; kind: "on-surface" }

    An edge's curve, as plain values, in the direction of its record: the curve's parameter 0 is at EdgeRecord.start and 1 at end, as edgePointAt reads it.

    • line: the segment from start to end.
    • arc: a circular arc, P(θ) = center + radius·(cos θ·refAxis + sin θ·(normal × refAxis)), θ = startAngle + t·sweepAngle (radians; |sweepAngle| = 2π is a full circle).
    • ellipse: an elliptical arc, P(θ) = center + cos θ·axisU + sin θ·axisV with θ as for an arc. axisU and axisV are the conjugate semi-diameters the curve is stored with (not necessarily perpendicular); major and minor are its principal semi-axes (perpendicular, |major| ≥ |minor|), and phase is θ less the principal angle: P = center + cos(θ − phase)·major + sin(θ − phase)·minor.
    • bezier: a Bézier curve of degree controls.length − 1 on t ∈ [0, 1]; weights (one per control) when it is rational.
    • on-surface: a curve the kernel holds on a surface (a trim, the intersection of two surfaces, a row of an offset wall). It is exact, but has no closed form to hand out: read it with edgePointAt. curve is the kernel's curve kind.

    Type Declaration

    • { end: Point3; kind: "line"; start: Point3 }
    • {
          center: Point3;
          kind: "arc";
          normal: Point3;
          radius: number;
          refAxis: Point3;
          startAngle: number;
          sweepAngle: number;
      }
      • center: Point3
      • kind: "arc"
      • normal: Point3

        Unit normal of the arc's plane; the sweep turns about it.

      • radius: number
      • refAxis: Point3

        Unit, from the center toward θ = 0.

      • startAngle: number
      • sweepAngle: number
    • {
          axisU: Point3;
          axisV: Point3;
          center: Point3;
          kind: "ellipse";
          major: Point3;
          minor: Point3;
          normal: Point3;
          phase: number;
          startAngle: number;
          sweepAngle: number;
      }
      • axisU: Point3
      • axisV: Point3
      • center: Point3
      • kind: "ellipse"
      • major: Point3

        The principal semi-major axis (length = semi-major radius).

      • minor: Point3

        The principal semi-minor axis (length = semi-minor radius).

      • normal: Point3

        Unit normal of the ellipse's plane, axisU × axisV normalized.

      • phase: number
      • startAngle: number
      • sweepAngle: number
    • { controls: Point3[]; kind: "bezier"; weights?: number[] }
    • { curve: string; kind: "on-surface" }

    2026-Q4

    experimental — stable-by target: 2027-Q2