Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Representing a cube as Linear cell complex

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Representing a cube as Linear cell complex


Chronological Thread 
  • From: Guillaume Damiand <>
  • To:
  • Subject: Re: [cgal-discuss] Representing a cube as Linear cell complex
  • Date: Wed, 18 Feb 2015 08:40:32 +0100

Hi,

Le 17/02/2015 12:10, Pranav a écrit :
Hi,

I want to represent a cube(given as collection of points and triangle faces)
in Linear cell complex form. I made a small example code
<https://gist.github.com/pranavkantgaur/54ec0c019422a5377d35#file-cubelcc-cpp>
for this purpose. I noticed that there are duplicate segments and points in
the linear cell representation as can be seen in the output messages.

I would like to know how to avoid such duplication?

In your code, you create isolated triangles.
You need to glue them along shared edges by using sew<2>(d1,d2) method (with the "correct" pair of darts d1,d2).
Guillaume







--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Representing-a-cube-as-Linear-cell-complex-tp4660454.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
===================================================================
Guillaume DAMIAND

CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.14.34 Fax: +33 (0)4.72.43.15.36
Mail:

Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================


Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.18.

Top of Page