Skip to main content

Bridge

Extends CurveResult

Inherited from CurveResult

edges()​

edges(...args: (number | EdgeFilter)[]): ISelection

The edges of the curve, in the order the curve runs. With no argument, all of them.

Returns: ISelection

ParameterTypeDescription
...args(number | EdgeFilter)[]Edge indices, or edge filters to narrow the edges by. (optional)

start()​

start(): Vertex

The point the curve starts at. When the result is several separate curves, the first one's.

Returns: Vertex


end()​

end(): Vertex

The point the curve ends at. When the result is several separate curves, the first one's.

Returns: Vertex

Inherited from SceneObject

name()​

name(value: string): this

Sets a custom display name for this object, overriding the default type-based name.

ParameterTypeDescription
valuestringThe display name to assign.

Methods​

continuity()​

continuity(start: "g0" | "g1" | "g2", end?: "g0" | "g1" | "g2"): this

How the bridge meets its ends: 'g0' position only, 'g1' tangent (the default), 'g2' curvature. One value sets both ends; two set the start and the end — .continuity('g2', 'g0'). An end that is a plain point only ever matches position, whatever its value; 'g0' at both ends is a straight line between the two points.

The main use of two values: a solid's corner is written as the end of an edge through it (e.endEdges(0).start()), so the bridge would continue that edge; 'g0' at that end matches its position only.

ParameterTypeDescription
start"g0" | "g1" | "g2"At the start (from), or at both ends when it is the only value: 'g0', 'g1' or 'g2'.
end"g0" | "g1" | "g2"At the end (to): 'g0', 'g1' or 'g2'. Left out, the same as start. (optional)

startMagnitude()​

startMagnitude(value: NumberParam): this

How far the bridge keeps going straight before it turns, at its start: 1 by default; larger is fuller, smaller is tighter. Measured against the distance between the two ends, so a magnitude gives the same shape at any scale. It does nothing at a 'g0' end, and must be greater than zero all the same.

ParameterTypeDescription
valueNumberParamA number greater than zero.

endMagnitude()​

endMagnitude(value: NumberParam): this

The same at its end: how far the bridge runs straight into the to curve. 1 by default; nothing at a 'g0' end. Must be greater than zero.

ParameterTypeDescription
valueNumberParamA number greater than zero.