[ITK-users] Problem calculating surface ITK mesh

Elisabeth Pfaehler <[email protected]> Sat, 05 May 2018 06:09:11 +0000
Newsgroups gmane.comp.lib.itk.user
Message-ID <CAH3FpKa3sjZP-YJk_yhZ_-mavDtYArmy0MAuuG8QLMF2qR_JVA@mail.gmail.com>
--===============1265964998==
Content-Type: multipart/alternative; boundary="00000000000017d366056b6f4794"

--00000000000017d366056b6f4794
Content-Type: text/plain; charset="UTF-8"

 Dear all,

I am facing a problem calculating the surface of an ITK mesh.
Originally I have an image mask and converted this mask to a triangle mesh.
In order to calculate the surface, I wanted to convert this mesh to a
simplex mesh using:

    typedef itk::SimplexMesh< float, 3 > TSimplex;
    typedef itk::TriangleMeshToSimplexMeshFilter< MeshType, TSimplex >
TConvert;

    // Convert the triangle mesh to a simplex mesh.
    TConvert::Pointer convert = TConvert::New();
    convert->SetInput(meshSource->GetOutput());
    convert->Update();

As I found it in one example. But in this case my software starts
calculating and never stops.

So, now I tried to calculate the surface of every cell and add these
surfaces. But is there maybe another, nicer way?

Thanks a lot in advance

Elli

--00000000000017d366056b6f4794
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">
Dear all,<br>
<br>
I am facing a problem calculating the surface of an ITK mesh.<br>
Originally I have an image mask and converted this mask to a triangle=20
mesh. In order to calculate the surface, I wanted to convert this mesh=20
to a simplex mesh using:<br>
<br>
=C2=A0=C2=A0=C2=A0 typedef itk::SimplexMesh&lt; float, 3 &gt; TSimplex;<br>
=C2=A0=C2=A0=C2=A0 typedef itk::TriangleMeshToSimplexMeshFilter&lt; MeshTyp=
e, TSimplex &gt; TConvert;<br>
<br>
=C2=A0=C2=A0=C2=A0 // Convert the triangle mesh to a simplex mesh.<br>
=C2=A0=C2=A0=C2=A0 TConvert::Pointer convert =3D TConvert::New();<br>
=C2=A0=C2=A0=C2=A0 convert-&gt;SetInput(meshSource-&gt;GetOutput());<br>
=C2=A0=C2=A0=C2=A0 convert-&gt;Update();<br>
<br>
As I found it in one example. But in this case my software starts calculati=
ng and never stops.
<br>
<br>
So, now I tried to calculate the surface of every cell and add these surfac=
es. But is there maybe another, nicer way?<br>
<br>
Thanks a lot in advance<br>
<br>
Elli

<div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signatur=
e"><br></div></div>

--00000000000017d366056b6f4794--

--===============1265964998==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users

--===============1265964998==--