Blockmodel Setup
NEEDS UPDATE
Variant 1 (Using ParaView)
Prerequisites
- ParaView installed (https://www.paraview.org/download/)
- Blockmodel data in a compatible format (e.g., CSV, XYZ)
Converting to PLY with Coloring
- Open ParaView and load your blockmodel (csv/xyz) data.
- Choose the appropriate reader for your data format.
- In the Properties panel, set the correct delimiter and column mappings.
- Click "Apply" to load the data into ParaView.
- Select the data in the Pipeline Browser.
- In the Filters menu, choose "Table To Points" to convert the tabular data into 3D points.
- Set the X, Y, and Z columns to the respective coordinates in your data.
- Click "Apply" to visualize the points in 3D space.
- If the model is not showing, you may have to click in the viewport to activate it.
- In the Properties panel, adjust the color mapping based on the attribute you want to visualize (e.g., au, cu, mag).
- Under the "Coloring" section, click the Edit button to customize the color map.
- Set the lowest value to black and the highest value to white.
- You need to click in the viewport to see the changes.
Exporting
- Select Save Data from the File menu to export the blockmodel to PLY format.
- In the Configure PLY Writer dialog, enable "Enable Coloring".
- Click "OK" to save the file.
Shift Pivot Point
After you have exported the block model, you will need to shift the pivot point to the first point.
- Clone the PythonScripts repository if you havent already.
- cd into the PythonScripts folder, and create a virutal enviromnet
Virtual Environment Setup (Windows, Linux, macOS)
Create the virtual environment:
python -m venv venv
On some systems you might need to use python3 instead of python
Activate the Virtual Environment
Linux/macOS
source venv/bin/activate
Windows
venv\Scripts\activate
Install requirements
pip install -r requirements.txt
Using shift_pivot.py
Once the virtual environment is activated and the requirements are installed, you can run the pivot shift script.
python shift_pivot.py <input.ply> <output.ply> [min_value max_value] [EPSG:XXXX]