- 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¶
-
subdivision : int =
Last update:
Nov 07, 2024