The geometry.py module#

Summary#

Points

Collection of DPF points.

Line

Create Line object from two 3D points.

Plane

Plane object.

normalize_vector

Normalize vector.

get_plane_local_axis

Determine local axis of the plane.

get_global_coords_from_local

Determine global coordinates from local coordinates.

get_local_coords_from_global

Determine local coordinates from global coordinates.

Description#

Geometry.

Module containing the different geometry objects.

Module detail#

geometry.normalize_vector(vector)#

Normalize vector.

geometry.get_plane_local_axis(normal_dir)#

Determine local axis of the plane.

geometry.get_global_coords_from_local(local_coords, axes_plane, center)#

Determine global coordinates from local coordinates.

geometry.get_local_coords_from_global(global_coords, axes_plane, center)#

Determine local coordinates from global coordinates.