File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
src/geode/geosciences_io/mesh Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ namespace
43
43
public:
44
44
DEMInputImpl (
45
45
geode::PolygonalSurface3D& surface, std::string_view filename )
46
- : surface_{ surface },
47
- builder_{ geode::PolygonalSurfaceBuilder3D::create ( surface ) },
46
+ : builder_{ geode::PolygonalSurfaceBuilder3D::create ( surface ) },
48
47
gdal_data_{ GDALDataset::Open (
49
48
geode::to_string ( filename ).c_str (), GDAL_OF_READONLY ) }
50
49
{
@@ -137,7 +136,6 @@ namespace
137
136
}
138
137
139
138
private:
140
- const geode::PolygonalSurface3D& surface_;
141
139
std::unique_ptr< geode::PolygonalSurfaceBuilder3D > builder_;
142
140
GDALDatasetUniquePtr gdal_data_;
143
141
geode::CoordinateSystem2D coordinate_system_;
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ namespace
70
70
geode::filepath_without_filename ( filename ).string ()
71
71
},
72
72
solid_ ( solid ),
73
- builder_{ geode::HybridSolidBuilder< 3 >::create ( solid ) }
73
+ builder_{ geode::HybridSolidBuilder< 3 >::create ( solid_ ) }
74
74
{
75
75
}
76
76
@@ -185,8 +185,9 @@ namespace
185
185
}
186
186
else
187
187
{
188
- OPENGEODE_EXCEPTION ( " [GRDECLInput::read_pillars] Wrong "
189
- " number of coordinates" );
188
+ throw geode::OpenGeodeException{
189
+ " [GRDECLInput::read_pillars] Wrong number of coordinates"
190
+ };
190
191
}
191
192
return pillar;
192
193
}
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ namespace
42
42
public:
43
43
WLInputImpl ( std::string_view filename, geode::EdgedCurve3D& curve )
44
44
: file_{ geode::to_string ( filename ) },
45
- curve_ ( curve ),
46
45
builder_ ( geode::EdgedCurveBuilder3D::create( curve ) )
47
46
{
48
47
OPENGEODE_EXCEPTION (
@@ -111,7 +110,6 @@ namespace
111
110
112
111
private:
113
112
std::ifstream file_;
114
- geode::EdgedCurve3D& curve_;
115
113
std::unique_ptr< geode::EdgedCurveBuilder3D > builder_;
116
114
geode::internal::CRSData crs_;
117
115
};
You can’t perform that action at this time.
0 commit comments