22#ifndef NAVMAP_CORE__SIMPLIFY_HPP_
23#define NAVMAP_CORE__SIMPLIFY_HPP_
Core container and data structures for EasyNav navigable meshes.
Definition NavMap.hpp:561
Definition Combine.hpp:39
SimplifyStats simplify(NavMap &nm, const SimplifyParams ¶ms={})
Simplify nm in place by half-edge collapses, cheapest first.
Definition Simplify.cpp:403
Parameters of simplify().
Definition Simplify.hpp:37
std::vector< std::string > layers
Layers whose values must not change anywhere; empty: all the layers of the map.
Definition Simplify.hpp:48
float max_edge_length
No edge longer than this (m). Bounds the NavCel size, e.g. to keep marking obstacles fine.
Definition Simplify.hpp:42
float max_normal_change
Maximum rotation (deg) of a NavCel's normal with respect to the original one.
Definition Simplify.hpp:46
float max_error
Geometric error (m): every vertex stays within this distance of the planes of the original NavCels it...
Definition Simplify.hpp:40
float min_quality
Minimum NavCel quality, 4·sqrt(3)·area / sum of squared edges (1 equilateral, 0 flat).
Definition Simplify.hpp:44
std::vector< std::string > ignore_layers
Layers left out of the above (e.g.
Definition Simplify.hpp:51
Sizes before and after simplify().
Definition Simplify.hpp:56
std::size_t navcels_after
Definition Simplify.hpp:57
std::size_t navcels_before
Definition Simplify.hpp:57
std::size_t vertices_before
Definition Simplify.hpp:58
std::size_t vertices_after
Definition Simplify.hpp:58