29 return (_tmap.count(polygon_index) != 0);
38 TMap::const_iterator ti;
39 ti = _tmap.find(polygon_index);
40 if (ti != _tmap.end()) {
60 int polygon_index = lin->
get_vx();
63 bool inserted = _tmap.insert(TMap::value_type(polygon_index, tag)).second;
65 nout <<
"Duplicate index " << polygon_index <<
" in map.\n";
76 write(std::ostream &out,
int indent_level)
const {
78 <<
get_id() <<
" { tag_type = " << _tag_type <<
", " 79 << _tmap.size() <<
" values }\n";
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
TypeHandle is the identifier used to differentiate C++ class types.
IffId get_id() const
Returns the ID associated with this chunk.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.