GET SOLID FACE NORMAL: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
mNo edit summary
Mikeo (talk | contribs)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:


{{Command|syntax=GET_SOLID_FACE_NORMAL <solid number>, <face number>, <<nowiki>u</nowiki>>, <v>, <x>, <y>, <z>
{{Command|syntax=GET_SOLID_FACE_NORMAL <solid number>, <face number>, <<nowiki>u</nowiki>>, <v>, <x>, <y>, <z>
|description=*DESCRPTION*, same as [[GET_SOL_FACE_NORMAL]], [[GET_FACE_NORMAL]]
|description=:Get the vector of a surface normal, given the UV position on the face.


|param1=<solid number>|param1_desc={{solid number}}
|param1=<solid number>|param1_desc={{solid number}}
|param2=<face number>|param2_desc={{face number}}
|param2=<face number>|param2_desc={{face number}}
|param3=<<nowiki>u</nowiki>>|param3_desc={{u}}
|param3=<<nowiki>u</nowiki>>|param3_desc=U position.
|param4=<v>|param4_desc={{v}}
|param4=<v>|param4_desc=V position.
|param5=<x>|param5_desc={{xv}}
|param5=<x>|param5_desc={{parameter_variable_num_name}} the X component the vector.
|param6=<y>|param6_desc={{yv}}
|param6=<y>|param6_desc={{parameter_variable_num_name}} the Y component the vector.
|param7=<z>|param7_desc={{zv}}
|param7=<z>|param7_desc={{parameter_variable_num_name}} the Z component the vector.
}}
}}


===Example===
===Example===
:GET_SOLID_FACE_NORMAL
:GET_SOLID_FACE_NORMAL 2, 5, 0.2, 0.45, vx, vy, vz
 
:For an example macro see [[Create_face_normal]]


[[Category:Solids]]
[[Category:Solids]]

Latest revision as of 16:03, 17 January 2011

Up

Command

GET_SOLID_FACE_NORMAL <solid number>, <face number>, <u>, <v>, <x>, <y>, <z>


Get the vector of a surface normal, given the UV position on the face.

Parameters

<solid number>
Solid number.
<face number>
Face number.
<u>
U position.
<v>
V position.
<x>
The name of a numeric variable to be set to the X component the vector.
<y>
The name of a numeric variable to be set to the Y component the vector.
<z>
The name of a numeric variable to be set to the Z component the vector.

Example

GET_SOLID_FACE_NORMAL 2, 5, 0.2, 0.45, vx, vy, vz
For an example macro see Create_face_normal