Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any algorithm (or better C# subroutine) to decrease an existing
2D convex hull on the desired percent (for example, to obtain a 90% central area of the known convex hull)? Thank you for your help!

What I have tried:

I can create points of a 100% convex hull, but it is necessary to make the area smaller (decreased on equal margins along each direction from the edges).
Posted
Updated 20-Nov-17 11:58am
v2
Comments
phil.o 20-Nov-17 18:28pm    
If your hull is convex then the scaling can be done simply with matrix operation. You can search for "convex hull matrix scalling c#" in your favorite search engine.
SuperSlavik 21-Nov-17 0:40am    
Thank you very much!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900