Giter Club home page Giter Club logo

Comments (2)

fangq avatar fangq commented on August 21, 2024 1

@tmedani, do you have to insert all interior nodes in the electrode tet mesh to the output mesh?

if not, you can use mergemesh (as long as the electrode does not intersect with the brain surface) or mergesurf to combine the electrode surface mesh (multi-compartment) with brain surface mesh. Then you can call surf2mesh with seed points to create a combined tetrahedral mesh.

alternatively, instead of using your tetrahedral electrode mesh, iso2mesh has a function called meshcylinders - a function I wrote specifically for Lead-DBS where iso2mesh was used to create electrode/brain meshes.

if you have to insert the electrode interior nodes from your existing mesh to the output, you could use meshrefine - you can refine a tet mesh created by brain surface only by inserting new nodes and surface triangles taken from the electrode mesh. the nodes/elements inside the electrode will be more than your original electrode mesh, but all nodes/triangles of the electrode should preserve in the output.

Lead-DBS supports many electrode shapes, you can find example meshing codes by searching s2m and surfboolean in the project, for example

https://github.com/netstim/leaddbs/blob/d2e0029317a9c0d88f5f821320470519ab486a31/templates/electrode_models/ea_genvol_sde_08.m
https://github.com/netstim/leaddbs/blob/d2e0029317a9c0d88f5f821320470519ab486a31/vatmodel/ea_mesh_electrode.m

from iso2mesh.

tmedani avatar tmedani commented on August 21, 2024

Hi @fangq

That's helpful, meshcylinders is great, thanks

I went through the leadDBS code and data and found interesting models and scripts.

Thanks for your precious help.

Best

from iso2mesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.