36 if (odegeom_cat.is_debug()) {
37 odegeom_cat.debug() << get_type() <<
"(" << _id <<
")\n";
43 if (odegeom_cat.is_debug()) {
44 odegeom_cat.debug() <<
"~" << get_type() <<
"(" << _id <<
")\n";
101 if (get_class() == OdeTriMeshGeom::get_geom_class()) {
102 OdeTriMeshData::unlink_data(_id);
109 return OdeSpace(dGeomGetSpace(_id));
114 write(std::ostream &out,
unsigned int indent)
const {
116 out << get_type() <<
"(id = " << _id <<
")";
120 convert_to_box()
const {
121 nassertr(_id !=
nullptr,
OdeBoxGeom(
nullptr));
122 nassertr(get_class() == GC_box,
OdeBoxGeom(
nullptr));
127 convert_to_capped_cylinder()
const {
143 convert_to_cylinder()
const {
159 convert_to_plane()
const {
161 nassertr(get_class() == GC_plane,
OdePlaneGeom(
nullptr));
166 convert_to_ray()
const {
167 nassertr(_id !=
nullptr,
OdeRayGeom(
nullptr));
168 nassertr(get_class() == GC_ray,
OdeRayGeom(
nullptr));
173 convert_to_sphere()
const {
180 convert_to_tri_mesh()
const {
187 convert_to_simple_space()
const {
189 nassertr(get_class() == GC_simple_space,
OdeSimpleSpace(
nullptr));
194 convert_to_hash_space()
const {
196 nassertr(get_class() == GC_hash_space,
OdeHashSpace(
nullptr));
201 convert_to_quad_tree_space()
const {
208 operator bool ()
const {
209 return (_id !=
nullptr);