<div dir="ltr">Hi Matt,<div class="gmail_extra"><br>I have inlined some responses below.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 10, 2013 at 4:33 PM, Matt <span dir="ltr"><<a href="mailto:mat72@gmx.com" target="_blank">mat72@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well it seems that for AMR data (vtkHierarchicalBoxDataSet), the common<br>
filter 'Contour' can be used, provided that the dataset is properly<br>
converted to point data (with 'Cell Data to Point Data' filter).</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
However the contour lines are not continuous and the common 'Contour'<br>
filter doesn't seem to account the composite field, only the fields on<br>
individual patches.</blockquote><div><br></div><div>That's right, the common contour filter, contours each patch individually and therefore</div><div>you get cracks across patch interfaces. If you don't care much about producing a water-tight </div>
<div>contour surface (I am assuming your data is 3-D), one potential quick and dirty solution could </div><div>be to extrude the boundaries of each patch (let's say by one layer of cells) and contour that. This</div>
<div>
approach will still produce cracks, but depending on your end goals, it might be sufficient.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I guess 'AMR Contour' (which crashes with my data)<br>
is intended to work with the composite solution?<br></blockquote><div><br></div><div>Yes, that is contouring the dual and it will stitch the contours across patch interfaces. However, to the best of my knowledge this is intended for non-overlapping AMR, which is probably why you are running to problems.</div>
<div><br></div><div>Would it be possible to share a sample dataset with us? I have worked on a dual-grid algorithm for overlapping, patch-based AMR and I can try to look in to this.</div><div><br></div><div>Best,<br>George</div>
<div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Sun, Oct 06, 2013 at 04:30:59PM +0200, Matt wrote:<br>
> Hi,<br>
><br>
> I am having trouble to use 'AMR Contour' filter. I have tried with two<br>
> versions of ParaView (3.8 on Linux 2.6.18 amd64 and 4.1 on Windows XP<br>
> x86) and every time it results in a segfault. The problem can be<br>
> reproduced by using 'Hierarchical Fractal' source as AMR dataset and<br>
> then applying 'AMR Contour' filter. I face the same issues with datasets<br>
> generated by my own code or from other codes.<br>
><br>
> Here is the backtrace for me:<br>
><br>
> *** glibc detected *** ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/paraview: free(): invalid pointer: 0x000000001aa82e90 ***<br>
><br>
> ======= Backtrace: =========<br>
> /lib64/libc.so.6[0x3879a711df]<br>
> /lib64/libc.so.6(cfree+0x4b)[0x3879a7163b]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN25vtkAMRDualGridHelperLevel12AddGridBlockEiiiP12vtkImageData+0x1a9)[0x2acacaa7e1e9]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN20vtkAMRDualGridHelper8AddBlockEiP12vtkImageData+0x11d)[0x2acacaa7e57d]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN20vtkAMRDualGridHelper10InitializeEP25vtkHierarchicalBoxDataSetPKc+0x111)[0x2acacaa7ed91]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFilters.so(_ZN17vtkAMRDualContour11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x179)[0x2acacaa77429]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x54)[0x2acacfbe23c4]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x4c)[0x2acacfbd5f1c]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN24vtkCompositeDataPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0xc7)[0x2acacfbb7f87]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x293)[0x2acacfbd8ea3]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x19c)[0x2acacfcd970c]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN24vtkCompositeDataPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x79)[0x2acacfbb85a9]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x9e)[0x2acacfbd7a9e]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFiltering.so.pv3.8(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0x7b)[0x2acacfcd8efb]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFilteringCS.so(_Z19vtkAlgorithmCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x1a5b)[0x2acacd875a4b]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkFilteringCS.so(_Z36vtkMultiBlockDataSetAlgorithmCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x205)[0x2acacd8cb015]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVFiltersCS.so(_Z24vtkAMRDualContourCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_+0x699)[0x2acaca7be5c9]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkClientServer.so(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkClientServerStreami+0x16c)[0x2acacdc11a7c]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkClientServer.so(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x37f)[0x2acacdc123ef]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkClientServer.so(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientServerStream+0x1d)[0x2acacdc128ad]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN17vtkSelfConnection20ProcessStreamLocallyER21vtkClientServerStream+0x20)[0x2acacb2c3920]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN26vtkProcessModuleConnection10SendStreamEjR21vtkClientServerStream+0x61)[0x2acacb26f641]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN33vtkProcessModuleConnectionManager10SendStreamEijR21vtkClientServerStreami+0x39)[0x2acacb271989]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerCommon.so(_ZN16vtkProcessModule10SendStreamEijR21vtkClientServerStreami+0x63)[0x2acacb276bb3]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerManager.so(_ZN15vtkSMOutputPort22UpdatePipelineInternalEdb+0x1f2)[0x2acac707b062]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libvtkPVServerManager.so(_ZN16vtkSMSourceProxy14UpdatePipelineEd+0x4d)[0x2acac70ecfed]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqCore.so(_ZNK15pqDisplayPolicy20getPreferredViewTypeEP12pqOutputPortb+0x1a1)[0x2acac59e2da1]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqCore.so(_ZNK15pqDisplayPolicy16getPreferredViewEP12pqOutputPortP6pqView+0x43)[0x2acac59e2a33]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqCore.so(_ZNK15pqDisplayPolicy29createPreferredRepresentationEP12pqOutputPortP6pqViewb+0x38)[0x2acac59e2758]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqComponents.so(_ZN23pqObjectInspectorWidget4showEP16pqPipelineSource+0x6c)[0x2acac54ffbfc]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqComponents.so(_ZN23pqObjectInspectorWidget6acceptEv+0x326)[0x2acac5500316]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libpqComponents.so(_ZN23pqObjectInspectorWidget11qt_metacallEN11QMetaObject4CallEiPPv+0x126)[0x2acac55d2ce6]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x219)[0x2acaca250ac9]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN15QAbstractButton7clickedEb+0x32)[0x2acac964b5d2]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac93692eb]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac936a855]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x7b)[0x2acac936aaab]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xba1)[0x2acac901ecf1]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN15QAbstractButton5eventEP6QEvent+0x3f)[0x2acac9369d6f]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN11QPushButton5eventEP6QEvent+0x3d)[0x2acac940477d]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xae)[0x2acac8fc412e]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x3d7)[0x2acac8fc7c37]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x83)[0x2acaca23d653]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x136)[0x2acac8fc6fc6]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac9046714]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x672)[0x2acac9044e82]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac906e222]<br>
> /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1b4)[0x387f62cdb4]<br>
> /lib64/libglib-2.0.so.0[0x387f62fc0d]<br>
> /lib64/libglib-2.0.so.0(g_main_context_iteration+0x6e)[0x387f63011e]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)[0x2acaca268285]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtGui.so.4[0x2acac906e04f]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x35)[0x2acaca23c8f5]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xac)[0x2acaca23cc4c]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xbb)[0x2acaca23e9ab]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/paraview(main+0x155)[0x4065a5]<br>
> /lib64/libc.so.6(__libc_start_main+0xf4)[0x3879a1d994]<br>
> ParaView-3.8.1-Linux-x86_64/lib/paraview-3.8/paraview(_ZN11QMainWindow5eventEP6QEvent+0x4a)[0x4063ba]<br>
><br>
> Is there anything I missed with respect to the dataset or to the<br>
> parameters of the filter?<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a 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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</div></div></blockquote></div><br></div></div>