SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] SampleField


Chronological Thread 
  • From: Martin Cole <mjc@sci.utah.edu>
  • To: Elisha Hughes <erh0509@westminstercollege.edu>
  • Cc: scirun-users@sci.utah.edu
  • Subject: Re: [SCIRUN-USERS] SampleField
  • Date: Tue, 22 Mar 2005 13:54:10 -0700

You have to dynamically compile the algorithm with your input field.  If
you look at how samplefield calls this algorithms execute, you will find
above it all the magic required to dynamically compile the algorithm.

--mc

On Tue, 2005-03-22 at 13:27, Elisha Hughes wrote:
> Thank you for directing me to the SampleField module.
> 
> I would like to call the SampleFieldRandomAlgoT::execute() method from  
> another module, but I am having some trouble.
> 
> This is basically what I'm trying:
> ProgressReporter *pr =  new ProgressReporter();
> FieldHandle myField = 
> SampleFieldRandomAlgoT<SCIRun::TetVolMesh>::execute(pr, someFieldHandle, 
> 10, 1, "uniuni", 0);
> 
> I am getting this error message:
>  error: cannot call member function `SCIRun::FieldHandle 
>  SCIRun::SampleFieldRandomAlgoT<Mesh>::execute(SCIRun::ProgressReporter*, 
>  SCIRun::LockingHandle<SCIRun::Field>, unsigned int, int, const 
> std::string&, 
>  int) [with Mesh = SCIRun::TetVolMesh]' without object
> 
> 
> Thank you for your help,
> Elisha
> 
> 
> 
> 
> 
> 
> 
> >>> Michael Callahan <callahan@sci.utah.edu> 03/18/05 8:49 PM >>>
> The SampleField module does this.
> 
> http://software.sci.utah.edu/src/Dataflow/XML/SampleField.html
> 
> src/nets/Modules/FieldsCreate/SampleField-weightedrandom.net
> 
>   Michael
> 
> 
> On Fri, 2005-03-18 at 18:06 -0700, Elisha Hughes wrote:
> > I apologize for being vague!
> > 
> > I probably should have asked my question this way: 
> > Given the index of a tetrahedral cell, how can I find the coordinates of 
> > it's 4 corners?
> > 
> > Here is a little context:
> > I am working with a program that randomly selects a node from a 
> > TetVolMesh, and places a new node in the same coordinate location in a 
> > PointCloudField.
> > 
> > I would like for these new nodes in the PointCloudField to be placed in 
> > positions that correspond to randomly selected points in the TetVolMesh.
> > 
> > The problem is that in the TetVolMesh some nodes are closer together, and 
> > some are farther apart, so picking a random node is not the same as 
> > picking a random location in the mesh.
> > 
> > In order to make this process more random, I would like to get the 
> > coordinates to a point inside a cell. 
> > 
> > Thanks for you help!
> > Elisha
> > 
> > 
> > 
> > 
> > >>> David Weinstein <dmw@sci.utah.edu> 03/18/05 11:39 AM >>>
> > Hi Elisha,
> > 
> > I'm not sure what you mean.  Can you please give us a little more  
> > context?
> > 
> > Cheers,
> > Dave
> > 
> > 
> > On Mar 18, 2005, at 11:13 AM, Elisha Hughes wrote:
> > 
> > > Dear SCIRun,
> > >
> > > I would like to access points inside of cells. How can I do 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         ==
> ===========================================================================
> 
> ===========================================================================
> == 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