Subject: CGAL users discussion list
List archive
- 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)<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/
- [cgal-discuss] Error when building CGAL4.0.2 + demo + examples (64 bit version), tang, 10/02/2012
- Re: [cgal-discuss] Error when building CGAL4.0.2 + demo + examples (64 bit version), Laurent Rineau (CGAL/GeometryFactory), 10/02/2012
- [cgal-discuss] Re: Error when building CGAL4.0.2 + demo + examples (64 bit version), tang, 10/02/2012
- [cgal-discuss] Surface mesh simplification, Laurent Rineau (CGAL/GeometryFactory), 10/02/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/02/2012
- Re: [cgal-discuss] Re: Surface mesh simplification, Sebastien Loriot (GeometryFactory), 10/02/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/02/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/03/2012
- Re: [cgal-discuss] Re: Surface mesh simplification, Laurent Rineau (CGAL/GeometryFactory), 10/03/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/03/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/03/2012
- Re: [cgal-discuss] Re: Surface mesh simplification, Philipp Moeller, 10/03/2012
- Re: [cgal-discuss] Re: Surface mesh simplification, Guillaume Damiand, 10/03/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/04/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/02/2012
- Re: [cgal-discuss] Re: Surface mesh simplification, Sebastien Loriot (GeometryFactory), 10/02/2012
- [cgal-discuss] Re: Surface mesh simplification, tang, 10/02/2012
- [cgal-discuss] Surface mesh simplification, Laurent Rineau (CGAL/GeometryFactory), 10/02/2012
- [cgal-discuss] Re: Error when building CGAL4.0.2 + demo + examples (64 bit version), tang, 10/02/2012
- Re: [cgal-discuss] Error when building CGAL4.0.2 + demo + examples (64 bit version), Laurent Rineau (CGAL/GeometryFactory), 10/02/2012
Archive powered by MHonArc 2.6.18.