3

I successfully used the filledCurveToPolygons3D function to create Graphics3D text in MMA 9 on a Windows 7 PC; see:

How can I create a 3D FilledCurve object?

However, when I installed MMA 10 on this very same machine and tried using this technique again, all the holes in the text are filled. I tried using the recommended changes to the RHS of processHoles that another user had had with MMA 9 on a Mac, but I still ended up with all the holes filled. The same problem shows up as well with the 2D function filledCurveToPolygons.

JohnS
  • 31
  • 1
  • 1
    I believe this should be a comment below the answer by @SimonWoods linked above. But I can confirm that this is indeed a new issue in MMA 10 (Mac OS X here). – Jens Aug 19 '14 at 05:10
  • 3
    The InPolygonQ function has moved in version 10 to Graphics`PolygonUtils`InPolygonQ. With that change it should work properly. – Simon Woods Aug 19 '14 at 19:35
  • 1
    It does work properly. – JohnS Aug 20 '14 at 17:18

1 Answers1

4

The InPolygonQ function has moved in version 10 to Graphics`PolygonUtils`InPolygonQ. With that change it should work properly. – Simon Woods Aug 19 '14 at 19:35

[Just to give an answer. Seemed better than closing the question.]

Michael E2
  • 235,386
  • 17
  • 334
  • 747
  • I am using v10.1 and it does not recognize two items of the code: (1) GeometricFunctions\DecodeFilledCurveand (2)Graphics`PolygonUtils`InPolygonQ`. They stay blue while the rest of the code turns black after evaluation. What am I doing wrong? – Nicholas G Nov 22 '16 at 14:02
  • @NicholasG I believe it's because their contexts GeometricFunctions` and Graphics`PolygonUtils` are not in your $ContextPath. It's not an error and it doesn't need fixing. If it is too annoying, you could add the contexts to $ContextPath. – Michael E2 Nov 25 '16 at 18:07
  • A sweet piece of code -- however, I've noticed that it does not knock the holes out of the percent character (%). The triple-donut case, "‰", fares even worse, and comes out as a rectangle frame, with nothing circular in sight. – M. Robinson Jul 08 '18 at 20:45