<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&nbsp; 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>&gt; Date: Mon, 23 Feb 2009 20:51:42 -0500<br>&gt; Subject: Re: [Paraview] use of vtkSynchronizedTemplates<br>&gt; From: berk.geveci@kitware.com<br>&gt; To: nataliehapp@hotmail.com<br>&gt; CC: paraview@paraview.org<br>&gt; <br>&gt; Did you try calling Update() on SynchronizedTemplated3D instead of<br>&gt; ThreadedExecute()? ThreadedExecute() is really meant to be used<br>&gt; internally.<br>&gt; <br>&gt; -berk<br>&gt; <br>&gt; On Mon, Feb 23, 2009 at 7:48 AM, Natalie Happenhofer<br>&gt; &lt;nataliehapp@hotmail.com&gt; wrote:<br>&gt; &gt; Hi!<br>&gt; &gt; I want to display isosurfaces of values I compute in my filter, so looking<br>&gt; &gt; at vtkContourFilter, I got the idea to use the vtkSynchronizedTemplates3D<br>&gt; &gt; (as my filter is going to handle 3D ImageData).<br>&gt; &gt; I have a vtkSynchronizedTemplate3D as an instance of my filter, in the<br>&gt; &gt; constructor it´s initialized and then I do the following:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt; SetInput(TauSet);<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt; ComputeNormalsOff();<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt; ComputeGradientsOff();<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt; SetComputeScalars(1);<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt; SetNumberOfContours(1);<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt; SetValue(0, TauValue);<br>&gt; &gt;<br>&gt; &gt; int ext[6];<br>&gt; &gt; inInfo -&gt; Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), ext);<br>&gt; &gt; this -&gt; SynchronizedTemplates3D -&gt;<br>&gt; &gt; ThreadedExecute(TauSet,inInfo,outInfo,ext, TauValues);<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; It does compile, but running I get an segmentation fault, debugging and<br>&gt; &gt; backtracing I get:<br>&gt; &gt;<br>&gt; &gt; #0  0x00007f42ffc5eb10 in ContourImage&lt;double&gt; () from<br>&gt; &gt; /home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4<br>&gt; &gt; #1  0x00007f42ffc5a308 in vtkSynchronizedTemplates3D::ThreadedExecute ()<br>&gt; &gt; from /home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4<br>&gt; &gt; #2  0x00007f4309195f06 in vtkTauFilter::RequestData () from<br>&gt; &gt; /home/happenhofer/Paraview/build-svn/bin/libvtkPVFilters.so<br>&gt; &gt;<br>&gt; &gt; vtkTauFilter would be my filter, so the error occurs in<br>&gt; &gt; ContourImage&lt;double&gt;.<br>&gt; &gt;<br>&gt; &gt; Does anyone have an idea even how to find the problem? That would be a great<br>&gt; &gt; help..<br>&gt; &gt;<br>&gt; &gt; and just in general - calling ThreadedExecute would execute the<br>&gt; &gt; SynchronizedTemplate filter and return a grid with the isosurface computed,<br>&gt; &gt; does it not? or do I have to specifiy the output somehow?<br>&gt; &gt;<br>&gt; &gt; thx a lot,<br>&gt; &gt; Natalie Happenhofer<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; ¡Conoce el nuevo Calendario de Windows Live! ¿Quieres tener un 2009 más<br>&gt; &gt; organizado?<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; &gt; http://paraview.org/Wiki/ParaView<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt;<br>&gt; &gt;<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>