GET SOLID FACE NORMAL: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[:Solids: | [[:Solids:Solid_Data|{{Up}}]] | ||
{{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= | |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= | |param3=<<nowiki>u</nowiki>>|param3_desc=U position. | ||
|param4=<v>|param4_desc= | |param4=<v>|param4_desc=V position. | ||
|param5=<x>|param5_desc={{ | |param5=<x>|param5_desc={{parameter_variable_num_name}} the X component the vector. | ||
|param6=<y>|param6_desc={{ | |param6=<y>|param6_desc={{parameter_variable_num_name}} the Y component the vector. | ||
|param7=<z>|param7_desc={{ | |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
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