shamo.utils.geometry.Plane3D

class shamo.utils.geometry.Plane3D(orig, eig1, eig2)[source]

Bases: object

A 3D plane.

Parameters
p03D Coords

The first point of the plane. This point will serve as the origin of the coordinates system.

p13D Coords

A second point.

p23D Coords

A third point.

Methods

abs_dist

Return the absolute distance from a set of points to the plane.

dist

Return the orthogonal distances from a set of points to the plane.

to_2d

Return the orthogonal projection 2D coordinates of a set of points.

to_3d

Return a 3D orthogonal projection of the plane points into the 3D space.

abs_dist(points)[source]

Return the absolute distance from a set of points to the plane.

dist(points)[source]

Return the orthogonal distances from a set of points to the plane.

to_2d(points)[source]

Return the orthogonal projection 2D coordinates of a set of points.

to_3d(points, dist)[source]

Return a 3D orthogonal projection of the plane points into the 3D space.