 |
OpenMesh
|
Go to the documentation of this file.
52 #ifndef OPENMESH_DECIMATER_MODASPECTRATIOT_HH
53 #define OPENMESH_DECIMATER_MODASPECTRATIOT_HH
58 #include <OpenMesh/Core/Utils/Property.hh>
88 typedef typename Mesh::Point Point;
93 Base(_mesh, _is_binary), mesh_(Base::
mesh()), min_aspect_(
95 mesh_.add_property(aspect_);
100 mesh_.remove_property(aspect_);
105 return 1.f / min_aspect_;
110 min_aspect_ = 1.f / _f;
130 Scalar aspectRatio(
const Point& _v0,
const Point& _v1,
const Point& _v2);
143 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODASPECTRATIOT_C)
144 #define OPENMESH_DECIMATER_MODASPECTRATIOT_TEMPLATES
148 #endif // OPENMESH_DECIMATER_MODASPECTRATIOT_HH defined
Definition: PolyMesh_ArrayKernelT.hh:94
float aspect_ratio() const
get aspect ratio
Definition: ModAspectRatioT.hh:104
void set_error_tolerance_factor(double _factor)
set percentage of aspect ratio
Definition: ModAspectRatioT_impl.hh:183
Use aspect ratio to control decimation.
Definition: ModAspectRatioT.hh:81
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition: ModBaseT.hh:149
void set_aspect_ratio(float _f)
set aspect ratio
Definition: ModAspectRatioT.hh:109
~ModAspectRatioT()
destructor
Definition: ModAspectRatioT.hh:99
void initialize()
precompute face aspect ratio
Definition: ModAspectRatioT_impl.hh:96
MeshT & mesh()
Access the mesh associated with the decimater.
Definition: ModBaseT.hh:277
void preprocess_collapse(const CollapseInfo &_ci)
update aspect ratio of one-ring
Definition: ModAspectRatioT_impl.hh:113
This file contains all code required to use Eigen3 vectors as Mesh vectors.
Definition: MeshItems.hh:59
float collapse_priority(const CollapseInfo &_ci)
Returns the collapse priority.
Definition: ModAspectRatioT_impl.hh:133
Base class for all decimation modules.
Definition: ModBaseT.hh:192
Kernel::Scalar Scalar
Scalar type.
Definition: PolyMeshT.hh:110
ModAspectRatioT(MeshT &_mesh, float _min_aspect=5.0, bool _is_binary=true)
constructor
Definition: ModAspectRatioT.hh:91
Project OpenMesh,
© Computer Graphics Group, RWTH Aachen.
Documentation generated using
doxygen
.