SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Re: Clip Field by Function Module


Chronological Thread 
  • From: Sanket Jain <jainsanket1@gmail.com>
  • To: Darrell Swenson <darrell.swenson@gmail.com>
  • Cc: SCIRUN Users Mailing List <scirun-users@sci.utah.edu>
  • Subject: [SCIRUN-USERS] Re: Clip Field by Function Module
  • Date: Mon, 16 May 2011 12:50:51 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bKtgcl3Pl9YLJmtLxEXdVYgqX2fxe11eHmt3jAxI5pFVb5R9I62WAjFzmcBi9QC18P lgUhRYfeV+8+SCgJu9ULiWvMd7ga1VdeckGtuLgE/jwCkIFWszdzeHYU888utH27nQ7W s9YPmZoGWLiudN58Ube2nE7ivqYItscejZ1zs=

Fantastic. Your explanation makes sense and ConvertMeshToPointCloud does the trick!

Thank You Darrell,
Sanket

On Mon, May 16, 2011 at 12:35 PM, Darrell Swenson <darrell.swenson@gmail.com> wrote:
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



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
> <fielddata.mat><testNetwork.srn>





Archive powered by MHonArc 2.6.16.

Top of page