modeling# Wire

Represents a wire in 3D space.

Members

edges

Retrieves all edges of the wire.

isClosed

Checks if the wire is closed.

vertices

Retrieves all vertices of the wire.

Methods

offset(parameters) → {Face}

Offsets the wire by a specified distance.

Parameters:
NameTypeDescription
parametersObject

Offset parameters.

Properties
NameTypeAttributesDefaultDescription
distancenumber

The offset distance.

joinType'arc' | 'tangent' | 'intersection'<optional>
"tangent"

The join type for the offset.

Returns:

A new Wire object representing the offset wire.

Type: 
Face

sweep(parameters) → {Solid}

Sweeps the specified profile along this wire to create a 3D solid. If the wire has sharp edges use transitionMode = "right". If the wire is C1 continuous use transitionMode = "transformed".

Parameters:
NameTypeDescription
parametersObject

Sweep parameters.

Properties
NameTypeAttributesDefaultDescription
profileFace | Wire

Profile to sweep along the wire.

railWire<optional>
null

The guiding rail for the sweep.

transitionMode'transformed' | 'right' | 'round'<optional>
"right"

The transition mode for the sweep.

Returns:

A new Solid object representing the swept result.

Type: 
Solid

sweepMultiple(parameters) → {Solid}

Sweeps the specified profiles along this wire to create a 3D solid. If the wire has sharp edges use transitionMode = "right". If the wire is C1 continuous use transitionMode = "transformed".

Parameters:
NameTypeDescription
parametersObject

Sweep parameters.

Properties
NameTypeAttributesDefaultDescription
profilesArray.<Wire>

Profiles to sweep along the wire.

railWire<optional>
null

The guiding rail for the sweep.

transitionMode'transformed' | 'right' | 'round'<optional>
"right"

The transition mode for the sweep.

Returns:

A new Solid object representing the swept result.

Type: 
Solid

(static) fromEdges(…edges) → {Wire}

Creates a new Wire from the provided edges.

Parameters:
NameTypeAttributesDescription
edgesEdge<repeatable>

The edges to create the wire from.

Returns:

A new Wire object created from the provided edges.

Type: 
Wire

(static) loft(parameters) → {Solid}

Creates a loft between the wires or points to form a 3D solid.

Parameters:
NameTypeDescription
parametersObject

Loft parameters.

Properties
NameTypeAttributesDescription
startVector<optional>

The starting point of the loft.

wiresArray.<Face>

Wires to include in the loft.

endVector<optional>

The ending point of the loft.

Returns:

A new Solid object representing the lofted result.

Type: 
Solid