如何将2D CDT设置为严格拦截?
我正在从没有截距可以拦截的约束的约束中更改2D CDT地形。
我更改为:
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Constrained_Delaunay_triangulation_2<K> CDT;
到
typedef CGAL::Exact_predicates_exact_constructions_kernel EK;
typedef CGAL::Constrained_Delaunay_triangulation_2<EK,TDS,Itag> CDT;
typedef CGAL::Constrained_triangulation_plus_2<CDT> CDTP;
全部:
typedef typedef CDT::<...>
到
typedef CDTP::<...>
当我使用类点来获取一个点的坐标时:
bool operator()(const Point & p1, const Point & p2) const
{
double x = p1.x(); //<--- Error on this line
...
}
编译器发出错误:
没有CGAL :: lazy_exact_ntboost :: multeprecision :: mpq_rational to to cgal :: lazy_exact_ntboost :: lazy_exact_ntboost :: Double
我在此问题上进行了研究,但没有成功解决此错误。 谁能告诉我如何解决?
提前致谢
I´m changing a 2D CDT terrain from constraints that don´t intercept to constraints that can intercept.
I changed:
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Constrained_Delaunay_triangulation_2<K> CDT;
to
typedef CGAL::Exact_predicates_exact_constructions_kernel EK;
typedef CGAL::Constrained_Delaunay_triangulation_2<EK,TDS,Itag> CDT;
typedef CGAL::Constrained_triangulation_plus_2<CDT> CDTP;
and all:
typedef typedef CDT::<...>
to
typedef CDTP::<...>
When I use the class Point to get the coordinates of a point for example:
bool operator()(const Point & p1, const Point & p2) const
{
double x = p1.x(); //<--- Error on this line
...
}
The compiler is issuing the error:
there is no convertion from CGAL::Lazy_exact_ntboost::multiprecision::mpq_rational to double
I did a reserch on this issue but had no success to fix this error.
Can anyone tell me how to fix it?
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ITAG
是控制代码行为的参数,如果约束正在相交(请参阅 doc )。因此,如果您使用Epick没有交叉点的工作代码,则将ITAG
更改为Exact_predicates_tag
是唯一需要的更改。Itag
is the parameter that is controlling the behavior of the code if constraints are intersecting (see the doc). So if you have a working code without intersection using EPICK, changingItag
toExact_predicates_tag
is the only change needed.