Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] [Bug] Polyhedron_traits_with_normals_3
  • Date: Thu, 08 Jul 2010 10:57:27 +0200

Mohamed Yousef wrote:
suppose we want to define a Polyhedron that has the plane support , depending on Polyhedron_traits_with_
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;

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
In which context? the kernel is still available using Polyhedron::Traits::Kernel.


Please provide a minimal example that highlighting your problem. If We
cannot reproduce a bug it is hard to correct.



On 8 July 2010 10:08, Sebastien Loriot (GeometryFactory) <sloriot.ml <http://sloriot.ml>@gmail.com <http://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> <http://sloriot.ml>@gmail.com
<http://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






Archive powered by MHonArc 2.6.16.

Top of Page