Minor seismic surface lines fixes

* Support continuous lines along the seismic surface
* Make sure watertight surface include all cells
* Remove unused function and mark with static
* Invert surface intersection line visibility control
This commit is contained in:
Magne Sjaastad
2023-09-11 07:56:08 +02:00
committed by GitHub
parent 7632064105
commit f931021385
6 changed files with 32 additions and 18 deletions

View File

@@ -179,7 +179,9 @@ std::vector<std::vector<cvf::Vec3d>>
{
domainCurvePoints.emplace_back( intersectionPoint );
}
else
// Create a line segment if we did not find an intersection point or if we are at the end of the polyline
if ( !foundMatch || ( point == resampledPolyline.back() ) )
{
if ( domainCurvePoints.size() > 1 )
{

View File

@@ -66,9 +66,6 @@ public:
double lineThickness,
const std::vector<RimSurface*>& surfaces );
private:
cvf::ref<cvf::DrawableGeo> createXYPlaneQuadGeoWithTexCoords( const cvf::Vec3dArray& cornerPoints );
protected:
cvf::TextureImage* createImageFromData( ZGYAccess::SeismicSliceData* data );

View File

@@ -54,7 +54,7 @@ public:
const cvf::BoundingBox& boundingBox ) = 0;
protected:
cvf::ref<cvf::DrawableGeo> createXYPlaneQuadGeoWithTexCoords( const cvf::Vec3dArray& cornerPoints );
static cvf::ref<cvf::DrawableGeo> createXYPlaneQuadGeoWithTexCoords( const cvf::Vec3dArray& cornerPoints );
cvf::ref<cvf::Part> createSingleTexturedQuadPart( const cvf::Vec3dArray& cornerPoints, cvf::ref<cvf::TextureImage> image, bool transparent );
cvf::ref<cvf::ShaderProgram> m_textureShaderProg;