|
|
# Install PyMCubes
|
|
|
|
|
|
This is more complex. First, you have to install [Cython][7]:
|
|
|
|
|
|
$ /path/to/blender/2.xx/python/bin/python3 -m pip install Cython
|
|
|
|
|
|
Then you have to set up a build environment for Cython. You will need 1) to
|
|
|
install development files for Python (such as `Python.h` and others), and 2) to
|
|
|
explain Blender's python where to find them. **Note**: you have to have headers
|
|
|
for exactly the same version of Python that your Blender build is using.
|
|
|
|
|
|
On Debian/Ubuntu, you can install Python's development files by `apt-get
|
|
|
install libpython3.7-dev` for `python3.7m` used in Blender 2.80/2.81. On other
|
|
|
Linux distros, the command will be similar. On Windows or MacOS this can be
|
|
|
more tricky, I did not try.
|
|
|
|
|
|
You have to somehow tell Blender's built-in python where to look for headers.
|
|
|
I've found the simplest way is to do
|
|
|
|
|
|
$ ln -s /usr/include/python3.7m/* /path/to/blender/2.xx/python/include/python3.7m/
|
|
|
|
|
|
There may be more correct way, but I do not know it.
|
|
|
|
|
|
After that, you can install PyMCubes by
|
|
|
|
|
|
$ /path/to/blender/2.xx/python/bin/python3.7m -m pip install -U PyMCubes
|
|
|
|
|
|
The following node can optionally use PyMCubes:
|
|
|
|
|
|
* Marching Cubes
|
|
|
|
|
|
|
|
|
|
|
|
[7]: https://cython.org/ |
|
|
\ Нет новой строки в конце файла |