![]() |
Error in CURVE.AREA property
The area reported by .SHAPE.CURVE.AREA is incorrect if there is a hole in it. Instead of subtracting the inside area from the outside it adds them together.
I reported this to Corel a while ago and they replied saying that this type of problem doesn't fall under "free" support... :confused: They are really funny but I think I will hang on to my money. |
Area
I can confirm this is a bug. I will submit to Corel. Unfortunately I don't have a workaround at this time. If I can find one, I will be happy to post it here.
-Shelby |
Unfortunately Area method counts for curve direction. The curve for hole should go in the opposite direction than the outer curve. Also it doesn't handle the intersecting paths.
A way to work around this is to create a contour with offset of 0. This would get the same path visually but correct all those issues (proper curve direction, no overlapping areas, etc). And Area should work correctly on that... ?Curve.Contour(0).Area I hope this helps |
Didn't work but have bulky solution
Quote:
Code:
donutArea = ActiveSelection.Shapes.First.Curve.Contour(0).Area Code:
Public Function donutArea() As Double |
All times are GMT -5. The time now is 05:25. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com