40 #ifndef GEOGRAM_MESH_MESH_PARAM_VALIDATOR
41 #define GEOGRAM_MESH_MESH_PARAM_VALIDATOR
44 #include <geogram/parameterization/mesh_segmentation.h>
132 return overlap_ratio_;
144 return max_overlap_ratio_;
156 max_overlap_ratio_ = x;
192 return min_fill_ratio_;
310 double overlap_ratio_;
315 double max_overlap_ratio_;
325 double min_fill_ratio_;
Generic mechanism for attributes.
Tests whether texture coordinates attached to a surface mesh define a valid parameterization.
void end_rasterizer()
Terminates the software rasterizer.
~ParamValidator()
ParamValidator destructor.
void rasterize_triangle(const vec2 &p1, const vec2 &p2, const vec2 &p3)
Rasterizes a triangle.
double fill_ratio() const
Gets the computed filling ratio.
void transform(const vec2 &p, int &x, int &y)
Transforms a 2d point from parameter space to raterizer coordinates.
double get_max_scaling() const
Gets the maximum scaling.
bool chart_is_valid(Mesh &chart)
Tests whether a Mesh and associated texture coordinates defines a valid parameterization.
ParamValidator(const ParamValidator &rhs)=delete
Forbids copy.
ParamValidator()
ParamValidator constructor.
double get_max_overlap_ratio() const
Gets the maximum overlapping ratio.
void set_min_fill_ratio(double x)
Sets the minimum filling ratio.
ParamValidator & operator=(const ParamValidator &rhs)=delete
Forbids copy.
void compute_fill_and_overlap_ratio(Mesh &chart)
Computes the filling and overlapping ratio of a parameterized chart.
double chart_scaling(Mesh &chart)
Computes the scaling induced by the parameterization.
void set_max_scaling(double x)
Sets the maximum scaling.
double get_min_fill_ratio() const
Gets the minimum filling ratio.
double overlap_ratio() const
Gets the computed overlap ratio.
void set_max_overlap_ratio(double x)
Sets the maximum overlapping ratio.
void set_verbose(bool x)
Enables or disables messages.
void begin_rasterizer(Mesh &mesh, Attribute< double > &tex_coord)
Initializes the software rasterizer for a chart.
Common include file, providing basic definitions. Should be included before anything else by all head...
Geometric functions in 2d and 3d.
Global Vorpaline namespace.