Subject: CGAL users discussion list
List archive
- From: Mohamed Yousef <>
- To:
- Subject: Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3
- Date: Thu, 8 Jul 2010 11:46:40 +0300
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=V+JY2j0UvUeCOtlntf61aY89GC7VUic7ZsLZwHQyaBMJQHAOqectKibw56TOd03FaP WYPndVk13NOoAZS471gBkvM8bipCcMv0b1PIwnb7uXTJQslfyw0G5rQUs86IKrllalOE Pq1cgPU4+Hi/RxE5xiBfB0lxAIGeQRKpJsmSg=
suppose we want to define a Polyhedron that has the plane support , depending on Polyhedron_traits_with_
and then use Polyhedron normally , the problem is our Polyhedron now lacks many things already been in Kernel (in fact everything but Point_3 and Plane_3 ) this hindered me and i found the solution used elsewhere in cgal is to inherit the specilizing kernel , thus you are adding to it
normals_3 as traits , we would do
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Polyhedron_traits_with_normals_3<Kernel> Traits;
typedef CGAL::Polyhedron_3<Traits> Polyhedron;
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Polyhedron_traits_with_normals_3<Kernel> Traits;
typedef CGAL::Polyhedron_3<Traits> Polyhedron;
and then use Polyhedron normally , the problem is our Polyhedron now lacks many things already been in Kernel (in fact everything but Point_3 and Plane_3 ) this hindered me and i found the solution used elsewhere in cgal is to inherit the specilizing kernel , thus you are adding to it
On 8 July 2010 10:08, Sebastien Loriot (GeometryFactory) <sloriot.ml@gmail.com> wrote:
Sorry but I still don't get your point.
The activation of the plane support is done within a class model of PolyhedronItems_3.
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron_ref/Concept_PolyhedronItems_3.html#Cross_link_anchor_1096
Can you please state clearly what you would like to do.
S.
Mohamed Yousef wrote:
simply if you want to use it as usual to extend a kernel by adding plane support , you will lack all additional things the kernel provides
the way for this to go (done in other traits , every where in cgal ) is to inherit from specializing kernel , thus you have your kernel with additional support of plane
Regards,
Mohamed Yousef
On 8 July 2010 08:52, Sebastien Loriot (GeometryFactory) <sloriot.ml <http://sloriot.ml>@gmail.com <http://gmail.com>> wrote:
Mohamed Yousef wrote:
Hello,
i think the class "Polyhedron_traits_with_normals_3" should
inherit from Kernel_
Thanks,
Reading the documentation I see no reason why it should.
The concept PolyhedronTraits_3 is quite simple and
Polyhedron_traits_with_normals_3 seems to be a model of it.
What leads you to think there is a bug?
S.
-- You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/07/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/13/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/13/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Mohamed Yousef, 07/08/2010
- Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3, Sebastien Loriot (GeometryFactory), 07/08/2010
Archive powered by MHonArc 2.6.16.