Align Zaxis of plane to Azimuth and Altitude Coordinates
-
Hi.
I’m looking for help to have a plug-in that aligns the Zaxis of a plane to a pair of specific coordinates. The use will be:
a) Select a plane.
b) Input an Azimuth and Altitude coordinates, and the result would be:
c) The plane would turn itself to face that coordinates direction by aligning it's Zaxis to such direction.Azimuth and Altitude are two angular measurements and work as follows. Suppose we want to align the Zaxis of a plane to coordinates Azimuth 30° and Altitude 50°:
a) We have that plane pointing its Zaxis to a random direction (Fig.1). For clarity in explanation, in Fig. 1 the Zaxis is represented by a vector located at the center of the plane, and the intersection of the vector and the plane is at 0,0,0. Sketchup north is aligned with the green axis.
b) First, the Azimuth. The Zaxis Azimuth starts always aligned to Sketchup North, flat on the ground (fig. 2). North direction is 0°, and starts to rotate towards East. So, when it reaches East it has rotated 90°, when South 180°, West 270° and North 360° or 0° again. For our example, Zaxis turns to the East just 30° (Fig. 3).
c) Then Altitude. Altitude is the angular measure the raises the Zaxis from the ground. For our example, Zaxis raises from the ground 50° (Fig. 4).
That’s it. Now the plane is facing Azimuth 30° and Altitude 50°.
Two last things. In this example north is the same as the green axis and the face is at 0,0,0, but it will not always be the case when using the plug-in. Thanks in advanced for any help.Javier
-
Hi and thanks for everybody who has taken the time to read my post. I'm not a programmer but would like to make this plug-in, so I'm wondering if someone can help me find similar plug-ins or codes that would help me understand and program it. Thanks.
Advertisement