<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Ben,</p>
<p>The files you created (at least the .stl) are surfaces. To use
these in SimNIBS simulations you need volume meshes, i.e.,
tetrahedral meshes. I'm not familiar with .obj files, but you'd
need to create volume meshes from the surfaces to import them into
SimNIBS. To get started you can look at the .geo file that
headreco generates. The name should be something like
<subid>.geo. You can use that how to set up the .stl files
to create a volume using gmsh. However, the surfaces need to be
nested for that to work.<br>
</p>
<p>Best,<br>
Oula<br>
</p>
<div class="moz-cite-prefix">On 6/20/22 19:05, Benjamin Tessler
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BN7PR12MB2595D9137CC4EC59AC5F34D289B09@BN7PR12MB2595.namprd12.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">Hi Axel,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you for the response. I’m trying to
learn how to import various volumes that I made in Autodesk,
which exports STL and OBJ file formats. I can’t see any
documentation on how to either import that into SimNIBS or
convert it to nifti. It doesn’t import when I tried to convert
it to a msh file from the gmsh software. Maybe is there a
matlab script that can easily write nifti from an STL fomat?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,</p>
<p class="MsoNormal">Ben</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">
Mail</a> for Windows</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From:
</b><a href="mailto:axelt@drcmr.dk" moz-do-not-send="true">Axel
Thielscher</a><br>
<b>Sent: </b>Monday, June 13, 2022 5:57 AM<br>
<b>To: </b><a href="mailto:benjamin.tessler@downstate.edu"
moz-do-not-send="true">Benjamin Tessler</a>; <a
href="mailto:discuss@simnibs.org" moz-do-not-send="true"
class="moz-txt-link-freetext">
discuss@simnibs.org</a><br>
<b>Subject: </b>[EXTERNAL] Re: [Simnibs-discuss] SimNibs
simple volumes</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="text-align:center" align="center"><span
style="font-size:22.5pt;color:red;background:yellow">External
email</span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><i><span
style="font-size:10.0pt;color:red">Do not click links,
open attachments or provide your User ID or Password if
the sender is unknown.</span></i><o:p></o:p></p>
<div>
<p>Hi Benjamin,</p>
<p>please try out simnibs 4 which is available as beta
release.</p>
<p><a
href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsimnibs%2Fsimnibs%2Freleases%2Ftag%2Fv4.0-beta1&data=05%7C01%7Cbenjamin.tessler%40downstate.edu%7Cef823821e0f14609415108da4d232160%7C22670793760f482993153e427c362e69%7C0%7C0%7C637907110528316982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hr9UiRptmBkHE1T5eddNWA%2BhEAmaGte08wgOEgf3rwo%3D&reserved=0"
moz-do-not-send="true">https://github.com/simnibs/simnibs/releases/tag/v4.0-beta1</a></p>
<p>It has new options to use custom-made meshes. </p>
<p>After installation, click on index.html in the
docs-folder to see the documentation for simnibs 4. Then
follow the tutorial "How to create and use a custom mesh".</p>
<p>Best,</p>
<p>Axel</p>
<p><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 08-06-2022 20:16, Benjamin Tessler
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’m trying to just stimulate a block.
What CAD do you recommend to use? I’m using Autodesk
fusion 360 to make STL files. Then I use gmesh to make a
msh file, but it won’t import into simnibs. Is there a
simple way to make simple volumes?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Ben<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">
Mail</a> for Windows<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><img
style="width:3.9166in;height:.0069in"
id="Horizontal_x0020_Line_x0020_1"
src="cid:part1.0qJa6wYL.hUy0ZV0O@drcmr.dk" class=""
width="376" height="1" border="0"><o:p></o:p></p>
<p class="MsoNormal"><br>
The contents of this email message and any attachments
are confidential and are intended solely for the
addressee. The information may also be legally
privileged. This transmission is sent in trust, for the
sole purpose of delivery to the intended recipient. If
you have received this transmission in error, any use,
reproduction or dissemination of this transmission is
strictly prohibited. If you are not the intended
recipient, please immediately notify sender by reply
email or by (718) 270-HELP.
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________</pre>
<pre>Simnibs-discuss mailing list</pre>
<pre><a href="mailto:Simnibs-discuss@drcmr.dk" moz-do-not-send="true" class="moz-txt-link-freetext">Simnibs-discuss@drcmr.dk</a></pre>
<pre><a href="https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.drcmr.dk%2Fmailman%2Flistinfo%2Fsimnibs-discuss&data=05%7C01%7Cbenjamin.tessler%40downstate.edu%7Cef823821e0f14609415108da4d232160%7C22670793760f482993153e427c362e69%7C0%7C0%7C637907110528316982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BVWdx9w57GatHoHD9DaE7M%2Bqg7OySvjxdevBj5Bq1v4%3D&reserved=0" moz-do-not-send="true">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a></pre>
</blockquote>
<pre>-- </pre>
<pre>Dr. Axel Thielscher</pre>
<pre>Professor of Neurophysics and Neuroimaging</pre>
<pre>Danish Research Center for Magnetic Resonance</pre>
<pre>Copenhagen University Hospital Hvidovre</pre>
<pre>DK-2650 Hvidovre, Denmark</pre>
<pre><a href="https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.drcmr.dk%2F&data=05%7C01%7Cbenjamin.tessler%40downstate.edu%7Cef823821e0f14609415108da4d232160%7C22670793760f482993153e427c362e69%7C0%7C0%7C637907110528316982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=CMgqm781L7MjYE0OVQjUXPPIukt%2FQnh1mITlAkePjv0%3D&reserved=0" moz-do-not-send="true">www.drcmr.dk</a></pre>
<pre>&</pre>
<pre>Department of Health Technology</pre>
<pre>Technical University of Denmark</pre>
<pre>DK-2800 Kgs. Lyngby</pre>
</div>
</div>
<pre><a href="https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.healthtech.dtu.dk%2F&data=05%7C01%7Cbenjamin.tessler%40downstate.edu%7Cef823821e0f14609415108da4d232160%7C22670793760f482993153e427c362e69%7C0%7C0%7C637907110528316982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=j5uZMhvVNFWJz59AQPpLj3TP8UtNlBtA4DviEFAzTJo%3D&reserved=0" moz-do-not-send="true">http://www.healthtech.dtu.dk/</a></pre>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
</div>
<br>
<hr>
<br>
The contents of this email message and any attachments are
confidential and are intended solely for the addressee. The
information may also be legally privileged. This transmission is
sent in trust, for the sole purpose of delivery to the intended
recipient. If you have received this transmission in error, any
use, reproduction or dissemination of this transmission is
strictly prohibited. If you are not the intended recipient, please
immediately notify sender by reply email or by (718) 270-HELP.
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Simnibs-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simnibs-discuss@drcmr.dk">Simnibs-discuss@drcmr.dk</a>
<a class="moz-txt-link-freetext" href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a>
</pre>
</blockquote>
</body>
</html>