LineCurveView

class py3dm.LineCurveView

Tiny wrapper to read-only access LineCurve (ON_LineCurve) objects.

__eq__(other: object) bool
__ne__(other: object) bool
distance_to(test_point: Point3d, finite_chord: bool = False) float

Returns the distance from the point on the line that is closest to the test_point. If finite_chord is True, the distance is reported to the line as a finite chord.

get_uuid() uuid.UUID

Returns the line unique UUID.

is_valid(text_log: TextLog | None = None) bool

Returns True if start != end and both start and end are valid points.

length() float

Returns the length of the line.