You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The module MeshSlicer does not work with meshes creating using DelaunayMesh
To Reproduce
A minimal code that reproduces the error:
import delaunay
import meshtools
import plot
import meshslice
var pts = [ Matrix([0,0,0]),
Matrix([1,0,0]),
Matrix([0,1,0]),
Matrix([0,0,1]) ]
var m = DelaunayMesh(pts)
for (g in 0..m.maxgrade()) print m.count(g)
var slice = MeshSlicer(m)
var sc = slice.slice(Matrix([0.5,0,0]), Matrix([1,0,0]))
Show(plotmesh(sc, grade=0))
Expected behavior
The last line should return a plot of the slice, but instead it returns the follwowing error: Error 'NotAnInst': Can only invoke methods on objects.
The text was updated successfully, but these errors were encountered:
Thanks so much @emmanuellfc for raising this issue. PR #287 has now fixed the issue and a test is in place. The fix will be forthcoming in v0.6.2—MeshSlicer accepted a rather limited variety of types; and now it accepts Matrices as well. Thankyou again for your contribution!
Describe the bug
The module MeshSlicer does not work with meshes creating using DelaunayMesh
To Reproduce
A minimal code that reproduces the error:
Expected behavior
The last line should return a plot of the slice, but instead it returns the follwowing error:
Error 'NotAnInst': Can only invoke methods on objects.
The text was updated successfully, but these errors were encountered: