public static class GeometricOperations
Thetype exposes the following members.
Calculates a face normal from three vertices. The vertices have to be coplanar and part of the face.
Returns the half edges from a source collection of half edges - with opposite direction.
Calculates the mean Vertex position of given Vertices.
Determines if the angle between two vectors, formed by three vertices, is greater or equal 180°. The first vector will be created from v1 and v2, the second from v2 and v3.
Determines whether the angle between two vectors formed by three vertices is greater than 180 °. The first vector will be created from v1 and v2, the second from v2 and v3.
Checks whether a polygon, parallel to the xy plane, has a ccw winding. This method does NOT support polygons parallel to the yz or xz plane! To guarantee a correct output make sure the polygon doesn't degenerate when the z coordinates are ignored.
Checks if two lines intersect.
|IsPointInPolygon(Geometry, Face, Vertex)|
Tests if a point/vertex lies inside or outside a face - only works for polygons parallel to a plane!
|IsPointInPolygon(Geometry, Face, float3)|
Tests if a point/vertex lies inside or outside a face - Only use this if you know the face AND vertex lie in the same plane and this plane is parallel to xy or xz or yz!
Tests if a vertex is a direct neighbour of an other vertex. Only use this method if you know the incident half edges of the vertex.