Subject: CGAL users discussion list
List archive
- From: KHartmann <>
- To:
- Subject: [cgal-discuss] How do I get simple arc information when using conic traits?
- Date: Thu, 5 Jan 2017 13:12:45 -0800 (PST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:DgVjYx/TYowspf9uRHKM819IXTAuvvDOBiVQ1KB+2+8cTK2v8tzYMVDF4r011RmSDNmdsqMP0bCe8/i5HzdfsdDZ6DFKWacPfiFGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJDD7+rS8uL14z3jLjqus6bXwIdjzW0ZfZ+LQ69sB7KnsgQm4prbKgrmTXTpX4dWMRf339tLFSV10L/5s6q4Jtq9SJ4svkksclaXvOpLOwDUbVEAWF/YCgO78rxuEyYFVOC
If I am using CGAL::Gps_circle_segment_traits_2<Kernel>,
I can get the arc center points and
the arc orientations for any X_monotone_curve_2 with the code
shown below:
Gen_Polygon_2::Curve_const_iterator curveIter;
for (curveIter = poly.curves_begin();
curveIter != poly.curves_end();
curveIter++)
{
const X_monotone_curve_2& curve = (*curveIter);
if (curve.is_circular())
{
double arc_center_x =
CGAL::to_double( curve.supporting_circle().center().x() );
double arc_center_y =
CGAL::to_double( curve.supporting_circle().center().y() );
bool clockWise =
curve.orientation() == CGAL::CLOCKWISE
}
}
But how would I do the same, if I am using
CGAL::Arr_conic_traits_2<Rat_kernel, Alg_kernel, Nt_traits>?
I don't have "is_circular" or "supporting_circle" available to me
when I am using conic_traits.
I am stuck using conic_traits, since that is what CGAL::offset_polygon_2
uses.
Even though CGAL::offset_polygon_2 always returns line segments and circular
arcs.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-do-I-get-simple-arc-information-when-using-conic-traits-tp4662448.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] How do I get simple arc information when using conic traits?, KHartmann, 01/05/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, Efi Fogel, 01/08/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, Efi Fogel, 01/09/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, KHartmann, 01/09/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, Efi Fogel, 01/10/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, KHartmann, 01/10/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, Efi Fogel, 01/10/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, KHartmann, 01/09/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, Efi Fogel, 01/09/2017
- Re: [cgal-discuss] How do I get simple arc information when using conic traits?, Efi Fogel, 01/08/2017
Archive powered by MHonArc 2.6.18.