Subject: CGAL users discussion list
List archive
- From: tang <>
- To:
- Subject: [cgal-discuss] Re: CGAL bug report
- Date: Tue, 2 Jul 2013 03:20:47 -0700 (PDT)
Dear Sebastien,
The program still crash after I used the mesh simplification package to
remove short edges as you suggested:
Polyhedron obj;
std::ifstream stream("aa1.off");
stream >> obj;
// edges will be removed until there is at most one edge
// shorter than this:
double minimum_edge_length = edgelengthmin*edgelengthmin; //
squared
Cost_stop_predicate<Polyhedron> stop(minimum_edge_length);
int r = SMS::edge_collapse(obj, stop,
CGAL::vertex_index_map(boost::get(CGAL::vertex_external_index, obj))
.edge_index_map(boost::get(CGAL::edge_external_index,obj))
.get_cost(SMS::Edge_length_cost<Polyhedron>())
.get_placement(SMS::Midpoint_placement<Polyhedron>())
);
std::ofstream log("aa2.off");
log << obj;
Could you please help me to take a look at it?
Thanks,
Zhanghong Tang
CGAL error: assertion violation!
Expression : is_primary_edge(aEdge)
File :
E:\Users\tang\CGAL4.2\CGAL/Surface_mesh_simplification/Detail/Edge_collapse.h
Line : 226
Explanation:
Refer to the bug-reporting instructions at
http://www.cgal.org/bug_report.html
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-bug-report-tp4657724p4657750.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- Re: [cgal-discuss] CGAL bug report, Sebastien Loriot (GeometryFactory), 07/02/2013
- [cgal-discuss] Re: CGAL bug report, tang, 07/02/2013
- [cgal-discuss] Re: CGAL bug report, tang, 07/02/2013
- Re: [cgal-discuss] Re: CGAL bug report, Sebastien Loriot (GeometryFactory), 07/02/2013
- [cgal-discuss] Re: CGAL bug report, tang, 07/02/2013
- [cgal-discuss] Re: CGAL bug report, tang, 07/02/2013
- [cgal-discuss] Re: CGAL bug report, tang, 07/02/2013
- Re: [cgal-discuss] Re: CGAL bug report, Sebastien Loriot (GeometryFactory), 07/02/2013
Archive powered by MHonArc 2.6.18.