Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: How do I find orientation of a wall  (Read 771 times)
harikumar001
Customers
Community Member
*****
Posts: 65


« on: September 03, 2010, 10:44:20 PM »

Hey guys,

Have a good day.

My programs draws walls in 3D from 2d lines that the user draws. I use AddWall3D for the same.

The user can draw multiple walls to create a room. I need to know which side of the wall is the interior and which the exterior. From what I understand, I have to get the normals of the wall faces, but i am unable to identify which face represents the interior.

Any pointers would be greatly appreciated.

Regards
Logged
Mithrandir
Community Member
*
Posts: 325


« Reply #1 on: September 04, 2010, 11:38:08 AM »

Create a point along the normal and check whether this point is inside a polygon described by the lines/walls.

You can google out plenty of materials about how to check whether a point is inside a polygon. Or as the wise man said: Google the question.
Logged
harikumar001
Customers
Community Member
*****
Posts: 65


« Reply #2 on: September 04, 2010, 11:16:50 PM »

Thanks mithrandir
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks