You are right since I've done two different things at the same time.<div>=/<br clear="all"><div><div><font color="#555555" face="Helvetica, Arial, sans-serif"><span style="line-height:16px"><b>Matheus Viana</b></span></font></div>
<div><font color="#555555" face="Helvetica, Arial, sans-serif"><span style="line-height:16px"><b>Postdoctoral Research Employee</b></span></font></div><div><b><span style="color:rgb(85,85,85);line-height:16px;font-family:Helvetica,Arial,sans-serif;font-size:13px">Developmental and Cell Biology</span></b></div>
<div><font color="#555555" face="Helvetica, Arial, sans-serif"><span style="line-height:16px"><b>University of California Irvine</b></span></font></div><div><font color="#555555" face="Helvetica, Arial, sans-serif"><span style="line-height:16px"><b><br>
</b></span></font><b><i><br></i></b></div></div><br>
<br><br><div class="gmail_quote">2012/7/27 David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But I guess we don't know whether it was the update to<br>
the VTK 5.10 version of vtkPolyDataToImageStencil.cxx<br>
or whether it was the change to double-precision that<br>
actually fixed the problem...<br>
<span class="HOEnZb"><font color="#888888"><br>
- David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Jul 27, 2012 at 4:24 PM, Matheus Viana <<a href="mailto:vianamp@gmail.com">vianamp@gmail.com</a>> wrote:<br>
> Hello, David.<br>
> Everything is working well after add the line to force double-precision and<br>
> recompile VTK.<br>
> Many thanks for your help :)<br>
> All the Best,<br>
> Matheus Viana<br>
> Postdoctoral Research Employee<br>
> Developmental and Cell Biology<br>
> University of California Irvine<br>
><br>
><br>
><br>
><br>
><br>
> 2012/7/27 Matheus Viana <<a href="mailto:vianamp@gmail.com">vianamp@gmail.com</a>><br>
>><br>
>> Ah, it makes a lot of sense :)<br>
>> I'll try to update only this file for now and post the result soon.<br>
>> -m<br>
>> Matheus Viana<br>
>> Postdoctoral Research Employee<br>
>> Developmental and Cell Biology<br>
>> University of California Irvine<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> 2012/7/27 David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
>>><br>
>>> It seems that you are using VTK 5.8. You should update to VTK 5.10 if<br>
>>> possible, or if not, you can just grab the vtkPolyDataToImageStencil<br>
>>> code from VTK 5.10 (the .cxx and the .h).<br>
>>><br>
>>> - David<br>
>>><br>
>>><br>
>>> On Fri, Jul 27, 2012 at 2:57 PM, Matheus Viana <<a href="mailto:vianamp@gmail.com">vianamp@gmail.com</a>> wrote:<br>
>>> > David, I can't find this line further on my file. Could it be a version<br>
>>> > problem?<br>
>>> ><br>
>>> > I'm sending my file so you can take a look at.<br>
>>> ><br>
>>> > -m<br>
>>> > Matheus Viana<br>
>>> > Postdoctoral Research Employee<br>
>>> > Developmental and Cell Biology<br>
>>> > University of California Irvine<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > 2012/7/27 David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
>>> >><br>
>>> >> Line 123 seems too early. You should search to see if there is a<br>
>>> >> another vtkPoints::New somewhere further on. The code should<br>
>>> >> be in a method called PolyDataSelector().<br>
>>> >><br>
>>> >> - David<br>
>>> >><br>
>>> >><br>
>>> >> On Fri, Jul 27, 2012 at 2:36 PM, matheus_viana <<a href="mailto:vianamp@gmail.com">vianamp@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >> > David, in my source code, this occurs at line 123. Check it out:<br>
>>> >> ><br>
>>> >> > 128 // For the new points and lines<br>
>>> >> > 129 vtkPoints *newPoints = vtkPoints::New();<br>
>>> >> > 130 newPoints->Allocate(333);<br>
>>> >> > 131 vtkCellArray *newLines = vtkCellArray::New();<br>
>>> >> > 132 newLines->Allocate(1000);<br>
>>> >> ><br>
>>> >> > Is that line you're talking about?<br>
>>> >> ><br>
>>> >> > Best,<br>
>>> >> > Matheus Viana<br>
>>> >> > Postdoctoral Research Employee<br>
>>> >> > Developmental and Cell Biology<br>
>>> >> > University of California Irvine<br>
</div></div></blockquote></div><br></div>