create tetrahedral from a set of points using vtkDelaunay3D

Idayat Salako <[email protected]> Thu, 9 May 2019 20:35:04 +0100
Newsgroups gmane.comp.lib.vtk.user
Message-ID <CAKzhZ9hpC8b42FrKDxykr11S+KdC5=x9Bqu6TOavGkt7p0ZB4g@mail.gmail.com>
--===============1532880168==
Content-Type: multipart/alternative; boundary="000000000000c176ac0588798c9b"

--000000000000c176ac0588798c9b
Content-Type: text/plain; charset="UTF-8"

Hi,
How do I create tetrahedral from a set of points using vtkDelaunay3D? This
is what I have come up with so far.

vtkDelaunay3D* getDelaunayTets; // create instance of vtkDelaunay3D
vtkPoints* points;
    points=vtkPoints::New(); // initialise points (online example - not
clear from doc)
    points->InsertNextPoint(0,0,1); // insert points (online example - not
sure if points r added)
    points->InsertNextPoint(0,0,0);
    points->InsertNextPoint(0,1,0);
    points->InsertNextPoint(1,0,0);
    points->InsertNextPoint(0.5,0.5,0.5);

vtkUnstructuredGrid* Mesh;  vtkIdType id; double x[3]; vtkIdList*
holeTetras;
getDelaunayTets->InsertPoint(Mesh, points, id, x, holeTetras);

I get an initialisation error for holeTetras and I am not sure how to
initialise holeTetras.

Thank you
Idayat Salako

***Whoever wakes up in the morning and is safe in his home, in good health
and has enough provision for the day, it is as if he has all the good
things of this world [HadithTirmidhi 2346]***

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

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr">Hi,=C2=A0<div>How do I create tetrahedral from a set of points us=
ing vtkDelaunay3D? This is what I have come up with so far.=C2=A0</div><div=
><br></div><div>vtkDelaunay3D* getDelaunayTets; // create instance of vtkDe=
launay3D</div><div>vtkPoints* points;=C2=A0=C2=A0</div><div>=C2=A0 =C2=A0 p=
oints=3DvtkPoints::New(); // initialise points (online example - not clear =
from doc)</div><div>=C2=A0 =C2=A0 points-&gt;InsertNextPoint(0,0,1); // ins=
ert points (online example - not sure if points r added)</div><div>=C2=A0 =
=C2=A0 points-&gt;InsertNextPoint(0,0,0);</div><div>=C2=A0 =C2=A0 points-&g=
t;InsertNextPoint(0,1,0);</div><div>=C2=A0 =C2=A0 points-&gt;InsertNextPoin=
t(1,0,0);</div><div>=C2=A0 =C2=A0 points-&gt;InsertNextPoint(0.5,0.5,0.5);<=
/div><div><br class=3D"gmail-Apple-interchange-newline">vtkUnstructuredGrid=
* Mesh;=C2=A0=C2=A0vtkIdType id; double x[3]; vtkIdList* holeTetras;=C2=A0<=
br></div><div>getDelaunayTets-&gt;InsertPoint(Mesh, points, id, x, holeTetr=
as);</div><div><br></div><div>I get an initialisation error for holeTetras =
and I am not sure how to initialise holeTetras.</div><div><br clear=3D"all"=
><div><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div=
 dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div>Thank you</div>Idayat S=
alako</div><div dir=3D"ltr"><br></div><div dir=3D"ltr" style=3D"text-align:=
center"><span style=3D"font-size:small"><font face=3D"arial, helvetica, san=
s-serif" color=3D"#000000">***Whoever wakes up in the morning and is safe i=
n his home, in good health and has enough provision for the day, it is as i=
f he has all the good things of this world [HadithTirmidhi 2346]***</font><=
/span><br></div><div dir=3D"ltr" style=3D"text-align:center"><br></div></di=
v></div></div></div></div></div></div></div></div></div></div></div>

--000000000000c176ac0588798c9b--

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

_______________________________________________
Powered by www.kitware.com

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

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers

--===============1532880168==--