Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh n place #70

Merged
merged 19 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: C/C++ CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/latex.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: LaTeX CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@
*.toc

# Project files
temp/
build/
html/
latex/
output/

# Mesh files
*.off
temp/

# Python virtual environment
.venv/

# macOS
.DS_Store

16 changes: 8 additions & 8 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ If you don't want to install dependencies globally on your local machine you can
=== Set up an environment
We provide here two example of environment, Mamba and venv


==== Mamba environment:

```bash
Expand Down Expand Up @@ -44,14 +43,14 @@ source .venv/bin/activate
=== Install Required Packages

With the environment set up, install the required packages:

```bash

mamba install -c conda-forge cgal-cpp fmt spdlog mpfr boost-cpp curl -y
```

=== Alternatively you can use a Docker container:
```bash
docker build -t 2024m1vegetation:latest
docker build -t 2024m1vegetation:latest .
docker run -it 2024m1vegetation:latest
```

Expand All @@ -61,9 +60,8 @@ Note: on VsCode you can use the Remote - Containers extension to reopen the proj

Configure and build the project using CMake:
```bash
mkdir build
cd build
# Clean the build directory
rm -rf *

# Build the project
cmake ..
Expand All @@ -78,12 +76,14 @@ make test
=== Usage

```bash
./build/run
cd build
./run
```

The `config.json` file contains the gps coordinates of the 2 corners of the area to pull data from OpenSTreetMap.
The `config.json` file contains the GPS coordinates of the 2 corners of the area to pull data from OpenSTreetMap as well as the LOD setting (0, 1, 2 or 3) and the output name desired.

The output mesh will be saved in the `/temp` directory.
The output mesh will be saved in the `/output` directory (which is automatically
created if needed).

You can visualize the output mesh with **Meshlab** or any other mesh viewer. (Note: Meshlab does not work well with Wayland.)

Expand Down
Loading