Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- check_
manifold - Check whether a mesh is 2-manifold.
- clip_
polygon_ 2d - Clip a 2-D polygon (list of
[x, y]) against a convex polygon (clipper). - clip_
polygon_ by_ aabb - Clip a polygon against all six half-spaces of an AABB.
- clip_
polygon_ by_ plane - Clip a convex polygon against a half-space defined by
plane. - line_
line_ intersect_ 2d - Compute the intersection of two infinite 2D lines (given as two points each).
- offset_
polygon_ 2d - Offset a 2D polygon outward by
delta(positive) or inward by|delta|(negative). - point_
in_ polygon_ 2d - Test whether a 2D point is inside a (possibly non-convex) polygon.
- point_
inside_ mesh - Test whether a point is inside a closed mesh using multiple ray casts.
- polygon2d_
area - Compute the unsigned area of a 2D polygon.
- polygon2d_
centroid - Compute the centroid of a 2D polygon.
- polygon2d_
difference - Compute the 2-D difference
a \ bfor convex polygons. - polygon2d_
intersection - Compute the 2-D intersection of two convex polygons using Sutherland-Hodgman.
- polygon2d_
is_ convex - Test whether a 2D polygon is convex.
- polygon2d_
perimeter - Compute the perimeter of a 2D polygon.
- polygon2d_
signed_ area - Compute the signed area of a 2D polygon (positive for CCW winding).
- polygon2d_
union - Compute the 2-D union of two convex polygons.
- polygon_
intersection_ points - Compute intersection points of two polygons.
- ray_
triangle_ intersect - Möller-Trumbore ray-triangle intersection.
- repair_
winding - Repair the winding order of a triangle mesh so that all outward-facing normals point away from the centroid of the mesh.
- segment_
segment_ intersect_ 2d - Compute the intersection of two 2D line segments.
- split_
polygon_ by_ plane - Split a polygon by a plane into front and back fragments.
- triangle_
area - Compute the area of a triangle.
- triangle_
centroid - Compute the centroid of a triangle.
- triangle_
normal - Compute the normal of a triangle (not normalised).
- triangle_
unit_ normal - Compute the unit normal of a triangle.
- triangles_
intersect - Test whether two triangles in 3-D intersect.
- weiler_
atherton_ clip - Clip a subject polygon against a convex clip polygon using the Weiler-Atherton algorithm (2D version).
- winding_
consistency_ score - Check whether all triangles in a mesh have consistent outward normals (pointing away from the mesh centroid).
- winding_
number_ 3d - Compute the winding number of a closed triangle mesh around point
p. - winding_
number_ inside - Test whether a point is strictly inside a closed mesh using the winding number.