tropical-geometry-0.0.0.1: A Tropical Geometry package for Haskell

Safe HaskellNone
LanguageHaskell2010

Geometry.Polyhedral

Synopsis

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.