Skip to main content

Constraint3d

Type Alias Constraint3d 

Source
pub type Constraint3d = Constraint3d;
Expand description

A 3-D sketch’s constraint as a program holds it.

Aliased Type§

pub enum Constraint3d {
    Coincident {
        a: PointId,
        b: PointId,
    },
    Coordinate {
        point: PointId,
        axis: Coordinate,
        value: Scalar,
    },
    Distance {
        a: PointId,
        b: PointId,
        value: Scalar,
    },
    Length {
        line: CurveId,
        value: Scalar,
    },
    Radius {
        arc: CurveId,
        value: Scalar,
    },
    Parallel {
        a: CurveId,
        b: CurveId,
    },
    ParallelTo {
        line: CurveId,
        direction: Vector<3>,
    },
    TangentTo {
        curve: CurveId,
        end: End,
        direction: Vector<3>,
    },
    OnCurve {
        point: PointId,
        curve: CurveId,
    },
    Tangent {
        a: CurveId,
        b: CurveId,
    },
    HelixEnd {
        helix: CurveId,
    },
}

Variants§

§

Coincident

a and b are the same point.

Fields

§

Coordinate

The coordinate axis of point is value.

Fields

§point: PointId
§value: Scalar
§

Distance

Fields

§value: Scalar
§

Length

The length of a line.

Fields

§line: CurveId
§value: Scalar
§

Radius

The radius of an arc.

Fields

§value: Scalar
§

Parallel

Two lines are parallel.

Fields

§

ParallelTo

A line runs along direction: an axis, a straight edge.

Fields

§line: CurveId
§direction: Vector<3>
§

TangentTo

An arc or a spline leaves (end its start) or arrives (its end) along direction, either way along it.

Fields

§curve: CurveId
§end: End
§direction: Vector<3>
§

OnCurve

point lies on curve: within a line or an arc’s full circle, or on a reference curve.

Fields

§point: PointId
§curve: CurveId
§

Tangent

Two curves meeting at an end of each go on smoothly there.

Fields

§

HelixEnd

The end of a helix is where the rest of it says.

Fields

§helix: CurveId