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

Unable to access surface mesh from swc file. #3010

Open
AlexMcSD opened this issue Jul 25, 2024 · 0 comments
Open

Unable to access surface mesh from swc file. #3010

AlexMcSD opened this issue Jul 25, 2024 · 0 comments
Labels
bug CI Continuous Integration

Comments

@AlexMcSD
Copy link

I would like to produce a surface mesh from an swc file, stored as a list of triangles and vertices, however I cannot find an example of how to do this, even though it seems this should be possible.

My best guess on how to do this is:

from neuron import h, rxd

h.load_file("import3d.hoc")

class Cell:
    def __init__(self, filename):
        cell = h.Import3d_SWC_read()
        cell.input(filename)
        i3d = h.Import3d_GUI(cell, False)
        i3d.instantiate(self)

filename = swc_file
dx = 0.05
cell = Cell(filename)
rxd.set_solve_type(cell.all, dimension=3)
mesh =rxd.geometry3d.surface(h.allsec(),dx)

But this leads to the following error in line 61 of neuron/rxd/geometry3d/surface.py

AttributeError: 'list' object has no attribute 'xlo'
If anyone can let me know on how to do this or even if this is possible, please let me know.

@AlexMcSD AlexMcSD added bug CI Continuous Integration labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CI Continuous Integration
Projects
None yet
Development

No branches or pull requests

1 participant