On attached picture, you can see a Polygon (green color) consisting of 4 points.
We need a method that will receive 4 coordinates (P1…P4), list of data items consisting of number of lines/ellipses and number of points for each line/ellipse ("1-1"..."1-5", .., "5-1"..."5-13"), and Enum specifying if straight line or ellipse should be used.
We need a method that will split each edge of polygon ([P1, P4] will be one edge and [P2, P3] will be second edge) into equal sizes based on number of lines in supplied list, in this example there are five (5) lines.
Then based on a Enum draw a Line or Ellipse that will cross exactly the center of each side. In case of Line you can see Blue Dashed Lines and for Ellipse these are shown in Red Dashed Lines.
Then it will split each line/ellipse into equal sizes based on number of Points in each data item. In this example, first line consists of 5 points and fifth line consists of 13 points.
After all the calculations, we need to have following:
1) Coordinates for all rectangles ("R1-1"…"R1-5", .., "R5-1"…"R5-13") that will have its center in the middle of each portion, relative angle and top-left, bottom-right coordinates.
2) Center of gravity of the polygon. This should change depending on if straight line or ellipse will be used.
16 freelancers are bidding on average $234 for this job
Dear, Sir. I'm a developer of CAD. Please check my work history on Freelancer and on the site: [url removed, login to view] I can do your project. Thanks and regards, PSZJVC
Hello, I have experience in C# and graphics. Project description is very clear except output specification (what are exactly those rectangles, how point of gravity is defined). Regards, Filip Luczys
Hello, I have excellent experience with computational geometry and I am sure a can delivery high quality code. Please contact me if you are interested in my services. Regards, Grig
Hi, I have 2+ years experience working with similar skills, I can get the task done for you, so if you are interested in a collaboration please contact me..... With warm regards