Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Linear Cell complex: Spliting an segment by inserting a point

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Linear Cell complex: Spliting an segment by inserting a point


Chronological Thread 
  • From: Guillaume Damiand <>
  • To:
  • Subject: Re: [cgal-discuss] Linear Cell complex: Spliting an segment by inserting a point
  • Date: Mon, 02 Mar 2015 08:55:53 +0100

Le 02/03/2015 08:03, Pranav a écrit :
Hi,

I am using Linear cell complex(LCC) to represent my piecewise linear
complex. Now I want to insert a point inside a segment of LCC and split it
into 2 individual sub-segments. I found one undocumented function
/add_vertex()/ in Linear_cell_complex_incremental_builder.h.

I would like to know whether I can use /add_vertex()/ function directly
without worrying about if it will ensure splitting of an existing segment if
the inserted point happens to be lying inside it?





You need to use the insert_point_in_cell<1> function


http://doc.cgal.org/latest/Linear_cell_complex/classCGAL_1_1Linear__cell__complex.html#a007ad7f303e6d4d3de6b172478d2371e


And yes, you can add a point in an edge even if the three points are not aligned.






--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Linear-Cell-complex-Spliting-an-segment-by-inserting-a-point-tp4660541.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