14 #ifndef INTERSECTIONBOUNDINGVOLUME_H 15 #define INTERSECTIONBOUNDINGVOLUME_H 40 virtual LPoint3 get_approx_center()
const;
41 virtual void xform(
const LMatrix4 &mat);
43 virtual void output(std::ostream &out)
const;
44 virtual void write(std::ostream &out,
int indent_level)
const;
47 INLINE_MATHUTIL
int get_num_components()
const;
49 MAKE_SEQ(get_components, get_num_components, get_component);
50 MAKE_SEQ_PROPERTY(components, get_num_components, get_component);
52 void clear_components();
62 virtual int contains_point(
const LPoint3 &point)
const;
63 virtual int contains_lineseg(
const LPoint3 &a,
const LPoint3 &b)
const;
65 virtual int contains_box(
const BoundingBox *box)
const;
67 virtual int contains_line(
const BoundingLine *line)
const;
73 int other_contains_intersection(
const BoundingVolume *other)
const;
83 static void init_type() {
84 GeometricBoundingVolume::init_type();
86 GeometricBoundingVolume::get_class_type());
89 return get_class_type();
91 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 funny bounding volume is an infinite plane that divides space into two regions: the part behind ...
This is our own Panda specialization on the default STL vector.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
This special bounding volume is the intersection of all of its constituent bounding volumes.
This special bounding volume is the union of all of its constituent bounding volumes.
A special kind of GeometricBoundingVolume that is known to be finite.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
This defines a bounding convex hexahedron.
This funny bounding volume is an infinite line with no thickness and extending to infinity in both di...