MiscFunctions Methods

The MiscFunctions type exposes the following members.

Methods


  Name Description
Public method Static member AreaOf3DPolygon
Calculate the area of any non-intersecting polygon in 3D space This is faster than projecting to a 2D surface first in a seperate function.
Public method Static member AreaOfPolygon
Calculate the area of any non-intersecting polygon.
Public method Static member DistancePointToLine(array<Double>[]()[][], array<Double>[]()[][], array<Double>[]()[][])
Returns the distance the point to line.
Public method Static member DistancePointToLine(array<Double>[]()[][], array<Double>[]()[][], array<Double>[]()[][], array<Double>[]()[][]%)
Distances the point to line.
Public method Static member DistancePointToPlane(array<Double>[]()[][], array<Double>[]()[][], array<Double>[]()[][])
Returns the signed distance of the point to the plane.
Public method Static member DistancePointToPlane(array<Double>[]()[][], array<Double>[]()[][], Double)
Returns the signed distance of the point to the plane. If the point is "above" the plane, then a positive distance is return - if "below" then negative. This "above" means that the point is on the side of the plane that the normal points towards.
Public method Static member DistancePointToPoint
Distances the point to point.
Public method Static member FindSolidIntersections
Returns lists of vertices that are inside vs. outside of each solid.
Public method Static member Get2DProjectionPoints(IList<(Of <<'(Vertex>)>>), array<Double>[]()[][], Boolean)
Returns the positions (array of 3D arrays) of the vertices as that they would be represented in the x-y plane (although the z-values will be non-zero). This does not destructively alter the vertices.
Public method Static member Get2DProjectionPoints(IList<(Of <<'(Vertex>)>>), array<Double>[]()[][], array<Double,2>[,](,)[,][,]%, Boolean)
Returns the positions (array of 3D arrays) of the vertices as that they would be represented in the x-y plane (although the z-values will be non-zero). This does not destructively alter the vertices.
Public method Static member Get2DProjectionPoints(IList<(Of <<'(Vertex>)>>), array<Double,2>[,](,)[,][,], Boolean, Double)
Get2s the d projection points.
Public method Static member Get2DProjectionPoints(IList<(Of <<'(array<Double>[]()[][]>)>>), array<Double>[]()[][])
Gets the 2D projectsion points of vertices
Public method Static member GetMultipleSolids
Gets all the individual solids from a tesselated solid.
Public method Static member IsPointInsidePolygon
Determines if a point is inside a polygon, where a polygon is an ordered list of 2D points. And the polygon is not self-intersecting
Public method Static member IsPointInsideTriangle(PolygonalFace, Vertex, Boolean)
Returns whether a vertex lies on a triangle. User can specify whether the edges of the triangle are considered "inside."
Public method Static member IsPointInsideTriangle(IList<(Of <<'(Vertex>)>>), Vertex, Boolean)
Returns whether a vertex lies on a triangle. User can specify whether the edges of the triangle are considered "inside."
Public method Static member IsVertexInsideSolid
Determines if a point is inside a tesselated solid (polyhedron). And the polygon is not self-intersecting http://www.cescg.org/CESCG-2012/papers/Horvat-Ray-casting_point-in-polyhedron_test.pdf
Public method Static member Perimeter(ICollection<(Of <<'(Point>)>>))
Gets the perimeter for a 2D set of points.
Public method Static member Perimeter(ICollection<(Of <<'(Vertex>)>>))
Gets the Perimeter (length of a loop) of a 3D set of Vertices.
Public method Static member PointCommonToThreePlanes
Find the point common to three planes.
Public method Static member PointOnPlaneFromIntersectingLine
Finds the point on the plane made by a line (which is described by connecting point1 and point2) intersecting with that plane.
Public method Static member PointOnPlaneFromRay
Finds the point on the plane made by a ray. If that ray is not going to pass through the that plane, then null is returned.
Public method Static member PointOnTriangleFromLine
Finds the point on the triangle made by a line. If that line is not going to pass through the that triangle, then null is returned. The signed distance is positive if the vertex points to the triangle along the direction (ray). User can also specify whether the edges of the triangle are considered "inside."
Public method Static member SortAlongDirection
Returns a list of sorted vertices along a set direction. Ties are broken by direction[1] then direction[2] if available.