I want to implement a code to transform a 3D polygon into a horizontal position. So that I can ignore its Z coordinate and apply the 2D polygon area calculation method to find the original area and use other techniques available for 2d. Highly appreciate if anybody provides me the code.

link|improve this question
Sathya are you saying that a question being asked for finding a directx method for polygon manipulation is not related to computer software? – Razack Jun 29 '11 at 6:12
You want to implement something. That's programming which is why it is off-topic here -- as you can read in the FAQ. You should ask on Stack Overflow for programming questions. But then again, this is a terribly bad question and it'll most probably be closed there as well /cc @Sathya – slhck Jun 29 '11 at 8:10
as @slhck mentioned, this is a programming question, off topic for Super User. You might want to ask on Stack Overflow - with details on what you've done. Plz-send-me-codez questions are looked down upon. – Sathya Jun 29 '11 at 8:16
thank you Sathya, I will look for an appropriate forum for this. I am sorry for putting for code what i mean is algorithm, method or snippets – Razack Jun 29 '11 at 8:36
Solution: 1. Get the unit normal vector N to the plane. 2. Get the matrix M that takes N to the unit vector of Z. 3 transform the polygon vertices with the Matrix M – Razack Jul 1 '11 at 4:55
feedback

closed as off topic by Sathya Jun 29 '11 at 5:25

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

Browse other questions tagged or ask your own question.