Table of Contents

Blockmodel Setup


NEEDS UPDATE

Variant 1 (Using ParaView)

Prerequisites

Converting to PLY with Coloring

  1. Open ParaView and load your blockmodel (csv/xyz) data.
  2. Choose the appropriate reader for your data format.
  3. In the Properties panel, set the correct delimiter and column mappings.
  4. Click "Apply" to load the data into ParaView.
  5. Select the data in the Pipeline Browser.
  6. In the Filters menu, choose "Table To Points" to convert the tabular data into 3D points.
  7. Set the X, Y, and Z columns to the respective coordinates in your data.
  8. Click "Apply" to visualize the points in 3D space.
  9. If the model is not showing, you may have to click in the viewport to activate it.
  10. In the Properties panel, adjust the color mapping based on the attribute you want to visualize (e.g., au, cu, mag).
  11. Under the "Coloring" section, click the Edit button to customize the color map.
  12. Set the lowest value to black and the highest value to white.
  13. You need to click in the viewport to see the changes.

Exporting

  1. Select Save Data from the File menu to export the blockmodel to PLY format.
  2. In the Configure PLY Writer dialog, enable "Enable Coloring".
  3. 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.

  1. Clone the PythonScripts repository if you havent already.
  2. 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]