Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1)
Chronological Thread
- From: Mike Vasiljevs <>
- To:
- Subject: Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1)
- Date: Mon, 5 Sep 2016 12:14:53 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:lAVychMNNSuFMF9BzEwl6mtUPXoX/o7sNwtQ0KIMzox0KP//rarrMEGX3/hxlliBBdydsKMdzbeG+Pu6ESxYuNDa7yBEKMQNHzY+yuwo3CUYSPafDkP6KPO4JwcbJ+9lEGFfwnegLEJOE9z/bVCB6le77DoVBwmtfVEtfre9Scbvid+q3bWy54HLeFcPwyGsZKt7ahSwtwTY8McMxpBzL744jRrPrHwPcOtfwSZkJEmYgg3ntfu3qZVs+iAVt/M6/NNbSo37eb45RPpWFmcIKWcwsejqthSLcwKU538eX3sN2k5NAgvIqg/zRZb1sCbkrcJy3SCbOYv9SrViCmfq1LtiVBK90HRPDDU+6myC0sE=
Hi Sebastien,
The code is available at GitHub: https://github.com/sonicth/SUMB_ShapeFitting/blob/master/src/cgal/cgal-bbox.cpp. Pts_t is defined in https://github.com/sonicth/SUMB_ShapeFitting/blob/master/src/shared/shared-geometry.h, which simply a vector of GLM 2D vertices (or glm::dvec2). The input can be generated in SketchUp, for example by drawing Hexagon polygons and using them as input. Correctness of the input was checked by feeding it to the output - which both input and output polygons were identical.
Greets,
Mike
On 09/04/2016 02:05 PM, Mike Vasiljevs wrote:Running an adapted Bounding Volumes example
(https://github.com/CGAL/cgal/blob/releases/CGAL-4.9-beta1/Bounding_volumes/examples/Min_quadrilateral_2/minimum_enclosing_rectangle_2.cpp)
resulted in an incorrect Oriented Bounding Box output for most cases.
Input polygons were SketchUp created circles, hexagons and custom-drawn
polygons.
Results:
http://www.michaelvasiljevs.com/pictures/issues/cgal-min_rectangle-circles_n_hexes.png
http://www.michaelvasiljevs.com/pictures/issues/cgal-min_rectangle-multipoints.png
Any ideas?
Greetings,
Mike
Could you share a minimal example (code+input) showing the pb?
Thanks,
Sebastien.
--
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] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1), Mike Vasiljevs, 09/04/2016
- Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1), Sebastien Loriot (GeometryFactory), 09/05/2016
- Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1), Mike Vasiljevs, 09/05/2016
- Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1), Sebastien Loriot (GeometryFactory), 09/06/2016
- Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1), Mike Vasiljevs, 09/05/2016
- Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1), Sebastien Loriot (GeometryFactory), 09/05/2016
Archive powered by MHonArc 2.6.18.