#2841 Fix bad result when z-clipping is applied.

This commit is contained in:
Gaute Lindkvist
2018-05-02 14:01:50 +02:00
parent 98af9e00ab
commit ffccb078e8
2 changed files with 169 additions and 139 deletions

View File

@@ -45,13 +45,13 @@ class Riv3dWellLogDrawSurfaceGenerator : public cvf::Object
public:
Riv3dWellLogDrawSurfaceGenerator(RimWellPath* wellPath);
bool createDrawSurface(const caf::DisplayCoordTransform* displayCoordTransform,
const cvf::BoundingBox& wellPathClipBoundingBox,
double planeAngle,
double planeOffsetFromWellPathCenter,
double planeWidth,
double samplingIntervalSize);
bool createDrawSurface(const caf::DisplayCoordTransform* displayCoordTransform,
const cvf::BoundingBox& wellPathClipBoundingBox,
double planeAngle,
double planeOffsetFromWellPathCenter,
double planeWidth,
double samplingIntervalSize);
void clearGeometry();
cvf::ref<cvf::DrawableGeo> background() const;
@@ -61,6 +61,16 @@ public:
const std::vector<cvf::Vec3f>& vertices() const;
private:
void createCurveNormalVectors(const caf::DisplayCoordTransform* displayCoordTransform,
size_t clipStartIndex,
double planeOffsetFromWellPathCenter,
double planeWidth,
double samplingIntervalSize,
const std::vector<cvf::Vec3d>& wellPathSegmentNormals);
void createBackground(cvf::Vec3fArray* vertexArray);
void createBorder(cvf::Vec3fArray* vertexArray);
const RigWellPath* wellPathGeometry() const;
private: