Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Error when add constraint in 2D Triangulation
- Date: Thu, 06 Mar 2014 21:43:46 +0100
- Organization: GeometryFactory
I can't read the binary file.
Could you provide the input in an ASCII file?
Thanks,
Sebastien.
On 03/06/2014 04:21 PM, devcrio wrote:
Hi. Can anyone help me? I have some 2D Triangulation and I want to insert
constraint into it. I get such error:
CGAL error: assertion violation!
Expression : hcl != NULL
File : c:\program files\cgal-4.3\include\cgal\constraint_hierarchy_2.h
Line : 609
Explanation:
Refer to the bug-reporting instructions at
http://www.cgal.org/bug_report.html
Here is the part of code:
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
// class Itag = Exact_predicates_tag
typedef CGAL::Constrained_Delaunay_triangulation_2<Gt> CDT;
typedef CGAL::Constrained_triangulation_plus_2<CDT> CDTPlus;
typedef K::Point_3 Point;
void Load(const char* filename)
{
CDTPlus cdt;
std::filebuf fb;
fb.open(filename, std::ios::in);
std::istream is(&fb);
is >> cdt;
// Point "a" and "b" already exist in triangulation
Point a = Point(3856.42938, 14057.42665, 0);
Point b = Point(3849.37149, 14029.46068, 0);
cdt.insert_constraint(a, b); // error
}
I don't have such behaviour when I use other points.
my file what I have used
<https://drive.google.com/file/d/0B341Tofyaa05YmlORF9TMzVkSVk/edit?usp=sharing>
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Error-when-add-constraint-in-2D-Triangulation-tp4658916.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Error when add constraint in 2D Triangulation, devcrio, 03/06/2014
- Re: [cgal-discuss] Error when add constraint in 2D Triangulation, Sebastien Loriot (GeometryFactory), 03/06/2014
- Re: [cgal-discuss] Error when add constraint in 2D Triangulation, devcrio, 03/13/2014
- Re: [cgal-discuss] Error when add constraint in 2D Triangulation, Sebastien Loriot (GeometryFactory), 03/06/2014
Archive powered by MHonArc 2.6.18.