<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br><br>Update() doesn´t work either, I still get the segmentation fault. (I hate segmentation faults, you never know what´s causing them). At least I´d need to call the vtkContourFilter from my filter, surely there is a possibility? How could I achieve that? Or maybe there are any filters in paraview which are already calling other filters? <br><br>thx,<br>Natalie<br><br>> Date: Mon, 23 Feb 2009 20:51:42 -0500<br>> Subject: Re: [Paraview] use of vtkSynchronizedTemplates<br>> From: berk.geveci@kitware.com<br>> To: nataliehapp@hotmail.com<br>> CC: paraview@paraview.org<br>> <br>> Did you try calling Update() on SynchronizedTemplated3D instead of<br>> ThreadedExecute()? ThreadedExecute() is really meant to be used<br>> internally.<br>> <br>> -berk<br>> <br>> On Mon, Feb 23, 2009 at 7:48 AM, Natalie Happenhofer<br>> <nataliehapp@hotmail.com> wrote:<br>> > Hi!<br>> > I want to display isosurfaces of values I compute in my filter, so looking<br>> > at vtkContourFilter, I got the idea to use the vtkSynchronizedTemplates3D<br>> > (as my filter is going to handle 3D ImageData).<br>> > I have a vtkSynchronizedTemplate3D as an instance of my filter, in the<br>> > constructor it´s initialized and then I do the following:<br>> ><br>> ><br>> > this -> SynchronizedTemplates3D -> SetInput(TauSet);<br>> > this -> SynchronizedTemplates3D -> ComputeNormalsOff();<br>> > this -> SynchronizedTemplates3D -> ComputeGradientsOff();<br>> > this -> SynchronizedTemplates3D -> SetComputeScalars(1);<br>> > this -> SynchronizedTemplates3D -> SetNumberOfContours(1);<br>> > this -> SynchronizedTemplates3D -> SetValue(0, TauValue);<br>> ><br>> > int ext[6];<br>> > inInfo -> Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), ext);<br>> > this -> SynchronizedTemplates3D -><br>> > ThreadedExecute(TauSet,inInfo,outInfo,ext, TauValues);<br>> ><br>> ><br>> > It does compile, but running I get an segmentation fault, debugging and<br>> > backtracing I get:<br>> ><br>> > #0 0x00007f42ffc5eb10 in ContourImage<double> () from<br>> > /home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4<br>> > #1 0x00007f42ffc5a308 in vtkSynchronizedTemplates3D::ThreadedExecute ()<br>> > from /home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4<br>> > #2 0x00007f4309195f06 in vtkTauFilter::RequestData () from<br>> > /home/happenhofer/Paraview/build-svn/bin/libvtkPVFilters.so<br>> ><br>> > vtkTauFilter would be my filter, so the error occurs in<br>> > ContourImage<double>.<br>> ><br>> > Does anyone have an idea even how to find the problem? That would be a great<br>> > help..<br>> ><br>> > and just in general - calling ThreadedExecute would execute the<br>> > SynchronizedTemplate filter and return a grid with the isosurface computed,<br>> > does it not? or do I have to specifiy the output somehow?<br>> ><br>> > thx a lot,<br>> > Natalie Happenhofer<br>> ><br>> > ________________________________<br>> > ¡Conoce el nuevo Calendario de Windows Live! ¿Quieres tener un 2009 más<br>> > organizado?<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the ParaView Wiki at:<br>> > http://paraview.org/Wiki/ParaView<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.paraview.org/mailman/listinfo/paraview<br>> ><br>> ><br><br /><hr />con Windows Live Messenger comparte fotos mientras charlas. <a href='http://www.microsoft.com/windows/windowslive/products/messenger.aspx' target='_new'>El doble de diversión:</a></body>
</html>