Subject: CGAL users discussion list
List archive
[cgal-discuss] BUG: VRML 2 stream with tetrahedrons: keyword "point" is duplicated
Chronological Thread
- From: "Lehtonen, Matti/HIIT" <>
- To:
- Subject: [cgal-discuss] BUG: VRML 2 stream with tetrahedrons: keyword "point" is duplicated
- Date: Tue, 18 May 2010 17:49:20 +0300
Hi!
Sorry, if this is a duplicate announce of bug:
FILE:
// $URL:
svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Inventor/include/CGAL/IO/VRML_2_ostream.h
$
// $Id: VRML_2_ostream.h 47017 2008-11-25 10:24:36Z afabri $
Package: 3.5.1-1 (Ubuntu 10.4)
Summary: In function template <class R > VRML_2_ostream&
operator<<(VRML_2_ostream& os, const Tetrahedron_3<R > &t) string "point ["
is
twice print to stream.
Quick fix:
I managed import model to Blender, when I commented following way:
template <class R >
VRML_2_ostream&
operator<<(VRML_2_ostream& os,
const Tetrahedron_3<R > &t)
{
const char *Indent = " ";
os << " Group {\n"
" children [\n"
" Shape {\n"
" appearance\n"
" Appearance {\n"
" material USE Material\n"
" } #Appearance\n"
" geometry\n"
" IndexedFaceSet {\n"
" coord Coordinate {\n"
" point [ \n"
//<< Indent << "point [\n"
//<< Indent << " "
<< CGAL::to_double(t[0].x()) << " "
<< CGAL::to_double(t[0].y()) << " "
<< CGAL::to_double(t[0].z()) << " ,\n"
//<< Indent << " "
<< CGAL::to_double(t[1].x()) << " "
<< CGAL::to_double(t[1].y()) << " "
<< CGAL::to_double(t[1].z()) << " ,\n"
//<< Indent << " "
<< CGAL::to_double(t[2].x()) << " "
<< CGAL::to_double(t[2].y()) << " "
<< CGAL::to_double(t[2].z()) << " ,\n"
//<< Indent << " "
<< CGAL::to_double(t[3].x()) << " "
<< CGAL::to_double(t[3].y()) << " "
<< CGAL::to_double(t[3].z()) << " " //" ]"
"\n ]\n"
" }\n"
" solid FALSE\n"
<< Indent << "coordIndex [ 0,1,2,-1, 1,3,2,-1,\n"
<< Indent << " 0,2,3,-1, 0,3,1,-1 ]\n"
" } #IndexedFaceSet\n"
" } #Shape\n"
" ] #children\n"
" } #Group\n";
return os;
}
Lehtonen, Matti
Researcher, head programmer - Helsinki Institute for Information Technology
HIIT
http://www.hiit.fi/
--
Life is complex. It has real and imaginary parts.
- [cgal-discuss] BUG: VRML 2 stream with tetrahedrons: keyword "point" is duplicated, Lehtonen, Matti/HIIT, 05/18/2010
- Re: [cgal-discuss] BUG: VRML 2 stream with tetrahedrons: keyword "point" is duplicated, Joachim Reichel, 05/21/2010
Archive powered by MHonArc 2.6.16.