mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve performance of contour line generation
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "RimCheckableNamedObject.h"
|
||||
#include "RimRegularLegendConfig.h"
|
||||
|
||||
#include "cafContourLines.h"
|
||||
#include "cafDisplayCoordTransform.h"
|
||||
#include "cafPdmChildField.h"
|
||||
#include "cafPdmField.h"
|
||||
@@ -140,7 +141,7 @@ protected:
|
||||
bool gridMappingNeedsUpdating() const;
|
||||
bool resultsNeedsUpdating(int timeStep) const;
|
||||
bool geometryNeedsUpdating() const;
|
||||
bool timestepRangeNeedsUpdating() const;
|
||||
bool resultRangeIsValid() const;
|
||||
void clearGridMapping();
|
||||
void clearResults();
|
||||
void clearTimeStepRange();
|
||||
@@ -158,7 +159,9 @@ protected:
|
||||
void generateTrianglesWithVertexValues();
|
||||
std::vector<cvf::Vec3d> generateVertices() const;
|
||||
void generateContourPolygons();
|
||||
void smoothContourPolygons(ContourPolygons* contourPolygons, const ContourPolygons* clipBy, bool favourExpansion);
|
||||
ContourPolygons createContourPolygonsFromLineSegments(caf::ContourLines::ListOfLineSegments& unorderedLineSegments, double contourValue);
|
||||
void smoothContourPolygons(ContourPolygons* contourPolygons, bool favourExpansion);
|
||||
void clipContourPolygons(ContourPolygons* contourPolygons, const ContourPolygons* clipBy);
|
||||
static double sumPolygonArea(const ContourPolygons& contourPolygons);
|
||||
static double sumTriangleAreas(const std::vector<cvf::Vec4d>& triangles);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user