<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thanks Bill for the tip anyway.<br>
The upgrade of my code from 5.10.0 to 6 was on my todo list
anyway.<br>
Pof<br>
<br>
Le 30/11/2013 17:51, Bill Lorensen a écrit :<br>
</div>
<blockquote
cite="mid:CADZJ4hP=U55yd--pjDyYMgo75pdWdPGrQYh2EpqNFhE+0ctKwg@mail.gmail.com"
type="cite">
<div dir="ltr">No, looks like that was in vtk6.<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Nov 30, 2013 at 11:11 AM, pof <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:jd379252@gmail.com" target="_blank">jd379252@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Bill,<br>
Thanks, this looks pretty much like what I was looking
for.<br>
My mistake... I should have mentioned that I am using
vtk5.10.0, in which apparently this method does not
exist.<br>
Is there any equivalent method in vtk5.10.0 ?<br>
Thanks<br>
Pof<br>
<br>
Le 30/11/2013 14:15, Bill Lorensen a écrit :<br>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">You can set the precision of the
output points:
<div><br>
</div>
<div>deci->SetOutputPointsPrecision(vtkAlgorithm::DOUBLE_PRECISION);</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote"> On Sat, Nov 30, 2013 at
5:11 AM, pof <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:jd379252@gmail.com"
target="_blank">jd379252@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> No
answer yet on this question.<br>
<br>
Just to mention this is a problem for me as
I'm working on meshes expressed in
geographical coordinates, i.e. sometimes
having large values (typically over 1e7)
which are unaccurately represented by float
variables.<br>
<div><br>
Any idea / comment ?<br>
<br>
<br>
-------- Message original --------
<table cellpadding="0" cellspacing="0"
border="0">
<tbody>
<tr>
<th valign="BASELINE" align="RIGHT"
nowrap="nowrap">Sujet: </th>
<td>vtkDecimatePro not fully working
with vtkDouble polydata</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT"
nowrap="nowrap">Date : </th>
<td>Wed, 27 Nov 2013 18:58:52 +0100</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT"
nowrap="nowrap">De : </th>
<td>pof <a moz-do-not-send="true"
href="mailto:jd379252@gmail.com"
target="_blank"><jd379252@gmail.com></a></td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT"
nowrap="nowrap">Pour : </th>
<td><a moz-do-not-send="true"
href="mailto:vtkusers@vtk.org"
target="_blank">vtkusers@vtk.org</a></td>
</tr>
</tbody>
</table>
<div>
<div> <br>
<br>
<pre>Hi vtk'ers,
I have a mesh with points defined as vtkDouble:
vtkPoints *MeshPoints = vtkPoints::New(VTK_DOUBLE);
and with a regular vtkCellArray:
vtkCellArray *MeshCells = vtkCellArray::New();
The mesh is build as usual with:
vtkPolyData *MeshPolyData;
MeshPolyData->SetPoints(MeshPoints);
MeshPolyData->SetPolys(MeshCells);
Now I need to perform a mesh decimation of this mesh, and I'm doing
nothing special:
vtkDecimatePro *deci = vtkDecimatePro::New();
deci->SetInput(MeshPolyData);
deci->SetTargetReduction(DecimationFactor);
deci->PreserveTopologyOn();
deci->BoundaryVertexDeletionOn();
deci->SetMaximumError(VTK_DOUBLE_MAX);
deci->Update();
The problem I am facing is that the resulting decimated mesh is actually
based on vtkFloat:
int type = deci->GetOutput()->GetPoints()->GetDataType();
i.e. type = 10 (VTK_FLOAT), wheras I would have expected 11 (VTK_DOUBLE)
as for the original mesh.
I would have though that the data type of the decimated mesh should have
been the same as the input mesh, which is not the case.
Is this a bug? Or have I missed something?
Thanks in advance for your help/advice.
Pof
</pre>
<br>
</div>
</div>
</div>
<br>
<br>
<br>
<hr
style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table
style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td style="border:none;padding:0px
15px 0px 8px"> <a
moz-do-not-send="true"
href="http://www.avast.com/"
target="_blank"> <img
moz-do-not-send="true"
border="0"> </a> </td>
<td>
<p
style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
Ce courrier électronique ne
contient aucun virus ou logiciel
malveillant parce que la
protection <a
moz-do-not-send="true"
href="http://www.avast.com/"
target="_blank">Antivirus avast!</a>
est active. </p>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com"
target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the
VTK FAQ at: <a moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK_FAQ"
target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Unpaid intern in BillsBasement at noware dot com<br>
</div>
</blockquote>
<br>
<br>
<br>
<hr
style="border:none;color:#909090;background-color:#b0b0b0;min-height:1px;width:99%">
<table style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td style="border:none;padding:0px 15px 0px 8px">
<a moz-do-not-send="true"
href="http://www.avast.com/" target="_blank">
<img moz-do-not-send="true"
src="http://static.avast.com/emails/avast-mail-stamp.png"
border="0"> </a> </td>
<td>
<p
style="color:#3d4d5a;font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
Ce courrier électronique ne contient aucun
virus ou logiciel malveillant parce que la
protection <a moz-do-not-send="true"
href="http://www.avast.com/"
target="_blank">Antivirus avast!</a> est
active. </p>
</td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Unpaid intern in BillsBasement at noware dot com<br>
</div>
</blockquote>
<br>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avast.com/">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection <a href="http://www.avast.com/">Antivirus avast!</a> est active.
                        </p>
                </td>
        </tr>
</table>
<br />
</body>
</html>