15 #ifndef COLLISIONFLOORMESH_H
16 #define COLLISIONFLOORMESH_H
18 #include "pandabase.h"
20 #include "collisionPlane.h"
21 #include "clipPlaneAttrib.h"
48 INLINE
void add_vertex(
const LPoint3 &vert);
49 void add_triangle(
unsigned int pointA,
unsigned int pointB,
unsigned int pointC);
51 INLINE
unsigned int get_num_vertices()
const;
52 INLINE
const LPoint3 &get_vertex(
unsigned int index)
const;
53 MAKE_SEQ(get_vertices, get_num_vertices, get_vertex);
54 INLINE
unsigned int get_num_triangles()
const;
55 INLINE
LPoint3i get_triangle(
unsigned int index)
const;
56 MAKE_SEQ(get_triangles, get_num_triangles, get_triangle);
58 virtual LPoint3 get_collision_origin()
const;
71 virtual void output(ostream &out)
const;
72 virtual void write(ostream &out,
int indent_level = 0)
const;
74 INLINE
static void flush_level();
84 virtual
void fill_viz_geom();
100 static
void register_with_read_factory();
107 static void init_type() {
108 CollisionSolid::init_type();
109 register_type(_type_handle,
"CollisionFloorMesh",
110 CollisionSolid::get_class_type());
113 return get_class_type();
115 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
121 #include "collisionFloorMesh.I"
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
The abstract base class for all things that can collide with other things in the world, and all the things they can collide with (except geometry).
Base class for objects that can be written to and read from Bam files.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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...
A lightweight class that represents a single element that may be timed and/or counted via stats...
This is a 4-by-4 transform matrix.
virtual PStatCollector & get_volume_pcollector()
Returns a PStatCollector that is used to count the number of bounding volume tests made against a sol...
Defines a single collision event.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This object represents a solid made entirely of triangles, which will only be tested again z axis ali...
virtual PStatCollector & get_test_pcollector()
Returns a PStatCollector that is used to count the number of intersection tests made against a solid ...
virtual void xform(const LMatrix4 &mat)
Transforms the solid by the indicated matrix.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
A node that holds Geom objects, renderable pieces of geometry.