Text archives Help
- From: uccaspa@ucl.ac.uk
- To: Aaron Knoll <knolla@cs.utah.edu>
- Cc: MANTA <manta@sci.utah.edu>
- Subject: Re: [Manta] Re: Manta: Direct isosurfacing using octrees
- Date: 23 Oct 2007 16:19:21 +0100
On Oct 22 2007, Aaron Knoll wrote:
One problem with the octree data is that it currently only supports
single-byte scalar data, not 32-bit float.
To fix it, one would have to do a fair amount of modification in the
code.
The code typdefs unsigned chars to 'ST' for easy editing so to support both
8 and 32 bit scalars I must change the code which uses this typedef to use
templates instead.
After examining the code I believe this would involve:
- Converting any existing objects which contain ST variables into template
equivalents - Moving any individual ST variables into a single template
object - Converting any existing functions which take/return ST variables
into template equivalents - Obtaining the type of the data in the octree
file being read (using the C++ typeid operator) and using this to
instantiate objects and functions of the appropriate type
I'm already part way through this but would appreciate if you could confirm
if you agree with this approach. It does require a lot of tricky code
modification so it would be reassuring to know that I'm on the right track
;)
Thanks
Shree Pavar
Archive powered by MHonArc 2.6.16.