room walls direction

room walls direction

Anonymous
Not applicable
1,369 Views
4 Replies
Message 1 of 5

room walls direction

Anonymous
Not applicable

Hi,

How to get the direction of the walls of a room. I mean the  interior side of wall is facing in what direction. East West North South  Northeast   Northwest    Southeast  Southwest .

 

Thanks & Regards

Sanjay Pandey

0 Likes
1,370 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Look at the DirectionCalculation SDK sample and this The Building Coder discussion:

 

http://thebuildingcoder.typepad.com/blog/2010/01/south-facing-walls.html



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi,

Thanks for the reply.

Assume I am in the room and I  am looking at the wall. I need to get this direction.

Thanks & Regards

Sanjay Pandey

0 Likes
Message 4 of 5

BenoitE&A
Collaborator
Collaborator

I use the most simple solution : draw a semi-infinite line from the point you are checking to a point of the face of the wall, and check the number of times it crosses the walls of the room. If you cross them an even number, you are inside the room. Elseway, you are outside.

 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Message 5 of 5

BenoitE&A
Collaborator
Collaborator

If it is the direction you need, draw a line between your position and a point of the face of the wall. Then compute the angle to the North. You have your direction.


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes