Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Straight Skeleton Offset - some offsets are skipped

Subject: CGAL users discussion list

List archive

[cgal-discuss] Straight Skeleton Offset - some offsets are skipped


Chronological Thread 
  • From: piter <>
  • To:
  • Subject: [cgal-discuss] Straight Skeleton Offset - some offsets are skipped
  • Date: Wed, 13 Jan 2021 06:00:37 -0600 (CST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=Pass
  • Ironport-phdr: 9a23:/YDCFhBOYAkIRjW7XmTsUyQJP3N1i/DPJgcQr6AfoPdwSPT5rsbcNUDSrc9gkEXOFd2Cra4d26yO6Ou7ACRAuc/H7CldNsQUFlcssoY/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbuv6FZTPgMupyuu854PcYxlShDq6fLh+MAi6oR/eu8ULgoZuMLo9xxXGrnZGZuhd2GdkKU6Okxrm6cq84Zxu/z5Mt/498sJLTLn3cbk/QbFEFjotLno75NfstRnNTAuP4mUTX2ALmRdWAAbL8Q/3UI7pviT1quRy1i+aPdbrTb8vQjSt871rSB7zhygZMTMy7XzahdZxjKJfpxKhugB/zovJa4ybKPZyYqXQds4cSGFcXMheSjZBD5uyYYUPEeQPPvtWoIbhqFUBtha+GQuhCP/zxjNUmnP6w6s32PkhHwHc2wwgGsoDsGzVrNXpKqgSS/2+wa7PzTredfxW1jP96InSfR06u/6MR65/ccrLxUYxCwPFjlSRpZb5MDOVz+kAtXWQ4OV8W+y1kWEntx1xrSa1xscqkoTEhJ4Yxk3Y+CllwIs4OcC0RVBlbNOkE5ZdtSKXO5Z0T84mTGxkpTg3x78HtJKmcyUHy4gryhzfZvCafIaF5h3uWeCMKjl2g3Jlfaiwhxe08UW4zO3zTNK7301OriVbiNXDqncN1xnV58OaSfV95l+s1SuL2g3X8O1JL0M5mbDYJpMg2LI9l5sevELeFSHsgkr2lrWZdkA89+io9evnZrLmq4eaN4J7kA3+NL4hldekDuQ8LAcCRXSU+eO51LH7/E35RqtFjuEun6XEtJ3XId4Xq6C6DgNP0Ysu6gyzAjan3dgAmHkINlNFeBaJj4jzPFHOJej1DfCijFu2nzdrw/HGMaf6D5rXNHjMjLfhcaxj5E5AyAoyzMpT6I5UCr0ZOvL8RlfxtMDEDh8+KwG73+nnB8951o8HRG2PA7SZP7/PsV+T/eIiOPKMZY8QuDblMfcp/f/ujXkjmV8cZ6alx5UXaGrrVshhdk6WaH6pjtYaGnoRpSI/SvbrgRuMS219fXG3Cro9+jwhQNahAY7MQoGkqLWb1yf9E4FWdCZNCgbfQj/Ta4yYVqJUO2qpKch7n2lcDOTze8oazRir8TTC5f9/NOONpn8Rr5njktVp5/+VnhFgrWUlXfTY6HmESiRPpk1NQjY32K5lpkkklgWKy6N4xfFEFc4V7PMbCl5nZ66Z9PRzDpXJYiyEftqNTw/7ENP6Rzc4RNg1zpkFZEMvQtg=

Hi all, I'am relatively new to the world of C++ and (completely new to) CGAL,
as such I apologize in advance if my question turns out to be trivial.

I've been poking around with the example files (CGAL 5.1.1) and managed to
perform and output multiple offsets on the interior skeleton of a given
polygon with holes. However, in some situations, it appears as one or more
offsets are missing (see img below)

<http://cgal-discuss.949826.n4.nabble.com/file/t376274/missing_offset.png>

The input polygon is the one provided with the examples
(boolean_set_operation_2/pgn_holes.dat).
-> pgn_holes.dat
<http://cgal-discuss.949826.n4.nabble.com/file/t376274/pgn_holes.dat>

I see some possible explanations:
1) the offset polygon is somehow invalid: I tested each one with the inbuilt
is_simple() function, and they all look ok.
2) the eps file format is the culprit: will try with svg and get back
3) it's a singularity: if I slightly some vertices or change the offset
value the problem disappears

if 3), how can I check if this will happen with specific polygons/offset
values?

Here's the code:

Create_skeleton_and_offset_polygons_multi.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/t376274/Create_skeleton_and_offset_polygons_multi.cpp>




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.19+.

Top of Page