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: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] OBB aka Minimal Enclosing Rectangle seems wrong (CGAL-4.9_x64-beta1)
- Date: Tue, 06 Sep 2016 23:27:16 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:zv+QshKkszEoauPB5NmcpTZWNBhigK39O0sv0rFitYgVKfnxwZ3uMQTl6Ol3ixeRBMOAuqsC1bKd6/qoGTRZp83Q6DZaKN0EfiRGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJLL+j4UrTfk96wn7jrvcaCOkMW3HHlO/sydEzw9lSJ8JFOwMNLEeUY8lPxuHxGeuBblytDBGm4uFLC3Pq254Np6C9KuvgspIZqWKT+eLkkH/QDVGx1ezN92cvwqBOWTReT/mBOFSINgx9QCk7E6gv7V9H/qGzhp+9l0W6bO8PxCrs7UDDn46ZwQwLzk3Q7MGsy/2jTz8Bxl6lGuwmJphplwoeSbpvGGuB5e/aXRt4QTHFdX8tXHwhGGIK7c8NPIOcGOOtEtZjTrlASqgGvREPkUPjrzSVJgWOw2KkS3OEoEAWA1wslSYFd+E/Ipcn4Yf9BGdu+y7PFmG3O
- Organization: GeometryFactory
On 09/05/2016 01:14 PM, Mike Vasiljevs wrote:
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.
A minimal example I can compile and run would help here.
A least some input points for which you have issues.
Thanks,
Sebastien.
Greets,
Mike
On 5 Sep 2016, at 11:37, Sebastien Loriot (GeometryFactory)
<
<mailto:>>
wrote:
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.