Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1e64537847
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (33 sloc) 0.786 kb
class DAEFile
{
public:
DAEFile() { };
void load(const std::string& path)
{
bool loadOkay = doc_.LoadFile(path.c_str());
if (loadOkay)
{
std::clog << "file loaded" << std::endl;
}
else
{
std::clog << "Failed to load file" << std::endl;
}
}
Geometry::GeometryList geometries()
{
if (geometries_.empty())
{
TiXmlElement* element = doc_.RootElement()->FirstChild("library_geometries")->ToElement();
for(TiXmlNode* child = element->FirstChild(); child != 0; child = child->NextSibling())
{
Geometry geometry(child->ToElement());
geometries_.push_back(geometry);
}
}
return geometries_;
}
private:
TiXmlDocument doc_;
Geometry::GeometryList geometries_;
};
Jump to Line
Something went wrong with that request. Please try again.