update src
This commit is contained in:
parent
2a20834ae0
commit
2a281b99e5
4
demo.cpp
4
demo.cpp
@ -1,4 +1,4 @@
|
|||||||
#include "tin_backup.h"
|
#include "tin.h"
|
||||||
#include "iostream"
|
#include "iostream"
|
||||||
#include "fstream"
|
#include "fstream"
|
||||||
#include "iomanip"
|
#include "iomanip"
|
||||||
@ -18,7 +18,7 @@ int main(int argc, char const *argv[])
|
|||||||
std::vector<double> err_records;
|
std::vector<double> err_records;
|
||||||
std::vector<vertex2dc*> tin_vert;
|
std::vector<vertex2dc*> tin_vert;
|
||||||
std::vector<triangle*> tin_ele;
|
std::vector<triangle*> tin_ele;
|
||||||
dem2tin(topo, 0, 1000, 0, 1000, 10, 10, tin_vert, tin_ele, 1.0, &err_records);
|
dem2tin(topo, 0, 1000, 0, 1000, 10, 10, tin_vert, tin_ele, 0.5, &err_records);
|
||||||
|
|
||||||
// Write a log file
|
// Write a log file
|
||||||
std::ofstream logfile("topo_TIN.log");
|
std::ofstream logfile("topo_TIN.log");
|
||||||
|
3
tin.h
3
tin.h
@ -289,8 +289,7 @@ void dem2tin(const std::vector<double> &dem, double xmin, double xmax, double ym
|
|||||||
std::vector<edge> cnst_edge;
|
std::vector<edge> cnst_edge;
|
||||||
std::vector<edge>::iterator e_iter;
|
std::vector<edge>::iterator e_iter;
|
||||||
|
|
||||||
//while (dem_grid[0]->err >= maxi_err) // quit til the threshold is meet
|
while (dem_grid[0]->err >= maxi_err) // quit til the threshold is meet
|
||||||
for (int q = 0; q < 28; q++)
|
|
||||||
{
|
{
|
||||||
if (err_records != nullptr)
|
if (err_records != nullptr)
|
||||||
{
|
{
|
||||||
|
6252
topo_TIN.log
6252
topo_TIN.log
File diff suppressed because it is too large
Load Diff
25162
topo_TIN.msh
25162
topo_TIN.msh
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user