Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Surface mesh simplification

Subject: CGAL users discussion list

List archive

[cgal-discuss] Surface mesh simplification


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: [cgal-discuss] Surface mesh simplification
  • Date: Tue, 02 Oct 2012 12:36:36 +0200
  • Organization: GeometryFactory

Le mardi 02 octobre 2012 03:21:59 tang a écrit :
> Dear Dr. Rineau,
>
> Thank you very much for your so quick reply. I have rebuilt the first two
> project without any anti-virus running, still the same problem, it seems to
> be the bugs of MSVC too.
>
> Could you please give me some hints on how to simplify mesh by some given
> rules?
> For example:
> 1) area(triangle)<DEPS; or
> 2) length(edge)&lt;EPS

To implement the second criterion, you can use the package "Triangulated
Surface Mesh Simplification" with the Edge_lenght as cost. For the first
criterion, I do not think there is something ready for that in CGAL.


> Polyhedron *obj=(Polyhedron *)object->obj;
> std::ofstream log(filename);
> std::streambuf * oldbuf = std::cout.rdbuf(log.rdbuf());
>
> std::cout << *obj;
> std::cout.rdbuf( oldbuf);

Note that, to output the polyhedron to the file "filename", you could have
used the "log" stream directly:

log << obj;

instead of manipulating the cout.rdbuf().

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/




Archive powered by MHonArc 2.6.18.

Top of Page