Former-commit-id: 060b3b233bce356bf8a44af576990ffd53f9ed2a
@@ -70,7 +70,7 @@ native python functions as callbacks. This is a simple example that loads
two meshes and switches between the two when a key is pressed:
```python
-import igl
+import pyigl as igl
V1 = igl.eigen.MatrixXd()
F1 = igl.eigen.MatrixXi()
@@ -1,6 +1,6 @@
import numpy as np
import scipy.sparse as sparse
def p2e(m):
if isinstance(m, np.ndarray):
@@ -14,9 +14,9 @@ extern void python_export_igl_viewer(py::module &);
extern void python_export_igl_comiso(py::module &);
#endif
-PYTHON_PLUGIN(igl) {
+PYTHON_PLUGIN(pyigl) {
py::init_threading();
- py::module m("igl", "Python wrappers for libigl");
+ py::module m("pyigl", "Python wrappers for libigl");
python_export_vector(m);
python_export_igl(m);
import socket
import threading
import array
import time
@@ -3,7 +3,7 @@ from __future__ import print_function
import sys, os
sys.path.insert(0, os.getcwd() + "/../")
# Load a mesh in OFF format
V = igl.eigen.MatrixXd()
@@ -2,7 +2,7 @@
@@ -13,7 +13,7 @@ os.system("python ../tcpviewer.py&")
# Wait for it to set up the socket
time.sleep(1)
import tcpviewer
# Read a mesh
F = igl.eigen.MatrixXi()
# Load mesh
V = igl.eigen.MatrixXd();
F = igl.eigen.MatrixXi();
@@ -4,7 +4,7 @@ from __future__ import print_function
import math
global V
b = igl.eigen.MatrixXi()
B = igl.eigen.MatrixXd()
U = igl.eigen.MatrixXd()
global bc_frac, bc_dir,deformation_field, V, U, V_bc, U_bc, F, b
bc_frac = 1.0
global z_max, z_dir, k, resolve, V, U, Z, F, b, bc
from math import sin,cos,pi
sea_green = igl.eigen.MatrixXd([[70./255.,252./255.,167./255.]])
from math import atan2,pi,cos,sin
# Mesh
from math import pi
import random
from math import cos,sin,pi