Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/lwo/Converter.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/lwo/Converter.cpp
r11517 r13041 117 117 j->compute_vertex_remapping(0, remappings[0]); 118 118 119 // compute remapping maps for other surfaces 119 // compute remapping maps for other surfaces 120 120 for (Object::Surface_map::const_iterator h=obj.surfaces().begin(); h!=obj.surfaces().end(); ++h) { 121 121 j->compute_vertex_remapping(&h->second, remappings[&h->second]); … … 171 171 172 172 // clean up points and normals according to remapping map 173 OSG_DEBUG << "DEBUG INFO: lwosg::Converter: \tcleaning up redundant vertices and vertex attributes for surface '" << (surface ? surface->get_name() : std::string("anonymous")) << "'\n"; 173 OSG_DEBUG << "DEBUG INFO: lwosg::Converter: \tcleaning up redundant vertices and vertex attributes for surface '" << (surface ? surface->get_name() : std::string("anonymous")) << "'\n"; 174 174 osg::ref_ptr<osg::Vec3Array> new_points = new osg::Vec3Array; 175 175 osg::ref_ptr<osg::Vec3Array> new_normals = new osg::Vec3Array; … … 180 180 } 181 181 } 182 182 183 183 OSG_DEBUG << "DEBUG INFO: lwosg::Converter: \tcreating geometry for surface '" << (surface ? surface->get_name() : std::string("anonymous")) << "'\n"; 184 184 … … 186 186 geo->setVertexArray(new_points.get()); 187 187 geo->setNormalArray(new_normals.get()); 188 geo->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); 188 geo->setNormalBinding(osg::Geometry::BIND_PER_VERTEX); 189 189 190 190 bool group_used = false; … … 209 209 options_.texturemap_bindings, 210 210 db_options_.get()); 211 if (sgrp) 211 if (sgrp) 212 212 { 213 213 group_used = true;
