Menu

RIB output to a stream instead of a file?

Help
2009-06-23
2013-04-25
  • Dexter Allen

    Dexter Allen - 2009-06-23

    Is it possible to use the C API to output the RIB to a stream instead of all the way to a file?

    It seems the only options for RiBegin() are NULL for going to stdout and a string for a file name-- is that correct?  It'd be quite useful not to have to write a temporary file and then read it back in, as I'm doing now-- is this somehow possible? 

    Thanks.

     
    • Moritz Moeller

      Moritz Moeller - 2009-06-23

      Calling RiBegin(), with an empty string as its argument (""), directs RIB output to stdout. From there you can use stream redirection.

      Hope this helps.

      .mm

       

Log in to post a comment.