Hi Firas, this is correct, there is one thing, though, that gets preserved in the process. For each cell, the pointId of each point in the cell.
So try the following: idMap = {} numberOfCells = centerline.GetNumberOfCells() cellId = 0 for i in range(numberOfCells): cell = centerline.GetCell(i) numberOfCellPoints = cell.GetNumberOfPoints() for j in range(numberOfCellPoints): pointId = cell.GetPointId(j) idMap[pointId] = cellId cellId += 1 Now idMap should contain, for each pointId of the centerline, the corresponding cellId on the section dataset. So, if you do MaxSizeArray.GetValue(idMap[i]) where i is a point id, you should get the corresponding value of max size. A possible idea would be to have this map in output from the sections filter. Let me know if this works and I'll include it in vmtk. Best regards Luca On Nov 28, 2010, at 5:26 PM, Firas Mualla wrote: > thanks Luca for the detailed reply, > I'm using Torsion and Curvature (both are points data) from the result > of vmtkcenterlinegeometry, and at each point I need also the > maxSize,minSize,Shape, and Area computed by vmtkcenterlinesections. > The latter put the required data in cell arrays (cell per section). > The good news is that they have the same size (the number of cells in > centerlinesections is equal to the number of points in > centerlinegeometry), but nothing guarantees consistent result when I > use something like: CurvatureArray.GetValue(i) and > MaxSizeArray.GetValue(i). I.e. the i-th cell in the result of > vmtkcenterlinesections does not conform to the i-th point in the > result of vmtkcenterlinegeometry. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users