Text archives Help
- From: Michael Callahan <callahan@sci.utah.edu>
- To: David Weinstein <dmw@sci.utah.edu>
- Cc: Elisha Hughes <erh0509@westminstercollege.edu>, scirun-users@sci.utah.edu
- Subject: Re: [SCIRUN-USERS] zeroing out a field
- Date: Tue, 05 Jul 2005 10:18:57 -0600
The TransformData module is the best example of setting all the values
in a field to an arbitrary value. Dave's method would also work.
Michael
On Tue, 2005-07-05 at 00:56 -0600, David Weinstein wrote:
>
Hi Elisha,
>
>
If your module is templated, you can look at the VectorMagnitude code
>
for an example; if it's not, you can use something simpler like this:
>
>
LatVolField<double> *myfield;
>
...
>
myfield->fdata().initialize(0);
>
>
Cheers,
>
Dave
>
>
>
On Jul 3, 2005, at 10:12 PM, Elisha Hughes wrote:
>
>
> Dear SCIRun,
>
>
>
> I am working with a homemade module that needs to set all the data
>
> in a field to zero.
>
>
>
> Do you have any advice regarding the best way to accomplish this?
>
>
>
> Thanks for your help,
>
> Elisha
>
>
>
> ======================================================================
>
> =====
>
> == 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 ==
>
===========================================================================
===========================================================================
== 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.