[MOAB-dev] r1436 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Dec 4 09:59:43 CST 2007


Author: kraftche
Date: 2007-12-04 09:59:43 -0600 (Tue, 04 Dec 2007)
New Revision: 1436

Modified:
   MOAB/trunk/MBGeomUtil.hpp
Log:
add documentation for function

Modified: MOAB/trunk/MBGeomUtil.hpp
===================================================================
--- MOAB/trunk/MBGeomUtil.hpp	2007-12-04 15:59:23 UTC (rev 1435)
+++ MOAB/trunk/MBGeomUtil.hpp	2007-12-04 15:59:43 UTC (rev 1436)
@@ -56,7 +56,18 @@
                             const MBCartVect& seg_unit_dir,
                             double& seg_start, double& seg_end );
 
-
+/**\brief Test for intersection between a ray and a triangle.
+ *\param ray_point  The start point of the ray.
+ *\param ray_unit_direciton  The direction of the ray. Must be a unit vector.
+ *\param tolerance  Absolute distance tolerance for point equality
+ *\param t_out Output: The distance along the ray from ray_point in the
+ *                  direction of ray_unit_direction at which the ray
+ *                  itersected the triangle.
+ *\param ray_length Optional:  If non-null, a pointer a maximum length
+ *                  for the ray, converting this function to a segment-tri-
+ *                  intersect test.
+ *\return true if intersection, false otherwise.
+ */
 bool ray_tri_intersect( const MBCartVect vertices[3],
                         const MBCartVect& ray_point,
                         const MBCartVect& ray_unit_direction,




More information about the moab-dev mailing list