Comments (2)
@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.
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)
- Recompile for Apple M1 Macs HOT 1
- smoothsurf works incorrectly HOT 1
- The work of the meshing algorithm is ustable for big meshes HOT 3
- Submodule tools/meshfix points to non existent commit
- Issue when Installing Iso2mesh in cluster (remote computation resources) HOT 1
- Warning about shadowed core library HOT 3
- Iso2mesh ERROR using cgalv2m HOT 5
- cgalv2m does not create flat boundaries HOT 3
- cgalsimp2 command failed HOT 3
- Compiling issue HOT 1
- problem in installing and running iso2mesh in MATLAB HOT 1
- jmeshlib command failed: ERROR- Can't open file. HOT 1
- saveinr() not working for single (float) volumes
- Using qmeshcut to compute an isosurface from an arbitrary grid of points HOT 10
- Binaries for M1/M2 Mac? HOT 3
- Fail to clone submodules. HOT 2
- Compile iso2mesh for ARM Mac HOT 12
- Iso2Mesh Coordinate system origin
- Error using surf2mesh - Error using fscanf Invalid file identifier. Use fopen to generate a valid file identifier.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iso2mesh.