magnet.geometric_utils#
Geometric utilities module.
Contains functions used for geometric operations, e.g. volume, centroid and distance computations.
Functions
|
Compute the point of a face closest to a given point. |
|
Compute the point of a segment closest to 1a given point. |
|
Compute the point of a triangle closest to a given point. |
|
Compute the centroid of the convex hull of a set of points. |
|
Solve linear constrained least squares problem. |
|
Compute the squared diameter of a set of points. |
Compute area vector of a polygon in 3D space. |
|
Compute the centroid of a 2D polygon. |
|
|
Project a point onto a line. |
Compute the area of a 2D polygon. |
|
|
Compute the baricenter of a simplex. |
|
Compute the volume of a simplex. |