RoofIt: 2D Parametric Sketch Extraction from Rough Models for High-quality Roof Reconstruction
Access rate limit exceeded. Please log in to continue.
Environment
- python 3.10
- cuda 11.8
- torch 2.3.0
Installation
conda create -n roofrec python=3.10
conda activate roofrec
pip install open3d
pip install numpy
pip install scikit-learn
pip install scipy
pip install alphashape
pip install trimesh
pip install natsort
pip install tqdm
pip install pyqt5
conda install -c conda-forge pythonocc-core=7.8.1
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118
# compod
cd compod
sudo apt-get update && sudo apt-get install libgomp1 ffmpeg libsm6 libxext6 -y
bash install.sh
cd ..
For detailed environment configuration regarding dual-DMP, please refer to:
dualdmpfork/README.md at main · sumukund/dualdmpfork · GitHub
For detailed environment configuration regarding Compod, please refer to:
compod/README.md at main · raphaelsulzer/compod · GitHub
Usage
1.Preprocess
Place the rough roof model in the data folder, then run:
python data2DMPdata.py
cd Dual-DMP
python3 preprocess/preprocess.py
python3 main4real.py
cd ..
python dmp_out2input_data.py
python cut_bott.py
python subdivide_mesh.py
The preprocessed roof model is saved in the cut_meshs_v2_subdvd folder, with the results already pre-populated.
2.Roof Reconstruction
python z_axis_cut.py
The sketch data is stored in the contour_data folder. Next, proceed with sketch fusion by running:
python merge_contour.py
cd compod
python example/roof.py
The Compod reconstruction results are stored in the compod/example/roof_vg-out folder. Next, to complete the reconstructed model, run:
cd ..
python add_z_planes.py
cd compod
python example/roof.py
The final reconstruction results are stored in the compod/example/roof_vg-out folder.
Introduction
RoofIt: 2D Parametric Sketch Extraction from Rough Models for High-quality Roof Reconstruction
Customize your domain