On Tue, Jul 12, 2011 at 12:16:59PM +0000, Juha Jäykkä wrote: > > The atomic_orbital example does an isosurface on the data. Doing an > > isosurface on a flat dataset is an ill-defined operation. You probably > > want to be doing something different than an isosurface. What's your end
> That does not really address the problem with set_active_attribute(). I don't know: you gave only a fairly non-specific description of your problem. I would have to write an example to find out where things exactly fail. > > goal? Why are you doing this isosurface? > I want to find points where two contours intersect: where real and > imaginary parts of my Phi both = 0. To simply look for |Phi|=0 is not > useful since it would require extrapolation (I am not guaranteed to > have a point |Phi|=0 in my data, in fact, I am almost guaranteed NOT to > have such a point). So, I turn extrapolation problem into an > iterpolation problem by first taking one contour of the first array, > changing the active attribute and taking another contour. Since now the > first contour has filtered out all points NOT on the first contour, the > second contour gives me the intersections of the two. It seems convoluted to me: you are using a visualization package as a numerical computing tool. Not to say that VTK does not do numerical computing well, but you are fighting it. I would try representing data as a surface (PolyData, which you can create using an mlab.mesh command) and applying to it a 2D contouring operation (I do not know out of the top of my head what the name of the corresponding VTK filter is, but I am pretty sure that it exists. HTH, Gael ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users