SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] Convert an Unstructured Mesh Object into a Regular Grid


Chronological Thread 
  • From: Jess Tate <jess@sci.utah.edu>
  • To: Dafang Wang <dafang.wang@jhu.edu>
  • Cc: "scirun-users@sci.utah.edu" <scirun-users@sci.utah.edu>
  • Subject: Re: [SCIRUN-USERS] Convert an Unstructured Mesh Object into a Regular Grid
  • Date: Wed, 28 May 2014 17:43:32 -0600

Hi Dafang,

You can map the mesh data onto the grid using MapFieldDataOntoNodes or
MapFieldDataFromSourceToDestination. You are right to use CreateLatVol. Use
the unstructured mesh as the input to CreateLatVol (it will use the same
bounding box) and you can pad the volume and set the resolution that you
want. Make sure the mesh data is set to some value(s) (you can use
CreateFieldData/CalculateFieldData) and use one of the mapping modules. set
the maximum distance to 1 or some other appropriate value and set the
default/background value to 0. This should give you the results that you
want.

cheers,
Jess




On May 28, 2014, at 3:15 PM, Dafang Wang <dafang.wang@jhu.edu> wrote:

> Hi,
>
> I am wondering if SCIRun can convert an unstructured mesh object into a
> regular grid. In such a grid, the nodes corresponding to the object will be
> labeled differently from the nodes in the background.
>
> I started with the module "CreateLatVol", but I don't know which module I
> should use next. Does anyone have any suggestions?
>
> Thanks,
> Dafang
> --
> Dafang Wang, Ph.D.
> Postdoctoral Fellow
> Institute of Computational Medicine
> Hackerman Hall, Room 218
> Johns Hopkins University, Baltimore, 21218
> http://lagniappe.icm.jhu.edu/~dwang/




Archive powered by MHonArc 2.6.18.

Top of page