Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] MeshSlicer module not working with DelaunayMesh #283

Open
emmanuellfc opened this issue Dec 14, 2024 · 1 comment
Open

[Bug] MeshSlicer module not working with DelaunayMesh #283

emmanuellfc opened this issue Dec 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@emmanuellfc
Copy link
Collaborator

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.

@emmanuellfc emmanuellfc added the bug Something isn't working label Dec 14, 2024
@softmattertheory
Copy link
Contributor

Thanks so much for reporting this @emmanuellfc! I'll get to work on trying to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants