34_mountain2modell
Create a 3D inverse mold.
Requirements
Repository lokal klonen
- Navigate to workspace
- clone repository
git clone https://github.com/loopercamera/34_mountain2modell.git
Python-Requirements
Following python requirements are needed.
- Python 3.8.19
- requests
- tqdm
Die Module können über das requirements.txt im gewünschten Prompt
- Create a python environment:
conda create -n my_env python=3.8.19 -c conda-forge --file path/to/requirements.txt
- Select area of interest:
-
Copy the links to the file download_list_swissALTI3D.csv:
-
Start download process
python alti_3d_downloader.py
QGIS plugin installation
- Open QGIS-project
mountain2modell_QGIS_Projek.qgzt
- Open plugin –> Manage and Install Plugins..
- Under ALL search:
- Install Plugin
- Close the window plugin
QGIS merge TIF into one File
- Open Raster –> miscellaneous –> Merge –> three points (left side)
Add Directory –> navigate to the folder TIF_download
- All TIF files should be checked now
- Run
- The downloaded TIF File are now merged into one File. The file is not saved, it is only temporary
- Close
Clip to the preferred cutout
- Layer –> Create Layer –> New temporary scratch layer
- Name it
- Set the geometry Type to
Polygon
- OK
- Add polygon
- Select a shape, linke square, circle oder polygon
- Draw the the are an the map an finish with right click
- End editing
- Raster –> Extraction –> Clip Raster by Mask Layer
- Set the input layer to the bevor merged raster layer
- Set the mask layer to the layer with your preferred cutout
- Run
- Close
Save clipped layer
- Right click on the clipped layer –> Export –> Save As…
- File name –> three points (left side)
- Navigate into folder
TIF_merge
- Name the file
- Save
- OK
- Select the files create bevor and remove them
- Select the saved file –> right click –> Properties –> Transparency
- Under No Data Value –> Additional no data value
- Set the Value to
0
- OK
Create a STL file
- Open the plugin
DEM 3D printing
- Select the TIF layer
- Click the button
Select full extent (it may take a while)
- Set spacing spacing
- Set the size
- Set the Height lower than to lowest point to create a base
- Export STL
- Navigate into folder
STL
- Save (it may take a while)
Create a negativ in Blender
Don’t work with circles. With big models, Blender needs some time to process. So patience is needed.
- Open the blender project
mountain2modell_blender_Projekt.blend
- File –> Import –> STL
- Add Cube (Shift + a)
- Set the scale in the X and Y-axis,
- Select the terrain and set the origin to geometry (right click –> Set Origin –> Geometry to origin)
- Grab the terrain and move it up in the Z-Axis at the same hight as the cube. (Prss g after that z to move the object along the axis)
- Select the Cube move it in the Z-Axis, so that the terrain is locking throw the cube.
- Chance to modeling
- Select the upper face and extrude it over the tip of the terrain. (press e)
- Change back to layout
- Add modifier
boolean, difference and select the terrain
- Apply to all
- Select the terrain and delete it
- Select the cube and rote it in the Y-Axis 180 degree (press g , z and enter 180)
- Grab the cube and move it up the Z-Axis (press g, z)
- Export the cube as STL file ( File –> Export –> STL)