Skip to content

Commit

Permalink
+ write out material information for x3d format
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 13, 2015
1 parent 192a32d commit e551c4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Mesh/App/Core/MeshIO.cpp
Expand Up @@ -2030,6 +2030,8 @@ bool MeshOutput::SaveX3D (std::ostream &out) const
out << " <Transform>" << std::endl;
}
out << " <Shape>" << std::endl;
out << " <Appearance><Material DEF='Shape_Mat' diffuseColor='0.65 0.65 0.65'"
" shininess='0.9' specularColor='1 1 1'></Material></Appearance>" << std::endl;

out << " <IndexedFaceSet solid=\"false\" coordIndex=\"";
for (MeshFacetArray::_TConstIterator it = fts.begin(); it != fts.end(); ++it) {
Expand Down

0 comments on commit e551c4e

Please sign in to comment.