template class geode::GridMetric

Grid metric implementation

#include <grid_metric.h>

template <index_t dimension>
class GridMetric: public geode::Metric
{
public:
    // construction

    GridMetric(const RegularGrid<dimension>& grid, double default_metric);

    // methods

    virtual double metric(const Point<dimension>& point) const;
    virtual double average_metric() const;
    void paint_point(const Point<dimension>& point, double metric);
    void paint_segment(const Segment<dimension>& segment, double metric);
    void paint_triangle(const Triangle<dimension>& triangle, double metric);
    void paint_mesh(const PointSet<dimension>& mesh, double metric);
    void paint_mesh(const EdgedCurve<dimension>& mesh, double metric);
    void paint_mesh(const TriangulatedSurface<dimension>& mesh, double metric);
    void optimize(double gradation);
};

// direct descendants

class BRepGridMetric;

Inherited Members

public:
    // methods

    virtual double metric(const Point<dimension>& point) const = 0;
    virtual double average_metric() const = 0;