#71 Addition of a new librt function to return the bounding box

closed-accepted
Analysis (17)
7
2011-08-16
2011-08-12
Abhijit
No

This patch adds a new function to librt to calculate the bounding box for a struct rt_db_internal. Currently the function only works with primitives but I am working to improve it so it works with groups and combinations. Therefore it exits gracefully if it encounters a region/comb as of now. Moreover the missing primitives are printed out along with a warning from rt_gettrees() and a error message, so the user has some indication that a region/comb was passed. The functions resides in bbox.c with declaration in raytrace.h. It was tested with some of the primitives and regions in the sample databases such as galileo.g, shuttle.g and castle.g.

Discussion

  • Abhijit

    Abhijit - 2011-08-12

    The patch file in unified diff format

     
  • Sean Morrison

    Sean Morrison - 2011-08-16
    • priority: 5 --> 7
    • assigned_to: nobody --> brlcad
    • status: open --> closed-accepted
     
  • Sean Morrison

    Sean Morrison - 2011-08-16

    Your patch was reviewed and has been applied to svn as r46027. Thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks