modeling# Edge

Represents an edge in 3D space.

Members

length

Calculates the length of the edge.

type

Determines the type of the edge's curve.

vertices

Retrieves all vertices of the edge.

Methods

isParallel(direction) → {boolean|undefined}

Checks if the edge is parallel to a given direction vector. Only applicable for line edges.

Parameters:
NameTypeDescription
directionVector

The direction vector.

Returns:

true if the edge is parallel to the direction, false otherwise, or undefined if not a line.

Type: 
boolean | undefined

isPerpendicular(direction) → {boolean|undefined}

Checks if the edge is perpendicular to a given direction vector. Only applicable for line edges.

Parameters:
NameTypeDescription
directionVector

The direction vector.

Returns:

true if the edge is perpendicular to the direction, false otherwise, or undefined if not a line.

Type: 
boolean | undefined

pointAt(value) → {Vector}

Retrieves the point at a specified normalized distance along the edge.

Parameters:
NameTypeDescription
valuenumber

The normalized distance along the edge (between 0 and 1).

Returns:

A Vector object representing the point at the given distance.

Type: 
Vector

pointAtLength(value) → {Vector}

Retrieves the point at a specified distance along the edge.

Parameters:
NameTypeDescription
valuenumber

The distance along the edge (between 0 and edge.length()).

Returns:

A Vector object representing the point at the given distance.

Type: 
Vector

tangentAt(value) → {Vector}

Retrieves the tangent vector at a specified normalized distance along the edge.

Parameters:
NameTypeDescription
valuenumber

The normalized distance along the edge (between 0 and 1).

Returns:

A Vector object representing the tangent vector at the given distance.

Type: 
Vector