14 #ifndef OMNIBOUNDINGVOLUME_H 15 #define OMNIBOUNDINGVOLUME_H 31 virtual LPoint3 get_approx_center()
const;
32 virtual void xform(
const LMatrix4 &mat);
34 virtual void output(std::ostream &out)
const;
44 virtual bool extend_by_point(
const LPoint3 &point);
49 virtual bool around_points(
const LPoint3 *first,
58 virtual int contains_point(
const LPoint3 &point)
const;
59 virtual int contains_lineseg(
const LPoint3 &a,
const LPoint3 &b)
const;
62 virtual int contains_box(
const BoundingBox *box)
const;
68 static void init_type() {
69 GeometricBoundingVolume::init_type();
71 GeometricBoundingVolume::get_class_type());
74 return get_class_type();
76 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
An axis-aligned bounding box; that is, a minimum and maximum coordinate triple.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This defines a bounding sphere, consisting of a center and a radius.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a special kind of GeometricBoundingVolume that fills all of space.
TypeHandle is the identifier used to differentiate C++ class types.
This defines a bounding convex hexahedron.