Subject: CGAL users discussion list
List archive
- From: Noel Warren <>
- To:
- Subject: Re: [cgal-discuss] How to close Polyhedrons_3
- Date: Wed, 25 Jul 2012 14:32:41 +0200
So here we have two triangles that make a kind of bow-tie. Do you want this to be a Nef_polyhedron_3 too? In this case I would follow the procedure I mentioned before, using the Nef constructor. Why do you want such a Nef? Just curious
2012/7/25 Luis Rodriguez <>
OFF5 2 01073.91 -220.538 13.151073.91 -220.688 13.151074.26 -220.688 13.151074.26 -220.538 13.151074.08 -220.613 13.153 1 4 03 4 2 3Here is another example, this is not closed. the last one was an example of a closed Polyhedron with more than 8 points, maybe I misunderstood your question beforeOn Wed, Jul 25, 2012 at 2:03 PM, Noel Warren <> wrote:
I've poked around a little and it looks fine to me. The right number of points and faces (Providing it's triangulated) are there so I can't see why it shouldn't give a true result for is_closed. Are you sure this one gives false?
2012/7/25 Luis Rodriguez <>
OFF16 28 01077.03 -219.203 15.8951079.22 -221.791 15.8951079.22 -217.761 15.8951073.91 -220.483 15.821077.03 -219.203 15.821079.22 -217.761 15.821079.22 -221.791 15.821077.03 -221.791 15.8951077.03 -221.791 15.821077.03 -220.483 15.821073.91 -220.483 15.8951077.03 -220.483 15.8951073.91 -219.203 15.8951073.91 -219.203 15.821077.03 -217.761 15.821077.03 -217.761 15.8953 7 1 113 12 11 03 11 1 03 0 1 23 0 2 153 4 3 133 6 8 93 9 3 43 6 9 43 5 4 143 6 4 53 7 8 13 1 8 63 11 9 73 7 9 83 10 3 93 10 9 113 12 13 33 12 3 103 13 0 43 13 12 03 15 14 43 15 4 03 14 2 53 14 15 23 1 6 23 6 5 2Here is an example, thank youOn Wed, Jul 25, 2012 at 12:13 PM, Noel Warren <> wrote:
That's odd. Can you send me one of them? I assume you're using the IO package to create your Polyhedron_3.2012/7/25 Luis Rodriguez <>
Some of my OFF files have more than 8 points, they vary between 9 and 36 but most of them have 8.LuisOn Wed, Jul 25, 2012 at 11:57 AM, Noel Warren <> wrote:
Well, I don't know of any out of the box method for "cleaning up" polyhedrons with CGAL. But here is the basic approach...Iterate through all the halfedges. Each halfedge should have two half facets. If it has more or less then you've encountered a problem. You could then proceed to try to either get rid of excess geometry or add missing faces.Before you do any of that, a question; Is it possible that your OFF file redefines points for every facet? In this case a cube would have 24 points instead of 8.2012/7/25 Luis Rodriguez <>
Well I never thought about that, I just believed on the is_closed test because that is what I needed and I am working with around 2000 files so I didn't get into detail. But how can I check that?My off files come from VRML and when I open any .wrl file the objects look complete so I don't know.LuisOn Wed, Jul 25, 2012 at 11:37 AM, Noel Warren <> wrote:
Do you know why it isnt cosed? Are there faces missing or is there "extra" geometry? Or both?
Luis Rodriguez <> escribió:
>--
>Hi,
>
>I am working with Polyhedrons_3 created from OFF files, it is required to
>get is_closed == true before I can transform to Nef_polyhedron. If I get
>is_closed == false, is there a way I can modify my polyhedron to become
>closed?
>
>any help is appreciated, thank you.
>
>Luis R
>
>You are currently subscribed to cgal-discuss.
>To unsubscribe or access the archives, go to
>https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- <Possible follow-up(s)>
- RE: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Noel Warren, 07/25/2012
- Re: [cgal-discuss] How to close Polyhedrons_3, Luis Rodriguez, 07/25/2012
Archive powered by MHonArc 2.6.18.