# Split Polygon consisting of 4 points into individual Shapes

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.

( 0 comentários ) United States

ID do Projeto: #6778710

## Premiar a:

sergeylisovsky

Greetings. I'd like to ask a couple of questions. According to the picture you've attached, what will be the R1-1, R1-5, R5-1, R5-13 rectangles (both ellipse and line cases)? What is the "middle of the portion"? Mais

\$111 USD em 5 dias
(5 Avaliações)
3.5

## 16 freelancers estão ofertando em média \$234 para este trabalho

salmanaim

Its a complex project and need two weeks to complete it, however my bid is high as compare to others but it is according to the effort involve. Following are just a few projects I've done in the recent past. http: Mais

\$1237 USD in 12 dias
(50 Comentários)
7.4
PSZJVC

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

\$200 USD in 3 dias
(24 Comentários)
7.4
samitXI

Hi Sir, I am ready to work for you.I have experience in C/C++, python , java. please see some of my works also check my reviews you will get better idea about my skill.I deliver quality work within time frame. Please Mais

\$200 USD in 3 dias
(114 Comentários)
6.9
dobreiiita

A proposal has not yet been provided

\$250 USD in 5 dias
(80 Comentários)
5.6
szymszteinsl

Hi! I am professional C/C++/C#/Java programmer. I can do this project with highest satisfaction. Best Regards, Szymszteinsl

\$100 USD em 1 dia
(20 Comentários)
5.1
murtaza1981

Hi, Please feel free to discuss the project with me ........................................................................... Thanks, Murtaza

\$250 USD in 3 dias
(12 Comentários)
4.6
luczys

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

\$277 USD in 28 dias
(1 Comentário)
4.4
grigiq

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

\$199 USD in 3 dias
(18 Comentários)
4.4
dimitarpartenov

A proposal has not yet been provided

\$155 USD in 6 dias
(15 Comentários)
4.1
letwalkalone

A proposal has not yet been provided

\$166 USD in 3 dias
(1 Comentário)
3.8
cugamelover

I have a PhD degree in theoretical and computational physics and dozens of published computational research papers in top peer review journals. I'd be happy to give you the references. It would be my pleasure to work o Mais

\$100 USD in 3 dias
(16 Comentários)
3.7
Excellentlancer

Dear sir, I've check the attached with image carefully to understand what is needed. With 8 years experience in C# and high ability in Math and Algorithm, I could be a good fit. Work will be done perfectly within 2 Mais

\$90 USD in 2 dias
(13 Comentários)
3.6
vickkey7

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

\$155 USD in 5 dias
(6 Comentários)
2.6
meydan12

A proposal has not yet been provided

\$60 USD in 3 dias
(1 Comentário)
1.9
samkevin