SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] retrieving original element indexes


Chronological Thread 
  • From: David Weinstein <dmw@sci.utah.edu>
  • To: Leon Graham <lgraham@postoffice.utas.edu.au>
  • Cc: scirun-users@sci.utah.edu
  • Subject: Re: [SCIRUN-USERS] retrieving original element indexes
  • Date: Mon, 2 May 2005 21:54:54 -0600

Hi,

Yes, Michael's exactly right. Just for clarity, here's an example subnet that accomplishes this (I've mapped the indices back onto the Mesh as the data values, that way you can, for example, render them in ShowField) --

PNG image



Cheers,
Dave


On May 2, 2005, at 9:07 PM, Michael Callahan wrote:

You could do the FieldMeasures module before the clip.  Alternatively
ClipByFunction returns a SparseRowMatrix that maps between the original
locations and the clipped ones. If the basis is linear then the entries
will correspond to the non-zero matrix columns.

  Michael

On Tue, 2005-05-03 at 12:20 +1000, lgraham@postoffice.utas.edu.au wrote:
Hi,

I'm trying to retrieve the element indexes in a selected region of a
mesh, so that I can assign different parameter values to them.
I have used the clipByFuction or clipField modules to select a region in
the mesh, then the fieldMeasures module to get the element indexes. But
when I write out the selected element indexes, the indexes start from 0.
Does anyone know how to get the original element indexes from a clipped field?




Leon


====================================================================== =====
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see http://software.sci.utah.edu/scirun-biopse_citation.bib ==
====================================================================== =====

======================================================================= ====
== The SCIRun Users mailing list: send email to majordomo@sci.utah.edu ==
== for more details. ==
== Please acknowledge use of SCIRun in your papers and reports: ==
== see http://software.sci.utah.edu/scirun-biopse_citation.bib ==
======================================================================= ====



Archive powered by MHonArc 2.6.16.

Top of page