Skip to content

smrfeld/MeshPyTetGenBlender

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Simple interface to MeshPy / TetGen in Blender

Warning this project is likely abandoned. The original purpose required the output of Voronoi meshes from TetGen - since MeshPy does not support the -v flag to do this, the goal is no longer possible.

Check out the related visualization add-on for TetGen in Blender: TetGen Viz Blender. This uses the raw output files directly from TetGen.

Installation

Tested with Blender 2.79.

We need the MeshPy python module. The best method is: (1) identify the Python version Blender is using, (2) install MeshPy for that version in a separate virtual environment Python (see here), (3) copy over the module.

  1. Identify Python version: Navigate to the directory - on a Mac it is probably /Applications/Blender/blender.app/Contents/Resources/2.79/python/bin/. Check the exact version with ./python3.5m --version - here it is 3.5.3.

  2. Install MeshPy for that version (see here). Using conda (from any directory):

  • Create the virtual environment: conda create --name conda-python-blender python=3.5.3.
  • Activate: source activate conda-python-blender.
  • Install MeshPy: pip install MeshPy. Probably you will also be prompted to install pip install pybind11.
  • Find the directory for the module: echo "import sys; print(sys.path)" | python. It should be something like: ~/anaconda3/envs/conda-python-blender/lib/python3.5.3/site-packages.
  • Copy over the module: cp -r ~/anaconda3/envs/conda-python-blender/lib/python3.5.3/site-packages/MeshPy* /Applications/Blender/blender.app/Contents/Resources/2.79/python/lib/python3.5/site-packages/.

About

Simple interface to MeshPy/TetGen in Blender

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages