Skip to main content

ProjectedCurve

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​

mode()​

mode(value: "normal" | "direction"): this

How each point travels: 'direction' (the default), every point along one line, the one .direction() gives; 'normal', every point to the closest point of the target.

ParameterTypeDescription
value"normal" | "direction"'direction' or 'normal'.

direction()​

direction(value: DirectionInputLike): this

The line every point travels along, for mode 'direction'. It is a line, not an arrow: the source is projected both ways along it, and .keep() decides which images stay. Left out, it is the normal of the plane the source lies in.

ParameterTypeDescription
valueDirectionInputLike'x', 'y', 'z', an axis(), a straight edge or a connector (its Z axis); or 'xy', 'xz', 'yz', a plane() or a planar face, for its normal.

keep()​

keep(value: "nearest" | "all"): this

Which images stay: 'nearest' (the default) — along the direction, what the line through each point of the source meets first, so the far side of a body is left out and every stretch of the near side stays; in mode 'normal', the image nearest the source — or 'all', every image, the far side of a closed body too.

ParameterTypeDescription
value"nearest" | "all"'nearest' or 'all'.