module Plane: sig
.. end
A plane class. It can be used to represent an infinite plane.
type
t
val create : float -> float -> float -> float -> t
create a b c d
val create_normal_distance : Osg.Vec3.t -> float -> t
create normal distance
val create_normal_point : Osg.Vec3.t -> Osg.Vec3.t -> t
create normal point
val distance : t -> Osg.Vec3.t -> float
calculate the distance between a point and the plane.
val intersect_vec3_array : t -> Osg.Vec3_array.t -> int
intersection test between plane and vertex list
return 1 if the bs is completely above plane,
return 0 if the bs intersects the plane,
return -1 if the bs is completely below the plane.
val intersect_bounding_box : t -> Osg.Bounding_box.t -> int
intersection test between plane and bounding box.
return 1 if the bs is completely above plane,
return 0 if the bs intersects the plane,
return -1 if the bs is completely below the plane.