class neso_fame.mesh.StraightLine(LazilyOffsetable)

A straight line that connects two points.

It is a NormalisedCurve.

Public members

subdivision : int = 0
num_divisions : int = 1
north : Coord
south : Coord

Constructors

StraightLine(north: Coord, south: Coord, subdivision: int = 0, ...)

Initialize self. See help(type(self)) for accurate signature.

Special methods

__call__(s: numpy.typing.ArrayLike) Coords

Calculate a position on the curve.

__repr__()

Return repr(self).

__eq__(other)

Return self==value.

__hash__()

Return hash(self).

Methods

subdivide(num_divisions: int) Iterator[StraightLine]

Split this line into equal-length segments.

Properties

property x3_offset : float

Return the offset in the x3 direction.

property is_offset : bool

Indicate whether the object has been offset.


Last update: Sep 23, 2024