Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- adjacentFacets :: Point3D -> ConvexHull -> [Facet]
- isPointInFacet :: Point3D -> Facet -> Bool
- areFacetsAdjacent :: Point3D -> Facet -> Facet -> Bool
- sortFacets :: Point3D -> [Facet] -> [Facet]
- normalVector :: Vertex -> Facet -> Point3D
- crossProduct :: Point3D -> Point3D -> Point3D
- normalCone :: Vertex -> [Facet] -> [Point3D]
- normalFan :: ConvexHull -> [[Point3D]]
- normalFanPointsFacets :: [Point3D] -> ConvexHull -> [[Point3D]]
- isLowerFace :: Facet -> Bool
Documentation
adjacentFacets :: Point3D -> ConvexHull -> [Facet] Source #
Given a vertex of a convex hull, computes the facets adjacent to the vertex.
isPointInFacet :: Point3D -> Facet -> Bool Source #
For each vertex of a polyhedron, the facets must be ordered clockwise since we need there normals to point inside the polyhedron
areFacetsAdjacent :: Point3D -> Facet -> Facet -> Bool Source #
Checks if two facets are adjacent with respect to a vertex in counterclockwise orientation.
sortFacets :: Point3D -> [Facet] -> [Facet] Source #
The facets are ordered counterclockwise with respect to a vertex. [Optimizable]
normalVector :: Vertex -> Facet -> Point3D Source #
Computes normal vector to a facet of the polyhedron with respect to a vertex.
normalFan :: ConvexHull -> [[Point3D]] Source #
normalFanPointsFacets :: [Point3D] -> ConvexHull -> [[Point3D]] Source #
isLowerFace :: Facet -> Bool Source #