Revision: 64370
          http://sourceforge.net/p/brlcad/code/64370
Author:   starseeker
Date:     2015-03-11 22:18:16 +0000 (Wed, 11 Mar 2015)
Log Message:
-----------
Stub in the header for a libbn oriented bounding box.  Got a *lot* of 
preparatory work to do before we're ready for that step, but get the comments 
in so I don't have to track down 'rectangular cuboid' and the ascii art again.

Modified Paths:
--------------
    brlcad/trunk/include/bn/obr.h

Modified: brlcad/trunk/include/bn/obr.h
===================================================================
--- brlcad/trunk/include/bn/obr.h       2015-03-11 20:40:55 UTC (rev 64369)
+++ brlcad/trunk/include/bn/obr.h       2015-03-11 22:18:16 UTC (rev 64370)
@@ -96,6 +96,45 @@
                               const point_t *points_3d,
                               int pnt_cnt);
 
+/**
+ *@brief
+ * Find the minimum oriented bounding rectangular cuboid
+ * for a set of 3D points.  Returns 0 on success.
+ *
+ * The points in the output array are arranged as seen
+ * in the figure below, with the integer number at each
+ * vertex position corresponding to the pnts array index
+ * n-1 (for example, the first point, labeled 1 below,
+ * would be pnts[0].)
+ *
+ * \verbatim
+ *            8
+ *         *  |   *
+ *      *     |       *
+ *  4         |           7
+ *  |    *    |        *  |
+ *  |         *     *     |
+ *  |         |  3        |
+ *  |         |  |        |
+ *  |         5  |        |
+ *  |       *    |*       |
+ *  |   *        |    *   |
+ *  1            |        6
+ *      *        |     *
+ *           *   |  *
+ *               2
+ * \endverbatim
+ *
+ *
+ * @param[out] pnts     eight points of oriented bounding box
+ * @param points_3d    array of coplanar 3D points
+ * @param pnt_cnt      number of points in pnts array
+ */
+BN_EXPORT extern int bn_3d_obb(point_t **pnts,
+                              const point_t *points_3d,
+                              int pnt_cnt);
+
+
 __END_DECLS
 
 #endif  /* BN_OBR_H */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to