(M, rhs, solver_type, tol)
| 74 | |
| 75 | @pymesh.timethis |
| 76 | def solve(M, rhs, solver_type, tol): |
| 77 | solver = pymesh.SparseSolver.create(solver_type); |
| 78 | if tol is not None: |
| 79 | solver.tolerance = tol; |
| 80 | solver.compute(M); |
| 81 | x = solver.solve(rhs); |
| 82 | return x; |
| 83 | |
| 84 | def tutte_3D(mesh, bd_vertex_indices, bd_vertex_positions): |
| 85 | assembler = pymesh.Assembler(mesh); |