Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: Re: Re: Re: Re: directory reading in Manta


Chronological Thread 
  • From: Aaron Knoll < >
  • To:
  • Cc: Abe Stephens < >, "J. Davison de St. Germain" < >
  • Subject: [Manta] Re: Re: Re: Re: Re: directory reading in Manta
  • Date: Tue, 29 Jul 2008 13:38:34 -0600

Actually this would be a non-uda format involving volume nrrds nested in a directory hierarchy (similarly to how uda's are organized).

It's true that uda/xml makes directory reading a bit easier; nonetheless I think readdir() will work.

-Aaron

On Jul 29, 2008, at 1:33 PM, 

 wrote:

if you're using this for UDA directories then you can avoid having to parse through directories as the index.xml file lists all the necessary files and locations relative to the root dir. Look in UDAReader.cc for the relevant code.
Carson

Quoting Abe Stephens 
< >:

If it's part of the CSAFE scene or viewer I wouldn't worry about
portability beyond mac/linux. That code is all optional and can be
disabled on other platforms.

Abe

On Jul 28, 2008, at 2:13 PM, Aaron Knoll wrote:

I suppose it could; however this would be for reading a special directory structure with nested volume data, and then reading that data into Manta. It would probably be easier to keep it C++ (although I agree file management is much cleaner in python!)

This is for mac and Linux (the platforms intended to run Carson's csafe demo), both of which are posix-compliant. I think Windows even has opendir/readdir equivalents; however I have never tested them out.

-Aaron

On Jul 28, 2008, at 2:07 PM, Abe Stephens wrote:

I think it depends on what part of Manta would contain platform specific code. What is the operation? Could the directory access be performed in python and then the results passed to Manta code?

Abe

On Jul 28, 2008, at 12:17 PM, Aaron Knoll wrote:

Hi everyone,

Is it safe to use POSIX-compliant directory-reading in Manta (i.e. opendir() )?

Anyone know of different/better options?

-Aaron




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.16.

Top of page