Subject: CGAL users discussion list
List archive
- From: sg <>
- To:
- Subject: [cgal-discuss] const_handle to non_const_handle
- Date: Sun, 20 Nov 2016 13:11:40 -0800 (PST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:naM8zxAaSQv+wAxmHTmgUyQJP3N1i/DPJgcQr6AfoPdwSPvzpMbcNUDSrc9gkEXOFd2CrakV0KyM6eu5BTdIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZb1/IA+ooQnPucUanIRvJ6gswRbVv3VEfPhby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnDUBCA5mAAXWUMkxpHGBbK4RfnVZrsqCT6t+592C6HPc3qSL0/RDqv47t3RBLulSwIMCI0/W/Wh8F0la5XvQ6trAF7z4PafI2ZKP9yc6XAdt0YWGVBRN5cWSJBDI2ibIUBEuUOMvpXoYTmu1sDrwGzCRWwCO/z1DNFgGL9060g0+QmFAHLxBcgH90Tu3nTsdX1O7keXfyowKTG0DnPc+9a1Dn85YXTcxAhoO2MXbBqfcXL1UYjDQLFjlOJpIHjIjib2OMNs22B4OphU+Kik2gnpBtqrTe0wscjlJPFiZ4SylDB8yhy3YU7JcWgRUJmYNOoDoFcuz+aOoZ4WM8uXm9ltSggxrAJt5O3ZDUGxZU5yxLFdfCKc4aF7gj+WOufLzp0nnJodbC5ih2v60av0Pf8WdOx0FtSripKjN3MtncV2hzW5MmHTeF9/kS71TaJzQ/c8fpLIUQqmqbBN5EhxbswmoISsUTFACD2hF37gLKXe0k64OSk9eTqb7v8qpOBOYJ5hBvyP6sgl8CnBOQ3KAkOX2yV+eSm073j+FX0QKhFjvEojqXVrZ7XKdkHqqKlDQJY050u6xe+Dze60tQUh2MII05fdBKGiYjlI0vOL+zgDfejn1Ssly9myOzJPrL7BpXBN2XMkLb6fblh9k5c0xEzwMtE55NUD7EBOOj8VlXwtNzeFB85Mha7z/zpCNVnhcsiXjeEDaadda/TqlSV/fkHIu+WZYZTtiyuBeIi4qv1gjdthFBHJfDyhMNPMy6QH/V6IQOQajzthIFSQi8xogMiQbmz2xW5WjlJaiPpB/ox
I am implementing some code in CGAL. I made an arrangement. Now I want to add
some data to every face in arrangement. So i access a face by below method.
It return const handle. So i try to convert this to non_const_handle. But it
show error that " cannot call member function without object."
const Face_const_handle* f;
if(f = boost::get<Face_const_handle>(&(it->second))){
Arrangement_2::Face_handle fh = Arrangement_2::non_const_handle(*f);
// ERROR HERE
for(int i=1;i<convexPts.size();i++){
CGAL::Gmpq temp =
CGAL::squared_distance(convexPts[0],convexPts[i]);
if(temp>max){
max = temp;
fh->set_data(max);
}
}
}
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/const-handle-to-non-const-handle-tp4662374.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] const_handle to non_const_handle, sg, 11/20/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Andreas Fabri, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, sg, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Andreas Fabri, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, sg, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Andreas Fabri, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Efi Fogel, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Andreas Fabri, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, sg, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Andreas Fabri, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, sg, 11/21/2016
- Re: [cgal-discuss] const_handle to non_const_handle, Andreas Fabri, 11/21/2016
Archive powered by MHonArc 2.6.18.