mirror of
https://gitlab.com/Trygve/contour-creator.git
synced 2025-07-12 02:54:39 +00:00
36 lines
838 B
Markdown
36 lines
838 B
Markdown
---
|
|
title:
|
|
- "INF205: creating contours using the marching squares algorithm"
|
|
author:
|
|
- Trygve og Esther
|
|
|
|
---
|
|
|
|
# Output of our program:
|
|

|
|
|
|
# Marching squares
|
|

|
|
|
|
# The logical flow of our program
|
|
```cpp
|
|
int main(int argc, const char* argv[])
|
|
{
|
|
const char* filepath = argv[1];
|
|
HeightMap map(filepath);
|
|
map.blur(0.8)
|
|
auto lines = create_lines(&map, 5);
|
|
write_output_file(cellmaps, "out.geojson", &map);
|
|
}
|
|
```
|
|
|
|
# Performance
|
|
| | Time |
|
|
|--------------------|--------------------|
|
|
| 12 threads | 41s |
|
|
| 1 thread | 116s |
|
|
|
|
|
|
# Problems we encountered
|
|
|