14 #ifndef UNIONBOUNDINGVOLUME_H 15 #define UNIONBOUNDINGVOLUME_H 39 virtual LPoint3 get_approx_center()
const;
40 virtual void xform(
const LMatrix4 &mat);
42 virtual void output(std::ostream &out)
const;
43 virtual void write(std::ostream &out,
int indent_level)
const;
46 INLINE_MATHUTIL
int get_num_components()
const;
48 MAKE_SEQ(get_components, get_num_components, get_component);
49 MAKE_SEQ_PROPERTY(components, get_num_components, get_component);
51 void clear_components();
67 virtual int contains_point(
const LPoint3 &point)
const;
68 virtual int contains_lineseg(
const LPoint3 &a,
const LPoint3 &b)
const;
70 virtual int contains_box(
const BoundingBox *box)
const;
72 virtual int contains_line(
const BoundingLine *line)
const;
88 static void init_type() {
89 GeometricBoundingVolume::init_type();
91 GeometricBoundingVolume::get_class_type());
94 return get_class_type();
96 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...
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.
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...