<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Samuel, you should get a copy of the vtk users guide, accessing the
underlying cells, points, scalars and vectors of a given dataset is
standard operation in vtk. It is not as simple as a cast but once you
are
familiar with vtk data sets it will be trivial. Start by looking at the
methods of vtkPolyData, ie the output of vtkDelaunay2D, look at the
methods like GetCells, GetCellTypes etc... Then review the vtkCellArray
and vtkCell data types. That should get you well on your way...<br>
<br>
Burlen<br>
<br>
Samuel Marcos wrote:
<blockquote
cite="mid4a0891c90705092349x4bcd7753o6a7b75315e02d6fc@mail.gmail.com"
type="cite">Hi again. Still not able to cas the vtk array of triangles
to a c++ regular int array. Also I would like to ask if anyone knows
how to use the transform filter to change the projection plane in
delaunay2D. What I would like to do is make two delaunay2D
triangulations with different projection planes over a single set of 3D
points. Many thanks
<br>
<br>
<div><span class="gmail_quote">On 5/7/07, <b class="gmail_sendername">Godofredo</b>
<<a href="mailto:godofredoiii@gmail.com">godofredoiii@gmail.com</a>>
wrote:</span>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
1st of all, many thanks. I'm using C++ so the example cells.tcl gives
me an<br>
idea but doesn't help me as much as I need. Let me explain a little
further.<br>
What I want to do is to make two delaunay 2D triangulations in two
different
<br>
porjection planes to a set of 3D points which are collected from a 3d<br>
scanner. The triangulation is part of a bigger application which at the
end<br>
is going save data as a vrml file but not just after the triangulation.
<br>
Thats why I would like to obtain data from the vtk part of code as
arrays of<br>
points and triangles if it was possible.<br>
<br>
<br>
Luca Pallozzi Lavorante wrote:<br>
><br>
> Godofredo,<br>
> the vtkVRMLExporter class will generate a VRML file for you. Its
input is
<br>
> a<br>
> vtkRenderWindow instance, as it exports the entire scene.<br>
> Have a look at the example Rendering/Testing/Tcl/cells.tcl, as
well as the<br>
> vtkVRMLExporter online documentation.<br>
><br>
> Luca
<br>
><br>
><br>
> On 5/4/07, Godofredo <<a href="mailto:godofredoiii@gmail.com">godofredoiii@gmail.com</a>>
wrote:<br>
>><br>
>><br>
>> Hi. I'm making a Delaunay2D triangulation over a set of 3D
point cloud.
<br>
>> I've<br>
>> followed some examples and managed to do it. What I would like
to do now<br>
>> is<br>
>> to obtain the triangles and vertex of the triangulation as
arrays. I'm<br>
>> new
<br>
>> with vtks so there's a lot of knowledge I'm missing. Is there
a way to<br>
>> obtain triangles and vertex as a vrml fashion for example? I
mean, points<br>
>> coordinates and triangle vertex index to that points? Hope
I've explained
<br>
>> myself. Thanks in advance.<br>
>> --<br>
>> View this message in context:<br>
>> <a
href="http://www.nabble.com/Retrieve-poligonal-data-after-delaunay-triangulation-tf3691278.html#a10320141">http://www.nabble.com/Retrieve-poligonal-data-after-delaunay-triangulation-tf3691278.html#a10320141
</a><br>
>> Sent from the VTK - Users mailing list archive at <a
href="http://Nabble.com">Nabble.com</a>.<br>
>><br>
>> _______________________________________________<br>
>> This is the private VTK discussion list.
<br>
>> Please keep messages on-topic. Check the FAQ at:<br>
>> <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>><br>
><br>
> _______________________________________________<br>
> This is the private VTK discussion list.<br>
> Please keep messages on-topic. Check the FAQ at:
<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br>
><br>
><br>
<br>
--<br>
View this message in context: <a
href="http://www.nabble.com/Retrieve-poligonal-data-after-delaunay-triangulation-tf3691278.html#a10353077">http://www.nabble.com/Retrieve-poligonal-data-after-delaunay-triangulation-tf3691278.html#a10353077
</a><br>
Sent from the VTK - Users mailing list archive at <a
href="http://Nabble.com">Nabble.com</a>.<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.01010102.02030703@apollo.sr.unh.edu" border="0"></div>
</body>
</html>