Add requirement close for orient function

This commit is contained in:
Maxime Gimeno
2017-12-13 10:17:42 +01:00
parent 6c42ce6958
commit 687e5b6c60
2 changed files with 8 additions and 6 deletions
@@ -453,7 +453,7 @@ namespace Polygon_mesh_processing {
* @tparam TriangleMesh a model of `FaceListGraph` and `MutableFaceGraph` .
* @tparam NamedParameters a sequence of \ref namedparameters
*
* @param tm a triangulated `TriangleMesh`
* @param tm a closed triangulated `TriangleMesh`
* @param orient_positively indicates if the output mesh should be oriented positively (`true`) or negatively (`false`).
* default value is true.
* A closed polygon mesh is considered to have a positive orientation if the normal vectors
@@ -487,6 +487,7 @@ void orient(TriangleMesh& tm, bool orient_positively, const NamedParameters& np)
if (!is_triangle_mesh(tm)) return ;
if (!is_valid(tm)) return ;
if (!is_closed(tm)) return;
Vpm vpm = boost::choose_param(get_param(np, internal_np::vertex_point),
get_const_property_map(boost::vertex_point, tm));