Click or drag to resize

GeometricOperations Class

Provides methods to perform geometric operations.
Inheritance Hierarchy
SystemObject
  Fusee.JometriGeometricOperations

Namespace:  Fusee.Jometri
Assembly:  Fusee.Jometri (in Fusee.Jometri.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public static class GeometricOperations

The GeometricOperations type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCalculateFaceNormal
Calculates a face normal from three vertices. The vertices have to be coplanar and part of the face.
Public methodStatic memberGetHalfEdgesWChangedWinding
Returns the half edges from a source collection of half edges - with opposite direction.
Public methodStatic memberGetVerticesMeanPos
Calculates the mean Vertex position of given Vertices.
Public methodStatic memberIsAngleGreaterOrEqualPi
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.
Public methodStatic memberIsAngleGreaterPi
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.
Public methodStatic memberIsCounterClockwise
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.
Public methodStatic memberIsLineIntersectingLine
Checks if two lines intersect.
Public methodStatic memberIsPointInPolygon(Geometry, Face, Vertex)
Tests if a point/vertex lies inside or outside a face - only works for polygons parallel to a plane!
Public methodStatic memberIsPointInPolygon(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!
Public methodStatic memberIsVertexAdjacentToVertex
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.
Top
See Also