geometry#
Numba-compiled computational geometry routines needed for regridding operations.
Functions
|
Compute the signed area of the triangle formed by two vertices and the origin. |
|
Test if two bounding boxes, \(p\) and \(q\), intersect. |
|
Test if two bounding boxes, \(p\) and \(q\), intersect. |
|
Test if a given point lies above, on, or below a line specified by two endpoints. |
Check whether a given line segment intersects with a triangle. |
|
|
Compute the 3D point where a line intersects a triangle using the Parametric form described in the Line-plane intersection Wikipedia article. |
|
Compute the parameters \(t,u,v\) describing the point of intersection between a line and triangle in 3D. |
|
Check if a given query point is contained within a 2D box specified by two opposite corners. |
|
Check if a given query point is contained within a 3D box specified by two opposite corners. |
|
Check if a given point is inside or on the boundary of a polygon specified by its vertices. |
|
Check if the given point is inside or on the boundary of a polyhedron defined by a sequence of triangles. |
|
Calculate the solid angle subtended by a triangle with respect to a query point. |
|
Compute the point of intersection between two line segments. |
Computes the parameters (\(t\) and \(u\)) associated with the intersection of two 2D line segments, \(p\) and \(q\). |
|
Check whether two line segments intersect. |
|
|
Compute the signed volume of the tetrahedron formed by three vertices and the origin |