ClipFieldByFunction is returning all the elements that have one node as a part of the subset you selected. In other words, if an element has one node that meets your condition, all the nodes of that element are kept. If you want to work on just the nodes, try using the module, ConvertMeshToPointCloud, before you pass your field to ClipFieldByFunction. This works in the test module that you sent. If you want to work with elements still, you can change the option from single node to all nodes; however, in your case this would result in only 8 nodes because the rest of the nodes with data do not form complete elements. So the best bet is to convert your mesh into a point cloud.
Good luck,
Darrell
> <fielddata.mat><testNetwork.srn>
On May 16, 2011, at 11:21 AM, Sanket Jain wrote:
> Hello SCIRun Experts,
>
> Objective:
> Read and display non-zero values in fielddata matrix as spheres of the same size, but color coded based on data values.
>
> Problem: (SCIRun 4.0 and 4.4)
> It appears that Module 'ClipFieldByFunction' behaves incorrectly. The _expression_ DATA!=0; should return 38 nonzero values.
> I verified this with MATLAB. In SCIRun it returns 228 Nodes.
>
> Question:
> Anyone knows of problems with 'ClipFieldByFunction'?
> Is syntax correct?
> Any other suggestions to get this to work?
>
> Thanks a lot.
> Sanket
Archive powered by MHonArc 2.6.16.