mav_boxIntersect - Calculate intersection of line with Maverik default object classes.

[ Maverik Level 2 functions ]

#

mav_boxIntersect

mav_boxIntersect, mav_compositeIntersect, mav_coneIntersect, mav_ctorusIntersect, mav_cylinderIntersect, mav_ellipseIntersect, mav_facetIntersect, mav_hellipseIntersect, mav_hsphereIntersect, mav_polygonIntersect, mav_polygonGrpIntersect, mav_pyramidIntersect, mav_rectangleIntersect, mav_rtorusIntersect, mav_SMSObjIntersect, mav_sphereIntersect, mav_avatarIntersect

## Summary

Calculate intersection of line with Maverik default object classes.

## Syntax

int mav_boxIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_compositeIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_coneIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_ctorusIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_cylinderIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_ellipseIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_facetIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_hellipseIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_hsphereIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_polygonIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_polygonGrpIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_pyramidIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_rectangleIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_rtorusIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_SMSObjIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_sphereIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

int mav_avatarIntersect(MAV_object *o, MAV_line *ln, MAV_objectIntersection *oi);

- MAV_object *o
  Object to test for intersection.

- MAV_line *ln
  Line to test for intersection.

- MAV_objectIntersection *oi
  Intersection of line and object (if any).

## Description

This function tests for intersection beween object `o` and line `ln`. If one or more intersections are detected, the closest intersection point is returned in `oi`, and the result of the function is MAV_TRUE. If no intersection is detected, the result of the function is MAV_FALSE.

If this callback function is not defined for object `o`, the intersection function will test against the object's bounding box.

Back to the index page.