Houdini and analytical geometry
5564 7 0- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- graham
- Member
- 1909 posts
- Joined: Nov. 2006
- Offline
Wouldn't having control over the angles make it a non-equilateral triangle?
It's easy to setup a system so you can control the length of the sides for an equilateral triangle using the good old Law of Sines.
Since the triangle is equilateral, you know the central angle to each side is 120 degrees, forming an isosceles triangle with 2 angles each 30 degrees. You know the outer side, which is the value you want, so you just need to solve for r.
sin A/r = sin B/b
r = (sin(30) * desired length / sin(120))
Example attached.
It's easy to setup a system so you can control the length of the sides for an equilateral triangle using the good old Law of Sines.
Since the triangle is equilateral, you know the central angle to each side is 120 degrees, forming an isosceles triangle with 2 angles each 30 degrees. You know the outer side, which is the value you want, so you just need to solve for r.
sin A/r = sin B/b
r = (sin(30) * desired length / sin(120))
Example attached.
Graham Thompson, Technical Artist @ Rockstar Games
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
- graham
- Member
- 1909 posts
- Joined: Nov. 2006
- Offline
- graham
- Member
- 1909 posts
- Joined: Nov. 2006
- Offline
- edward
- Member
- 7764 posts
- Joined: July 2005
- Offline
- asnowcappedromance
- Member
- 512 posts
- Joined: July 2009
- Offline
-
- Quick Links