Hi list! I have a dataset, which looks like the following:
p1(x,y,z), p2(x,y,z), p3(x,y,z), and for all x,y,z p1^2+p2^2+p3^2=1. I want to find points, where p3=-1. Now, that cannot be done with IsoSurface, since (in principle) there are no points in the lattice, where p3=-1 and IsoSurface (quite understandably) does not do extrapolation. So, I devised a way around this, using the unit-length property: first filter out p3>0 with threshold, then change to p2 array and find phi2=0 using contour filter, change to p1 and again find p1=0. What I am left with is now points where p3>0 and p1=p2=0 i.e. p3=-1. I plot this using surface, but herein lies the problem: it plots the object with small + signs and does not do shading or anything similar, so whenever this "surface" (it is a curve, of course) goes over itself, one cannot see which piece is in the front and which in the back. I can work around this by using glyphs instead of surface, but then it looks bumpy no matter which glyph I choose and sometimes leaves gaps between the glyphs. Now, the gaps occur with surface, too, and with glyphs I can fix is by increasing the glyph size, but that cannot be done automatically: it requires human intervention, which is impossible. This makes me think I am doing something stupid here: there must be a good way to plot curves with mayavi! The data I end up feeding surface is tvtk_classes.poly_data.PolyData and it has an attribute (trait?) calles "lines" which is tvtk_classes.cell_array.CellArray and which contains a set of line segments. These are the lines I want to plot. I can even compute the length of this curve (sum of the lengths of the line segments), but I cannot seem to be able to produce a decent plot of the curve! How do I do this? Cheers, Juha ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users