Restructuring Python bindings, moved submodules and dependencies to own folders, added dependency checking for some tutorials, minor refactorings
Former-commit-id: 2214125878
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
# Add the igl library to the modules search path
|
||||
import sys, os
|
||||
sys.path.insert(0, os.getcwd() + "/../")
|
||||
|
||||
# Add the igl library to the modules search path
|
||||
sys.path.insert(0, os.getcwd() + "/../")
|
||||
import pyigl as igl
|
||||
|
||||
from shared import check_dependencies
|
||||
|
||||
dependencies = ["triangle", "viewer"]
|
||||
check_dependencies(dependencies)
|
||||
|
||||
# Input polygon
|
||||
V = igl.eigen.MatrixXd([[-1, -1], [1, -1], [1, 1], [-1, 1], [-2, -2], [2, -2], [2, 2], [-2, 2]])
|
||||
E = igl.eigen.MatrixXi([[0, 1], [1, 2], [2, 3], [3, 0], [4, 5], [5, 6], [6,7], [7,4]])
|
||||
@@ -13,7 +18,7 @@ H = igl.eigen.MatrixXd([[0, 0]])
|
||||
V2 = igl.eigen.MatrixXd()
|
||||
F2 = igl.eigen.MatrixXi()
|
||||
|
||||
igl.triangle_triangulate(V, E, H, "a0.005q", V2, F2)
|
||||
igl.triangle.triangulate(V, E, H, "a0.005q", V2, F2)
|
||||
|
||||
# Plot the mesh
|
||||
viewer = igl.viewer.Viewer()
|
||||
|
||||
Reference in New Issue
Block a user