<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br>I want to display isosurfaces of values I compute in my filter, so looking at vtkContourFilter, I got the idea to use the vtkSynchronizedTemplates3D (as my filter is going to handle 3D ImageData).<br>I have a vtkSynchronizedTemplate3D as an instance of my filter, in the 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 -> ThreadedExecute(TauSet,inInfo,outInfo,ext, TauValues);<br><br><br>It does compile, but running I get an segmentation fault, debugging and backtracing I get:<br><br>#0 0x00007f42ffc5eb10 in ContourImage<double> () from /home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4<br>#1 0x00007f42ffc5a308 in vtkSynchronizedTemplates3D::ThreadedExecute () from /home/happenhofer/Paraview/build-svn/bin/libvtkGraphics.so.pv3.4<br>#2 0x00007f4309195f06 in vtkTauFilter::RequestData () from /home/happenhofer/Paraview/build-svn/bin/libvtkPVFilters.so<br><br>vtkTauFilter would be my filter, so the error occurs in ContourImage<double>.<br><br>Does anyone have an idea even how to find the problem? That would be a great help.. <br><br>and just in general - calling ThreadedExecute would execute the SynchronizedTemplate filter and return a grid with the isosurface computed, does it not? or do I have to specifiy the output somehow?<br><br>thx a lot,<br>Natalie Happenhofer<br><br /><hr />¡Conoce el nuevo Calendario de Windows Live! <a href='http://calendar.live.com' target='_new'>¿Quieres tener un 2009 más organizado?</a></body>
</html>