Subject: CGAL users discussion list
List archive
- From: antoineL <>
- To:
- Subject: [cgal-discuss] MyPolyhedron_items_with_id_3 and the plane() function
- Date: Thu, 31 Jan 2019 09:46:44 -0600 (CST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:hibVLhCZPP1NcQZYVQsLUyQJP3N1i/DPJgcQr6AfoPdwSPv5p8bcNUDSrc9gkEXOFd2Cra4c26yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJOT43/n/UhMJtg61UvB2vqgdjw4PWfI2ZKOZycr/Dcd4cWGFPXtxRVytEAo6kdYQPCfYBPeFZr4n7uVQAqwa1CA62C+Pp1j9IgX723ask3Og7FQHJxhIgEMwIsHvOqtX1KLwfUeG6zKnO1znDYelW1C775YPVfB4hpvSMUqhxccrX0UQvERnKgU6LpozhITyZzPgCs2+e7+dmSOmhiHYnphlsrjWrwsogkIfEi4EPxl3H9Ch12oc4KNy+RUVme9CrCoFQuDufN4ZuQsMtXWVouCEix70AtpO3Zi4Kx448yBHEb/yIbZKE7Q7kVOaUOTt4hXRld6yjhxuq7EStzunxWtO63VtJtCZIkdjBumoM2hHS8sSHT+Fy/kal2TaBzQDT7eRELFgumqrdN54hxb8wlpwNvkjZGi/5glv2g7GQdko+/Oio9//qYrTppp+aLYN0hBv+Prw0msOjGeQ4LhQOX2+D9Oug273s50n5TKxXgf03ianWrI3aJd8ApqOiGA9U0oMj6w6lADu80dQYm2MHLFNfdx6dgYjpIQKGHPetBvi2hxGgkSxg2uvdFrznGJTEaHbZw5n7erMo4khAzws1wPQXs5tSFrYAJv+1XkbvudrRCAMRMgOyhej9XoYunrgCUH6CV/fKeJjZtkWFs7p2cru8IbQNsTO4EMALovvnjHs3g1gYLfuo0p1RZmrqRa06cXXcWmLlh5I6KUlPphA3HL7rh1vEXyQBPy/vDZJ53SkyDcedNamGRo2ph+XcjiHnWJtfbGpCBxaHFnK6Log=
Hello,
I'm trying to use MyPolyhedron_items_with_id_3 and the plane() function.
Here the code :
class MyPolyhedron_items_with_id_3 {
public:
template < class Refs, class Traits>
struct Vertex_wrapper {
typedef typename Traits::Point_3 Point;
typedef CGAL::HalfedgeDS_vertex_max_base_with_id< Refs,
Point,std::size_t> Vertex;
};
template < class Refs, class Traits>
struct Halfedge_wrapper {
typedef CGAL::HalfedgeDS_halfedge_max_base_with_id<Refs,
std::size_t> Halfedge;
};
template < class Refs, class Traits>
struct Face_wrapper {
typedef CGAL::HalfedgeDS_face_max_base_with_id< Refs,
CGAL::Tag_true, std::size_t> Face;
};
};
typedef CGAL::Exact_predicates_exact_constructions_kernel
KE;
typedef CGAL::Polyhedron_3<KE,MyPolyhedron_items_with_id_3>
CgalPolyhedron;
typedef CgalPolyhedron::Halfedge_iterator
Halfedge_iterator;
typedef CgalPolyhedron::Traits::Vector_3
Vector3;
int main(int argc, char**argv)
{
CgalPolyhedron polyhedron;
for (Halfedge_iterator hit = polyhedron.halfedges_begin(); hit !=
polyhedron.halfedges_end(); ++hit)
{
Vector3 normal1 = hit->face()->plane().orthogonal_vector();
}
}
I've got the compilation error : "No member named 'orthogonal_vector' in
'CGAL::Boolean_tag<true>'"
Any idea ?
Thanks
Antoine
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] MyPolyhedron_items_with_id_3 and the plane() function, antoineL, 01/31/2019
Archive powered by MHonArc 2.6.18.