<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Geoml__Polyhedron (geoml.Geoml__Polyhedron)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.3"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../index.html">geoml</a> &#x00BB; Geoml__Polyhedron</nav><h1>Module <code>Geoml__Polyhedron</code></h1><p>The module for the polyhedron manipulation. We use the term &quot;polyhedron&quot; to define a set of linear constraint. Each constraint defines a half-plan. A polyhedron is then determined by the intersections of all the half-plans formed by its constaint. It differs from polygons which represent finite enveloppes (For example, convex polygons are a particular cases of polyhedra, which can be infinite).</p></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = <span class="keyword">private</span> <span><a href="../Geoml/Constraint/index.html#type-t">Geoml.Constraint.t</a> list</span></code></dt></dl><dl><dt class="spec value" id="val-make"><a href="#val-make" class="anchor"></a><code><span class="keyword">val</span> make : <span><a href="../Geoml/Constraint/index.html#type-t">Geoml.Constraint.t</a> list</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-is_empty"><a href="#val-is_empty" class="anchor"></a><code><span class="keyword">val</span> is_empty : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>checks if the space defined by the constraint list is empty</p></dd></dl><dl><dt class="spec value" id="val-is_closed"><a href="#val-is_closed" class="anchor"></a><code><span class="keyword">val</span> is_closed : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>checks if the space defined by the constraint list is finite</p></dd></dl><dl><dt class="spec value" id="val-is_open"><a href="#val-is_open" class="anchor"></a><code><span class="keyword">val</span> is_open : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>checks if the space defined by the constraint list is infinite</p></dd></dl><dl><dt class="spec value" id="val-contains"><a href="#val-contains" class="anchor"></a><code><span class="keyword">val</span> contains : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-translate"><a href="#val-translate" class="anchor"></a><code><span class="keyword">val</span> translate : float <span>&#45;&gt;</span> float <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-intersection"><a href="#val-intersection" class="anchor"></a><code><span class="keyword">val</span> intersection : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-remove_redundancies"><a href="#val-remove_redundancies" class="anchor"></a><code><span class="keyword">val</span> remove_redundancies : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>remove redundant constraints of a polyhedra</p></dd></dl><dl><dt class="spec value" id="val-of_polygon"><a href="#val-of_polygon" class="anchor"></a><code><span class="keyword">val</span> of_polygon : <a href="../Geoml/Polygon/Convex/index.html#type-t">Geoml.Polygon.Convex.t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>returns the polyhedron corresponding to the space defined by a polygon</p></dd></dl><dl><dt class="spec value" id="val-to_polygon"><a href="#val-to_polygon" class="anchor"></a><code><span class="keyword">val</span> to_polygon : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="../Geoml/Polygon/Convex/index.html#type-t">Geoml.Polygon.Convex.t</a></code></dt><dd><p>returns the polygon corresponding to the space defined by a polyhedron. raises a failure if the polyhedron is open</p></dd></dl><dl><dt class="spec value" id="val-get_constr"><a href="#val-get_constr" class="anchor"></a><code><span class="keyword">val</span> get_constr : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><a href="../Geoml/Constraint/index.html#type-t">Geoml.Constraint.t</a> list</span></code></dt><dd><p>returns the list of constraint of the polyhedron</p></dd></dl><dl><dt class="spec value" id="val-print"><a href="#val-print" class="anchor"></a><code><span class="keyword">val</span> print : Stdlib.Format.formatter <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p>prints the list of constraint of the polyhedron</p></dd></dl></div></body></html>