aerocaps.geom.plane.Plane#

class Plane(p0: Point3D, p1: Point3D, p2: Point3D)[source]#

Bases: object

__init__(p0: Point3D, p1: Point3D, p2: Point3D)[source]#

Creates a plane from three points

Parameters:
  • p0 (Point3D) – First point (origin of the plane)

  • p1 (Point3D) – Second point

  • p2 (Point3D) – Third point

Methods

compute_normal()

Computes the unit vector normal to the plane

plane_parallel_X(distance_from_origin)

plane_parallel_Y(distance_from_origin)

plane_parallel_Z(distance_from_origin)

plot(plot[, plane_kwargs, mesh_kwargs])

Plots the plane on the scene

Attributes

origin

compute_normal() Vector3D[source]#

Computes the unit vector normal to the plane

Returns:

Unit normal vector

Return type:

Vector3D

plot(plot: Plotter, plane_kwargs: dict = None, mesh_kwargs: dict = None) PolyData[source]#

Plots the plane on the scene

Parameters:
Returns:

The plane mesh object

Return type:

pv.PolyData