paralleldomain.model.geometry.polyline_3d

class Line3DBaseGeometry(start, end)

Represents a 3D Line.

Parameters:
start

the 3D start point of the line in image coordinates

end

the 3D end point of the line in image coordinates

to_numpy()

Returns the start and end coordinates as a numpy array with shape (2 x 3).

property direction: Point3DBaseGeometry[T]

Returns the directional vector of the line.

property length: float

Returns the length of the line.

class Line3DGeometry(start, end)
Parameters:
to_numpy()

Returns the start and end coordinates as a numpy array with shape (2 x 3).

property direction: Point3DBaseGeometry[T]

Returns the directional vector of the line.

property length: float

Returns the length of the line.

class Polyline3DBaseGeometry(lines)

A polyline made of a collection of 3D Lines

Parameters:

lines (List[Line3DBaseGeometry[TypeVar(T, int, float)]]) – lines

lines

Ordered list of Line3DBaseGeometry instances

to_numpy()

Returns all ordered vertices as a numpy array of shape (N x 3).

property length

Returns the length of the line.

class Polyline3DGeometry(lines)
Parameters:

lines (List[Line3DBaseGeometry[T]]) –

to_numpy()

Returns all ordered vertices as a numpy array of shape (N x 3).

property length

Returns the length of the line.