Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulate Polyhedron (not point-set)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulate Polyhedron (not point-set)


Chronological Thread 
  • From: crobar <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulate Polyhedron (not point-set)
  • Date: Sat, 13 Sep 2014 08:49:16 -0700 (PDT)

Jeffrey Bush wrote
> If you are using any kernel whose FT supports std:sqrt (like double or
> maybe EPIC) then just include &lt;CGAL/triangulate_polyhedron.h&gt; and
> call CGAL::triangulate_polyhedron(my_polyhedron).
>
> If you are using any other kernel, you will have to include
> &lt;CGAL/internal/Operations_on_polyhedra/compute_normal.h&gt; and define
> a specialization of the following template function:
>
> template
> <class Facet, class Kernel>
> typename Kernel::Vector_3 compute_facet_normal(const Facet& f);
>
> for your Polyhedron::Facet and Polyhedron::Traits types. You could copy
> the definition of the original (available at
> http://fossies.org/dox/CGAL-4.4/include_2CGAL_2internal_2Operations__on__polyhedra_2compute__normal_8h_source.html
> or in your own source) and replace the std::sqrt with something else (like
> Kernel::FT(CGAL::sqrt(CGAL::to_double(n*n))).
>
> After you have created a specialization of the compute_facet_normal
> function you can include and use the triangulate_polyhedron function as
> normal.

Thanks, I appreciate the help.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Triangulate-Polyhedron-not-point-set-tp4659203p4659836.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page