Subject: CGAL users discussion list
List archive
[cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?
Chronological Thread
- From: Graviton <>
- To:
- Subject: [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?
- Date: Fri, 11 Nov 2011 17:05:14 -0800 (PST)
If you create your arrangement with piece-wise construction (e.g.
inserting individual curves, possibly with the helpers that let you
accelerate) the observer will get called when you add a segment that
creates a face.
This is the route that I'm going to do my arrangement, but I don't really know how to utilize the observer to insert the face information whenever a face is created.
Any ideas?
On Sat, Nov 12, 2011 at 12:59 AM, Ben Supnik [via cgal-discuss] <[hidden email]> wrote:
Hi,
> The observer is used to construct the first 2 arrangements.>> I can't quite see how the observer can keep track of the originalRight - if your arrangement isn't _already_ tagged on a per face basis,
>> face, as
>> when the time when I input the arrangement, I don't input in the original
>> face information. Mind to be more explicit about it?
there's nothing you can do. If it is tagged, the overlay traits make
tracking easy, because the overlay gets a call for every face, and its
inputs are the two faces in the two original arrangements that cover
this face. (And by definition of the overlay, each overlay face is
small enough that it will overlap exactly one face in each of the source
arrangements.)
So the real question is how to capture face information when you
construct your original arrangement.
If you create your arrangement with piece-wise construction (e.g.
inserting individual curves, possibly with the helpers that let you
accelerate) the observer will get called when you add a segment that
creates a face.
If you create your arrangement by inserting a whole pile of curves at
once then the observer won't help - in that case you have to somehow
recover the polygon information in some other way. I do this by tagging
data on my curve type - this lets me look at a face and pull meta data
out of its boundary. Note that in this case (inserting lots of curves)
if your data is junk the set of faces you get out might be surprising,
e.g. if there were intersecting curves. I use different algorithms to
interpret the curve data depending on how I want to cope with bogus input.
Whether bulk insert or piece-wise construction is fastest is pretty
dependent on your data.
cheers
ben
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
http://cgal-discuss.949826.n4.nabble.com/Identify-each-face-in-an-Arrangement-if-the-input-is-a-polygonal-mesh-tp3989865p4031941.htmlIf you reply to this email, your message will be added to the discussion below:To unsubscribe from Identify each face in an Arrangement if the input is a polygonal mesh?, click here.
See how NAML generates this email
View this message in context: Re: Identify each face in an Arrangement if the input is a polygonal mesh?
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Identify each face in an Arrangement if the input is a polygonal mesh?, Graviton, 11/04/2011
- Re: [cgal-discuss] Identify each face in an Arrangement if the input is a polygonal mesh?, Efraim Fogel, 11/08/2011
- [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, Graviton, 11/11/2011
- Re: [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, efif, 11/11/2011
- Re: [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, Ben Supnik, 11/11/2011
- [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, Graviton, 11/12/2011
- Re: [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, Ben Supnik, 11/11/2011
- Re: [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, efif, 11/11/2011
- [cgal-discuss] Re: Identify each face in an Arrangement if the input is a polygonal mesh?, Graviton, 11/11/2011
- Re: [cgal-discuss] Identify each face in an Arrangement if the input is a polygonal mesh?, Efraim Fogel, 11/08/2011
Archive powered by MHonArc 2.6.16.