Skip to Content.
Sympa Menu

cgal-discuss - Nef_polyhedron: cannot convert to an enriched polyhedron

Subject: CGAL users discussion list

List archive

Nef_polyhedron: cannot convert to an enriched polyhedron


Chronological Thread 
  • From: "Mengda Wu" <>
  • To:
  • Subject: Nef_polyhedron: cannot convert to an enriched polyhedron
  • Date: Mon, 7 Apr 2008 00:43:45 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=hVql1VI09zaCTGBf336Hom7x/voLA/l0VOmLPExyZpJEUzSqI2SNqzaootywQ8nExKZq2+JCC6rDSyHHOE6NTAPU2YjTKQmkZK0nTeWvNiC3hqa1bfEnznnUUolztY3/G9uVxg2AqhOxmhSPjdntf7T6dx4kC0SQtv5lheyBGvk=

Hi Peter,

  Thanks a lot for your explanations. I am testing the results.

  But I have an side problem because of which I cannot try the union operation.
I am using an enriched polyhedron, which enriches the contents of vertices,
halfedges, and facets in the polyhedron (see attach). But I cannot compile when
I try to use convert_to_Polyhedron function.

error C2664: 'CGAL::Nef_polyhedron_3<Kernel_>::convert_to_Polyhedron' : cannot convert parameter 1 from 'MyCGALprogram::Enriched_Polyhedron' to 'CGAL::Polyhedron_3<PolyhedronTraits_3> &

It seems that the Nef_polyhedron_3
has been hardcoded to use the CGAL::Polyhedron_3. Is there a way to get around of this?

Thanks,
Mengda

2008/4/5, Peter Hachenberger <>:
Hi Mengda,

in the latest CGAL version the Nef polyhedra are getting triangulated if
you convert them to polyhedral surfaces. If you want that conversion
anyway to put the resulting polyhedron out as an off file in the end,
then there should only be one problem. Not every Nef polyhedron can be
converted to a polyhedral surface. Look into the user manual for details
on that.

Peter


On Sat, 2008-04-05 at 14:59 -0700, Mengda Wu wrote:
> Hi there,
>
>    I have two polyhedra which are triangular, manifold, and have one
> overlap region. I am wondering whether
> I can get a polyhedron which is union of the two, also triangular and
> manifold through Nef_polyhedron union operation.
> How can I ensure the faces near the joint are triangular?
>
> Thanks,
> Mengda


--
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