X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DEM%2Fdem.cxx;h=02d6ea16ed9dd3492617651b9de371b288e6902b;hb=04b12c5c54938f6054141ff9dedff7c999392058;hp=f59d4831e09309e0be8583b64138c1be0c94f360;hpb=14888bd09fe53d3490cc9a57c3d0744f5c09b994;p=flightgear.git diff --git a/DEM/dem.cxx b/DEM/dem.cxx index f59d4831e..02d6ea16e 100644 --- a/DEM/dem.cxx +++ b/DEM/dem.cxx @@ -524,7 +524,7 @@ double fgDEM::interpolate_altitude( double lon, double lat ) { // Use least squares to fit a simpler data set to dem data -void fgDEM::fit( double error, fgBUCKET *p ) { +void fgDEM::fit( double error, const FGBucket& p ) { double x[DEM_SIZE_1], y[DEM_SIZE_1]; double m, b, ave_error, max_error; double cury, lasty; @@ -688,7 +688,8 @@ void fgDEM::outputmesh_set_pt( int i, int j, double value ) { // Check for an optional "index.node.ex" file in case there is a .poly // file to go along with this node file. Include these nodes first // since they are referenced by position from the .poly file. -void fgDEM::outputmesh_output_nodes( const string& fg_root, fgBUCKET *p ) { +void fgDEM::outputmesh_output_nodes( const string& fg_root, const FGBucket& p ) +{ double exnodes[MAX_EX_NODES][3]; struct stat stat_buf; string dir; @@ -830,6 +831,9 @@ fgDEM::~fgDEM( void ) { // $Log$ +// Revision 1.24 1999/03/11 23:31:56 curt +// Tweaks to use newbucket.hxx +// // Revision 1.23 1999/03/10 01:09:12 curt // Tweaks to go along with scenery tools overhaul. // Added a new constructor that accepts the file name.