2015-11-24 14:14:14 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-11-24 14:14:14 +01:00
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-11-24 14:14:14 +01:00
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-11-24 14:14:14 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cvfArray.h"
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "cvfObject.h"
|
2016-10-26 17:05:39 +02:00
|
|
|
#include <array>
|
2015-11-24 14:14:14 +01:00
|
|
|
|
2019-11-26 11:51:54 +01:00
|
|
|
class RivExtrudedCurveIntersectionGeometryGenerator;
|
2019-11-26 11:35:21 +01:00
|
|
|
class RimExtrudedCurveIntersection;
|
2015-11-24 14:14:14 +01:00
|
|
|
|
2019-11-26 11:56:05 +01:00
|
|
|
class RivExtrudedCurveIntersectionSourceInfo : public cvf::Object
|
2015-11-24 14:14:14 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2019-11-26 11:56:05 +01:00
|
|
|
explicit RivExtrudedCurveIntersectionSourceInfo( RivExtrudedCurveIntersectionGeometryGenerator* geometryGenerator );
|
2015-11-24 14:14:14 +01:00
|
|
|
|
2019-11-26 13:56:02 +01:00
|
|
|
const std::vector<size_t>& triangleToCellIndex() const;
|
|
|
|
|
std::array<cvf::Vec3f, 3> triangle( int triangleIdx ) const;
|
|
|
|
|
RimExtrudedCurveIntersection* intersection() const;
|
2015-11-26 16:00:08 +01:00
|
|
|
|
2015-11-24 14:14:14 +01:00
|
|
|
private:
|
2019-11-26 12:30:44 +01:00
|
|
|
cvf::cref<RivExtrudedCurveIntersectionGeometryGenerator> m_intersectionGeometryGenerator;
|
2015-11-24 14:14:14 +01:00
|
|
|
};
|