Difference between revisions of "User:Strife Onizuka/Sandbox/Switch/Template:Test"

From Second Life Wiki
Jump to navigation Jump to search
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{!}} {{Prettytable}} {{#switch:{{NAMESPACE}}|Template=|User=|{{LSLC|Light}}}}
{{LSL Header}} __NOTOC__ <noinclude>
<!--{{#if:
See [[{{FULLPAGENAME}}/docs]] for documentation.
{{#vardefine:p_type_desc|PRIM_SCULPT_TYPE_* flag}}
</noinclude><includeonly>{{#if:{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{{sort|}}}}}}}{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}}<div id="sort" style="display:none">{{DEFAULTSORT:{{#var:sort}}}}{{#var:sort}}</div>{{#if:{{#var:nofixname}}||{{#if:{{#pos:{{lc:{{FULLPAGENAMEE}}}}|{{lc:{{{func}}}}}}}|<div id="RealTitleBanner" style="display:none"><span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{func}}}</span></div>}}}}{{#if:
{{#vardefine:p_hole_shape_desc|PRIM_HOLE_* flag}}
{{#vardefine:func_id|{{{func_id|}}}}}
{{#vardefine:p_cut_desc|x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)}}
{{#vardefine:p_{{{p1_name|}}}_desc|{{#var:p_{{{p1_name|}}}_desc}}{{{p1_desc|}}}}}
{{#vardefine:p_hollow_desc|ranges from 0.0 (solid) to 0.95 (maximum hollowed)}}
{{#vardefine:p_{{{p1_name|}}}_hover|{{#var:p_{{{p1_name|}}}_hover}}{{{p1_hover|}}}}}
{{#vardefine:p_twist_box_desc|ranges from -0.5 (-180 degree in the edit window) to 0.5 (+180 degree in the edit window) for both x and y (z is ignored)}}
{{#vardefine:p_{{{p2_name|}}}_desc|{{#var:p_{{{p2_name|}}}_desc}}{{{p2_desc|}}}}}
{{#vardefine:p_twist_torus_desc|ranges from -1.0 (-360 degree in the edit window) to 1.0 (+360 degree in the edit window) for both x and y (z is ignored)}}
{{#vardefine:p_{{{p2_name|}}}_hover|{{#var:p_{{{p2_name|}}}_hover}}{{{p2_hover|}}}}}
{{#vardefine:p_hole_size_desc|x ranges from 0.05 to 1.0; y ranges from 0.05 (large hole) to 0.50 (no hole)}}
{{#vardefine:p_{{{p3_name|}}}_desc|{{#var:p_{{{p3_name|}}}_desc}}{{{p3_desc|}}}}}
{{#vardefine:p_top_size_desc|ranges from 0.0 to 1.0 for both x and y (z is ignored)}}
{{#vardefine:p_{{{p3_name|}}}_hover|{{#var:p_{{{p3_name|}}}_hover}}{{{p3_hover|}}}}}
{{#vardefine:p_z_taper_desc|ranges from 0.0 to 2.0 for both x and y (z is ignored)}}
{{#vardefine:p_{{{p4_name|}}}_desc|{{#var:p_{{{p4_name|}}}_desc}}{{{p4_desc|}}}}}
{{#vardefine:p_top_shear_desc|ranges from -0.5 to 0.5 for both x and y (z is ignored)}}
{{#vardefine:p_{{{p4_name|}}}_hover|{{#var:p_{{{p4_name|}}}_hover}}{{{p4_hover|}}}}}
{{#vardefine:p_taper_desc|ranges from -1.0 to 1.0 for both x and y (z is ignored)}}
{{#vardefine:p_{{{p5_name|}}}_desc|{{#var:p_{{{p5_name|}}}_desc}}{{{p5_desc|}}}}}
{{#vardefine:p_revolutions_desc|ranges from 1.0 to 4.00}}
{{#vardefine:p_{{{p5_name|}}}_hover|{{#var:p_{{{p5_name|}}}_hover}}{{{p5_hover|}}}}}
{{#vardefine:p_radius_offset_desc|depends on holesize y and revolutions}}
{{#vardefine:p_{{{p6_name|}}}_desc|{{#var:p_{{{p6_name|}}}_desc}}{{{p6_desc|}}}}}
{{#vardefine:p_skew_desc|ranges from -1.0 to 1.0}}
{{#vardefine:p_{{{p6_name|}}}_hover|{{#var:p_{{{p6_name|}}}_hover}}{{{p6_hover|}}}}}
{{#vardefine:p_id_desc|}}
{{#vardefine:p_{{{p7_name|}}}_desc|{{#var:p_{{{p7_name|}}}_desc}}{{{p7_desc|}}}}}
{{#vardefine:p_repeats_desc|x and y range from 0.0 to 100, in 0.01 increments (z is ignored)}}
{{#vardefine:p_{{{p7_name|}}}_hover|{{#var:p_{{{p7_name|}}}_hover}}{{{p7_hover|}}}}}
{{#vardefine:p_offsets_desc|x and y range from -1 to 1 (z is ignored)}}
{{#vardefine:p_{{{p8_name|}}}_desc|{{#var:p_{{{p8_name|}}}_desc}}{{{p8_desc|}}}}}
{{#vardefine:p_flex_float_desc|ranges from 0.0 to 10.0}}
{{#vardefine:p_{{{p8_name|}}}_hover|{{#var:p_{{{p8_name|}}}_hover}}{{{p8_hover|}}}}}
{{#vardefine:p_twist_end_desc|ranges from -0.5 (-180 degree in the edit window) to 0.5 (+180 degree in the edit window)}}
{{#vardefine:p_{{{p9_name|}}}_desc|{{#var:p_{{{p9_name|}}}_desc}}{{{p9_desc|}}}}}
{{#vardefine:p_hole_size_y_desc|ranges from 0.05 (large hole) to 0.50 (no hole)}}
{{#vardefine:p_{{{p9_name|}}}_hover|{{#var:p_{{{p9_name|}}}_hover}}{{{p9_hover|}}}}}
{{#vardefine:p_size_desc|ranges from 0.01 to 10.0 for x, y and z}}
{{#vardefine:p_{{{p10_name|}}}_desc|{{#var:p_{{{p10_name|}}}_desc}}{{{p10_desc|}}}}}
{{#vardefine:p_rot_desc|any valid rotation}}
{{#vardefine:p_{{{p10_name|}}}_hover|{{#var:p_{{{p10_name|}}}_hover}}{{{p10_hover|}}}}}
{{#vardefine:p_topshear_x_desc|ranges from 0.05 to 0.50}}
{{#vardefine:p_{{{p11_name|}}}_desc|{{#var:p_{{{p11_name|}}}_desc}}{{{p11_desc|}}}}}
{{#vardefine:p_boolean_desc|TRUE (enables) or FALSE (disables)}}
{{#vardefine:p_{{{p11_name|}}}_hover|{{#var:p_{{{p11_name|}}}_hover}}{{{p11_hover|}}}}}
{{LSL_Function/color|color}}
{{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}}
{{LSL_Function/alpha|alpha}}
{{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}}
{{LSL_Function/face|face|flag|return={{#ifeq:{{{1|get}}}|get|...
{{#vardefine:return_text|{{#var:return_text}}{{{return_text|}}} }}
:{{{!}}{{Prettytable}}
{{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}}
{{!}}-{{Hl2}}
{{#vardefine:examples|{{#var:examples}}{{{examples|}}}}}
!{{HoverText|flag|PRIM_* flag}}
{{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}}
!Return if face is invalid
{{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}}
{{#vardefine:also_tests|{{#var:also_tests}}
{{{also_tests|}}}}}
{{#vardefine:also_events|{{#var:also_events}}
{{{also_events|}}}}}
{{#vardefine:also_functions|{{#var:also_functions}}
{{{also_functions|}}}}}
{{#vardefine:also_articles|{{#var:also_articles}}
{{{also_articles|}}}}}
{{#vardefine:also_library|{{#var:also_library}}
{{{also_library|}}}}}
{{#vardefine:also_footer|{{#var:also_footer}}{{{also_footer|}}}}}
{{#vardefine:notes|{{#var:notes}}{{{notes|}}}}}
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}}
{{#vardefine:self|{{#var:self}}{{{self|}}}}}
{{#vardefine:type|function}}
{{#vardefine:caveats|{{#ifexpr:{{{func_sleep|0.0}}}> 0.0|*This function causes the script to sleep for {{{func_sleep|}}} seconds.}}{{#if:{{#var:caveats}}|
{{#var:caveats}}}}
{{{caveats|}}}}}
{{#vardefine:location|{{#var:location}}{{{location|}}}}}
{{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{{func_footnote|}}}{{{func_footer|}}}}}
{{#vardefine:header_desc|{{#if:{{#var:header_desc}}|{{#var:header_desc}}<br/>}}{{#var:header_desc}}{{{func_desc|}}}}}
{{{{#ifeq:{{#var:mode}}|god|LSL_Generic/god|!}}|}}
{{{{#ifeq:{{#var:mode}}|request|LSL_Generic/request|!}}|}}
{{{{#if:{{{deprecated|}}}|LSL_Generic/deprecated|!}}|{{{deprecated|}}}|}}
}}{{#if:{{#var:self}}|| __NOEDITSECTION__
}}{{#var:header}}{{#if:{{#var:func_id}}{{#var:mode}}||
<div id="box" style="background:red;">
&nbsp;&nbsp;'''Don't delete the 'func_id''''
<div style="padding: 0.5em;background:#ffffff;">
''func_id is a bit of technical information that should not be removed as it is pertinent to anyone writing an LSL compiler or decompiler, so you go and revert the page or set the value properly right now :P.''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}{{#if:{{{also|}}}|<div id="box" style="background:yellow;">
&nbsp;&nbsp;''' 'also' Tag Removed'''
<div style="padding: 0.5em;background:#ffffff;">
''(Please use 'also_header','also_events','also_functions','also_articles', or 'also_footer')''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}{{#if:{{#if:{{{return_type|}}}|{{#var:return_text}}}}{{{func_desc|}}}||<div id="box" style="background:yellow;">
&nbsp;&nbsp;''' 'return_text' and 'func_desc' can both not be undefined'''
<div style="padding: 0.5em;background:#ffffff;">
''(Please use 'return_text' or 'func_desc' to describe the functions actions.)''</div></div>{{#if:{{#var:self}}|| [[Category:LSL FixMe]] }} }}
<div id="box">
<h2>Function: {{#if:{{{return_type|}}}|[[{{{return_type|}}}]]||}} [[{{{func}}}]]( {{#if:{{{p1_name|}}}{{{p1_type|}}}| [[{{{p1_type|}}}]] {{LSL Param|{{{p1_name|}}}}}{{#if:{{{p2_name|}}}{{{p2_type|}}}|, [[{{{p2_type|}}}]] {{LSL Param|{{{p2_name|}}}}}{{#if:{{{p3_name|}}}{{{p3_type|}}}|, [[{{{p3_type|}}}]] {{LSL Param|{{{p3_name|}}}}}{{#if:{{{p4_name|}}}{{{p4_type|}}}|, [[{{{p4_type|}}}]] {{LSL Param|{{{p4_name|}}}}}{{#if:{{{p5_name|}}}{{{p5_type|}}}|, [[{{{p5_type|}}}]] {{LSL Param|{{{p5_name|}}}}}{{#if:{{{p6_name|}}}{{{p6_type|}}}|, [[{{{p6_type|}}}]] {{LSL Param|{{{p6_name|}}}}}{{#if:{{{p7_name|}}}{{{p7_type|}}}|, [[{{{p7_type|}}}]] {{LSL Param|{{{p7_name|}}}}}{{#if:{{{p8_name|}}}{{{p8_type|}}}|, [[{{{p8_type|}}}]] {{LSL Param|{{{p8_name|}}}}}{{#if:{{{p9_name|}}}{{{p9_type|}}}|, [[{{{p9_type|}}}]] {{LSL Param|{{{p9_name|}}}}}{{#if:{{{p10_name|}}}{{{p10_type|}}}|, [[{{{p10_type|}}}]] {{LSL Param|{{{p10_name|}}}}}{{#if:{{{p11_name|}}}{{{p11_type|}}}|, [[{{{p11_type|}}}]] {{LSL Param|{{{p11_name|}}}}}{{#if:{{{p12_name|}}}{{{p12_type|}}}|, [[{{{p12_type|}}}]] {{LSL Param|{{{p12_name|}}}}}}}}}}}}}}}}}}}}}}}}}}}}} )<nowiki>;</nowiki></h2>
<div style="padding: 0.5em">{{#ifeq:{{#var:mode}}|user|{{#if:{{#var:floater}}|<div id="box" style="float:right;">{{#var:floater}}</div>}}|<div id="box" style="float:right;">
{{{!}} class="collapsible"
{{!}}- style="font-size:75%;"
{{!}}+
{{!}}-
{{!}}-
{{!!}} [ [[PRIM_TEXTURE]] ] {{!!}} [ {{HoverText|""|string texture}}, {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector repeats}}, {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector offsets}}, {{HoverText|0.0|float rotation_in_radians}} ]
{{!}} {{HoverText|{{#var:func_id}}|The function index number.}}
{{!}} [[LSL Function ID|Function ID]]
{{!}}-
{{!}}-
{{!!}} [ [[PRIM_COLOR]] ] {{!!}} [ {{HoverLink|ZERO_VECTOR|{{LSL VR|0.0|0.0|0.0}} vector color}}, {{HoverText|0.0|float alpha}} ]
{{!}} {{HoverText|{{{func_sleep|}}}|The number of seconds this script will sleep after executing this function.}}
{{!}} [[LSL Delay|Delay]]
{{!}}-
{{!}}-
{{!!}} [ [[PRIM_BUMP_SHINY]] ] {{!!}} [ {{HoverLink|PRIM_SHINY_NONE|(0) integer shiny}}, {{HoverLink|PRIM_BUMP_NONE|(0) integer bump}} ]
{{#if:{{{func_complexity|}}}|
{{!}}-
{{!}} {{HoverText|{{{func_complexity|}}}|The complexity of the function based on the parameters.}}
{{!!}} [ [[PRIM_FULLBRIGHT]] ] {{!!}} [ {{HoverLink|FALSE|(0) integer boolean}} ]
{{!}} [[LSL Complexity|Compl.]]
{{!}}-
{{!}}-}}
{{!!}} [ [[PRIM_TEXGEN]] ] {{!!}} [ {{HoverLink|PRIM_TEXGEN_DEFAULT|(0) integer type}} ]
{{!}} {{HoverText|{{{func_energy|}}}|The quantity of energy consumed by this function.}}
{{!}}}
{{!}} [[Energy|Energy]]
}}}}
{{!}}}</div>}}
{{LSL_Function/inventory|map|uuid=true|type=texture|{{#ifeq:{{{1|}}}|get|no_caveat=true}}|full={{{remote|}}}}}
{{#if:{{#var:header_desc}}|{{#var:header_desc}}<br/>{{#if:{{{return_type|}}}|<br/>}}}}{{#if:{{{return_type|}}}| Returns {{AAn|{{{return_type|}}}}} {{#if:{{#var:return_text}}| {{#var:return_text}} }}<br/>}}
{{LSL_Function/inventory|texture|uuid=true|type=texture|{{#ifeq:{{{1|}}}|get|no_caveat=true}}|full={{{remote|}}}}}
{{#if:{{{p1_name|}}}{{{p1_type|}}}|{{{!}}
{{#vardefine:p_rotation_in_radians_desc|}}
{{LSL DefineRow|1={{{p1_type|}}}|2={{{p1_name|}}}|3={{#var:p_{{{p1_name|}}}_desc}}}}
{{#vardefine:p_force_desc|}}
{{#if:{{{p2_name|}}}{{{p2_type|}}}|{{LSL DefineRow|1={{{p2_type|}}}|2={{{p2_name|}}}|3={{#var:p_{{{p2_name|}}}_desc}}}}
{{#vardefine:p_intensity_desc|}}
{{#if:{{{p3_name|}}}{{{p3_type|}}}|{{LSL DefineRow|1={{{p3_type|}}}|2={{{p3_name|}}}|3={{#var:p_{{{p3_name|}}}_desc}}}}
{{#vardefine:p_radius_desc|}}
{{#if:{{{p4_name|}}}{{{p4_type|}}}|{{LSL DefineRow|1={{{p4_type|}}}|2={{{p4_name|}}}|3={{#var:p_{{{p4_name|}}}_desc}}}}
{{#vardefine:p_falloff_desc|}} }}-->
{{#if:{{{p5_name|}}}{{{p5_type|}}}|{{LSL DefineRow|1={{{p5_type|}}}|2={{{p5_name|}}}|3={{#var:p_{{{p5_name|}}}_desc}}}}
{{!}}- {{Hl2}}
{{#if:{{{p6_name|}}}{{{p6_type|}}}|{{LSL DefineRow|1={{{p6_type|}}}|2={{{p6_name|}}}|3={{#var:p_{{{p6_name|}}}_desc}}}}
! colspan="2" {{!}} Parameter
{{#if:{{{p7_name|}}}{{{p7_type|}}}|{{LSL DefineRow|1={{{p7_type|}}}|2={{{p7_name|}}}|3={{#var:p_{{{p7_name|}}}_desc}}}}
! colspan="2" {{!}} Additional Parameters
{{#if:{{{p8_name|}}}{{{p8_type|}}}|{{LSL DefineRow|1={{{p8_type|}}}|2={{{p8_name|}}}|3={{#var:p_{{{p8_name|}}}_desc}}}}
! colspan="6" {{!}} Description
{{#if:{{{p9_name|}}}{{{p9_type|}}}|{{LSL DefineRow|1={{{p9_type|}}}|2={{{p9_name|}}}|3={{#var:p_{{{p9_name|}}}_desc}}}}
{{!}}-
{{#if:{{{p10_name|}}}{{{p10_type|}}}|{{LSL DefineRow|1={{{p10_type|}}}|2={{{p10_name|}}}|3={{#var:p_{{{p10_name|}}}_desc}}}}
{{LSL ConstTB|PRIM_TYPE|integer|9|b=[&nbsp;|e=&nbsp;]|s=rowspan="18"}}
{{#if:{{{p11_name|}}}{{{p11_type|}}}|{{LSL DefineRow|1={{{p11_type|}}}|2={{{p11_name|}}}|3={{#var:p_{{{p11_name|}}}_desc}}}}
{{!}} colspan="2" {{!}} [ [[integer]]&nbsp;{{HoverText|flag|PRIM_TYPE_* flag}} ]
{{#if:{{{p12_name|}}}{{{p12_type|}}}|{{LSL DefineRow|1={{{p12_type|}}}|2={{{p12_name|}}}|3={{#var:p_{{{p12_name|}}}_desc}}}}
{{!}} colspan="6" {{!}} {{GetSet|{{{1|}}}|Gets|Sets}} the prim shape.
}}}}}}}}}}}}}}}}}}}}}}
{{!}}-
{{!}}} }}
! colspan="2" {{!}} {{HoverText|flag|PRIM_TYPE_* flag}} Constants
{{#if:{{#var:header_footnote}}|<br/>
! colspan="6" {{!}} Flag Parameters
{{#var:header_footnote}}}}
{{!}}-
<div style="clear:right;"></div>
{{LSL ConstTB|PRIM_TYPE_BOX|integer|0}}
</div></div>{{#if:{{#var:spec}}|<div id="box">
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_box|twist}}, [[vector]]&nbsp;{{LSL Param|z_taper|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
<h2>Specification</h2>
{{!}}-
<div style="padding: 0.5em">
{{LSL ConstTB|PRIM_TYPE_CYLINDER|integer|1}}
{{#var:spec}}
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_box|twist}}, [[vector]]&nbsp;{{LSL Param|z_taper|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
</div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants}}{{{constants|}}}|
{{!}}-
{{#var:constants_nb}}
{{LSL ConstTB|PRIM_TYPE_PRISM|integer|2}}
{{{constants|}}}{{#if:{{#var:constants}}|
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_box|twist}}, [[vector]]&nbsp;{{LSL Param|z_taper|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
<div id="box">
{{!}}-
<h2>Constants</h2>
{{LSL ConstTB|PRIM_TYPE_SPHERE|integer|3}}
{{#var:constants}}
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|cut|dimple}}]
</div>}}}}{{#if:{{#var:caveats}}|<div id="box">
{{!}}-
<h2>Caveats</h2>
{{LSL ConstTB|PRIM_TYPE_TORUS|integer|4}}
<div style="padding: 0.5em">
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|hole_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}, [[vector]]&nbsp;{{LSL Param|taper}}, [[float]]&nbsp;{{LSL Param|revolutions}}, [[float]]&nbsp;{{LSL Param|radius_offset}}, [[float]]&nbsp;{{LSL Param|skew}}&nbsp;]
{{#var:caveats}}
{{!}}-
</div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|<div id="box">
{{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
<h2>Examples</h2>
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|hole_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}, [[vector]]&nbsp;{{LSL Param|taper}}, [[float]]&nbsp;{{LSL Param|revolutions}}, [[float]]&nbsp;{{LSL Param|radius_offset}}, [[float]]&nbsp;{{LSL Param|skew}}&nbsp;]
<div style="padding: 0.5em">
{{!}}-
{{#var:examples}}
{{LSL ConstTB|PRIM_TYPE_RING|integer|6}}
</div></div>}}{{#if:{{#var:helpers}}|<div id="box">
{{!}} colspan="6" {{!}} [ [[integer]]&nbsp;{{LSL Param|hole_shape}}, [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|twist_torus|twist}}, [[vector]]&nbsp;{{LSL Param|hole_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}, [[vector]]&nbsp;{{LSL Param|taper}}, [[float]]&nbsp;{{LSL Param|revolutions}}, [[float]]&nbsp;{{LSL Param|radius_offset}}, [[float]]&nbsp;{{LSL Param|skew}}&nbsp;]
<h2>Useful Snippets</h2>
{{!}}-
<div style="padding: 0.5em">
{{LSL ConstTB|PRIM_TYPE_SCULPT|integer|7}}
{{#var:helpers}}
{{!}} colspan="6" {{!}} [ [[string]]&nbsp;{{LSL Param|map}},&nbsp;[[integer]]&nbsp;{{LSL Param|type}}&nbsp;] [[Sculpted_Prims:_FAQ]]
</div></div>}}{{#if:{{#var:notes}}|<div id="box">
{{!}}-
<h2>Notes</h2>
{{!}} rowspan="8" colspan="2" {{!}} &nbsp;
<div style="padding: 0.5em">
! colspan="2" {{!}} {{LSL Param|hole_shape}}&nbsp;Flags
{{#var:notes}}
!{{!}} Shape
</div></div>}}{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}{{#var:also_library}}|<div id="box">
! colspan="2" {{!}} {{LSL Param|hole_shape}}&nbsp;Flags
<h2>See Also</h2>
!{{!}} Shape
<div style="padding: 0.5em">
{{!}}-
{{#if:{{#var:also_header}}|
{{LSL ConstTB|PRIM_HOLE_DEFAULT|integer|hex=0x00}}
{{#var:also_header}}}}{{#if:{{#var:also_events}}|
{{!}} Default
<h3>Events</h3>
{{LSL ConstTB|PRIM_HOLE_SQUARE|integer|hex=0x20}}
{{{!}}
{{!}} Square
{{#var:also_events}}
{{!}}-
{{!}}} }}{{#if:{{#var:also_functions}}|
{{LSL ConstTB|PRIM_HOLE_CIRCLE|integer|hex=0x10}}
<h3>Functions</h3>
{{!}} Circle
{{{!}}
{{LSL ConstTB|PRIM_HOLE_TRIANGLE|integer|hex=0x30}}
{{#var:also_functions}}
{{!}} Triangle
{{!}}} }}{{#if:{{#var:also_tests}}|
{{!}}-
<h3>Tests</h3>
! colspan="2" {{!}} {{LSL Param|type}}&nbsp;Flags
{{{!}}
! {{!}} Style
{{#var:also_tests}}
! colspan="3" {{!}} Description
{{!}}} }}{{#if:{{#var:also_articles}}|
{{!}}-
<h3>Articles</h3>
{{LSL ConstTB|PRIM_SCULPT_TYPE_SPHERE|integer|1}}
{{{!}}
{{!}}Sphere
{{#var:also_articles}}
{{!}} colspan="3" {{!}} Converge top & bottom, stitch left side to right
{{!}}} }}{{#if:{{#var:also_library}}|
{{!}}-
<h3>Library and Examples</h3>
{{LSL ConstTB|PRIM_SCULPT_TYPE_TORUS|integer|2}}
{{!}}Torus
{{!}} colspan="3" {{!}} Stitch top to bottom, stitch left side to right
{{!}}-
{{LSL ConstTB|PRIM_SCULPT_TYPE_PLANE|integer|3}}
{{!}}Plane
{{!}} colspan="3" {{!}} No stitching or converging
{{!}}-
{{LSL ConstTB|PRIM_SCULPT_TYPE_CYLINDER|integer|4}}
{{!}}Cylinder
{{!}} colspan="3" {{!}} Stitch left side to right, double sided polygons?
{{!}}-
{{!}} colspan="10" {{!}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL|integer|2|b=[&nbsp;|e=&nbsp;]|s=rowspan="10"}}
{{!}} colspan="2" {{!}} [ [[integer]]&nbsp;{{HoverText|flag|PRIM_MATERIAL_* flag}}]
{{!}} colspan="6" {{!}} {{GetSet|{{{1|}}}|Gets|Sets}} the prim's material. The material determines the default [[llCollisionSound|collision sound]] & [[llCollisionSprite|sprite]].
{{!}}-
! colspan="2" {{!}} {{HoverText|flag|PRIM_MATERIAL_* flag}} Constants
! colspan="6" {{!}} Flag Description
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_STONE|integer|0|m=3|s3=colspan="6"|c=stone}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_METAL|integer|1|m=3|s3=colspan="6"|c=metal}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_GLASS|integer|2|m=3|s3=colspan="6"|c=glass}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_WOOD|integer|3|m=3|s3=colspan="6"|c=wood}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_FLESH|integer|4|m=3|s3=colspan="6"|c=flesh}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_PLASTIC|integer|5|m=3|s3=colspan="6"|c=plastic}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_RUBBER|integer|6|m=3|s3=colspan="6"|c=rubber}}
{{!}}-
{{LSL ConstTB|PRIM_MATERIAL_LIGHT|integer|7|b=<s>|e=</s>|c=light, DEPRECATED: Looks the same as [&nbsp;PRIM_FULLBRIGHT, ALL_SIDES, TRUE&nbsp;]}}
{{!}} colspan="6" {{!}}light, '''DEPRECATED''': Looks the same as [&nbsp;[[PRIM_FULLBRIGHT]], [[ALL_SIDES]], [[TRUE]]&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_PHYSICS|integer|3|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
{{!}} colspan="3" {{!}} Physics status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
{{!}}-
{{LSL ConstTB|PRIM_TEMP_ON_REZ|integer|4|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
{{!}} colspan="3" {{!}} Temp on rez status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
{{!}}-
{{LSL ConstTB|PRIM_PHANTOM|integer|5|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
{{!}} colspan="3" {{!}} Phantom status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
{{!}}-
{{LSL ConstTB|PRIM_POSITION|integer|6|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[vector]]&nbsp;{{LSL Param|position}}&nbsp;]
{{!}} colspan="3" {{!}} Position, {{GetSet|{{{1|}}}|[[llGetPos]]|[[llSetPos]]}}
{{!}}-
{{LSL ConstTB|PRIM_ROTATION|integer|8|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[rotation]]&nbsp;{{LSL Param|rot}}&nbsp;]
{{!}} colspan="3" {{!}} Rotation, {{GetSet|{{{1|}}}|[[llGetRot]]|[[llSetRot]]}}
{{!}}-
{{LSL ConstTB|PRIM_SIZE|integer|7|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[vector]]&nbsp;{{LSL Param|size}}&nbsp;]
{{!}} colspan="3" {{!}} Size, {{GetSet|{{{1|}}}|[[llGetScale]]|[[llSetScale]]}}
{{!}}-
{{LSL ConstTB|PRIM_TEXTURE|integer|17|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[string]]&nbsp;{{LSL Param|texture}}, [[vector]]&nbsp;{{LSL Param|repeats}}, [[vector]]&nbsp;{{LSL Param|offsets}}, [[float]]&nbsp;{{LSL Param|rotation_in_radians}}&nbsp;]
{{!}} colspan="3" {{!}}
{{{!}}
{{{!}}
{{!}}{{!}}{{LSLGC|Texture}}: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTexture]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llSetTexture]]}}
{{#var:also_library}}
{{!}}-
{{!}}} }}
{{!}}{{!}}Repeats: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTextureScale]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llScaleTexture]]}}
{{#if:{{#var:also_footer}}|<br/>{{#var:also_footer}}}}
{{!}}-
</div></div>}}{{#if:{{#var:location}}|<div id="box">
{{!}}{{!}}Offset: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTextureOffset]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llOffsetTexture]]}}
<h2>Source Location</h2>
{{!}}-
<div style="padding: 0.5em">
{{!}}{{!}}Rotation: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetTextureRot]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llRotateTexture]]}}
{{#var:location}}
{{!}}}
</div></div>}}{{#if:{{{history|}}}{{{bugs|}}}|<div id="box">
{{!}}-
<h2>History</h2>
{{LSL ConstTB|PRIM_COLOR|integer|18|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]}}
<div style="padding: 0.5em">
{{!}} colspan="5" {{!}} [ [[vector]]&nbsp;{{LSL Param|color}}, [[float]]&nbsp;{{LSL Param|alpha}}&nbsp;]
{{#if:{{{bugs|}}}|<h3>Bugs</h3>
{{!}} colspan="3" {{!}}  
{{{!}}
{{{!}}
{{!}}{{!}}{{LSLGC|Alpha}}: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetAlpha]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llSetAlpha]]}}
{{{bugs}}}
{{!}}-
{{!}}} }}
{{!}}{{!}}{{LSLGC|Color}}: {{!}}{{!}} {{#ifeq:{{{1|get}}}|get|[[llGetColor]]}} {{!}}{{!}} {{#ifeq:{{{1|set}}}|set|[[llSetColor]]}}
{{{history|}}}
{{!}}}
</div></div>}}{{#if:{{{comments|}}}|<div id="box">
{{!}}-
<h2>Comments</h2>
{{LSL ConstTB|PRIM_BUMP_SHINY|integer|19|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]|s=rowspan="25"}}
<div style="padding: 0.5em">
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{HoverText|shiny|PRIM_SHINY_* flag}}, [[integer]]&nbsp;{{HoverText|bump|PRIM_BUMP_* flag}}&nbsp;]
{{{comments|}}}
{{!}} colspan="3" {{!}}
</div></div>}}
{{!}}-
{{#var:footer}} {{#if:{{#var:self}}|| {{#switch:{{#var:mode}}|request|user=| [[Category:LSL Functions]] {{#if:{{#var:examples}}||[[Category:LSL Needs Example]]}}}} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1}}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2}}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3}}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4}}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5}}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6}}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7}}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8}}}]]}} }}</includeonly>
! colspan="2" {{!}} {{HoverText|shiny|PRIM_SHINY_* flag}} & {{HoverText|bump|PRIM_BUMP_* flag}} Constants
! colspan="6" {{!}} Description
{{!}}-
{{LSL ConstTB|PRIM_SHINY_NONE|integer|0|m=3|s3=colspan="6"|c=none}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_LOW|integer|1|m=3|s3=colspan="6"|c=low}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_MEDIUM|integer|2|m=3|s3=colspan="6"|c=medium}}
{{!}}-
{{LSL ConstTB|PRIM_SHINY_HIGH|integer|3|m=3|s3=colspan="6"|c=high}}
{{!}}-
{{!}}
{{!}}
{{!}} colspan="6" {{!}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_NONE|integer|0|m=3|s3=colspan="6"|c=none: no bump map}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BRIGHT|integer|1|m=3|s3=colspan="6"|c=brightness: generate from highlights}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_DARK|integer|2|m=3|s3=colspan="6"|c=darkness: generate from lowlights}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_WOOD|integer|3|m=3|s3=colspan="6"|c=woodgrain}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BARK|integer|4|m=3|s3=colspan="6"|c=bark}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BRICKS|integer|5|m=3|s3=colspan="6"|c=bricks}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_CHECKER|integer|6|m=3|s3=colspan="6"|c=checker}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_CONCRETE|integer|7|m=3|s3=colspan="6"|c=concrete}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_TILE|integer|8|m=3|s3=colspan="6"|c=crustytile}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_STONE|integer|9|m=3|s3=colspan="6"|c=cutstone: blocks}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_DISKS|integer|10|m=3|s3=colspan="6"|c=discs: packed circles}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_GRAVEL|integer|11|m=3|s3=colspan="6"|c=gravel}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_BLOBS|integer|12|m=3|s3=colspan="6"|c=petridish: blobby amoeba like shapes}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_SIDING|integer|13|m=3|s3=colspan="6"|c=siding}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_LARGETILE|integer|14|m=3|s3=colspan="6"|c=stonetile}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_STUCCO|integer|15|m=3|s3=colspan="6"|c=stucco}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_SUCTION|integer|16|m=3|s3=colspan="6"|c=suction: rings}}
{{!}}-
{{LSL ConstTB|PRIM_BUMP_WEAVE|integer|17|m=3|s3=colspan="6"|c=weave}}
{{!}}-
{{LSL ConstTB|PRIM_FULLBRIGHT|integer|20|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
{{LSL ConstTB|PRIM_FLEXIBLE|integer|21|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}, [[integer]]&nbsp;{{HoverText|softness|ranges from 0 to 4}}, [[float]]&nbsp;{{LSL Param|flex_float|gravity}}, [[float]]&nbsp;{{LSL Param|flex_float|friction}}, [[float]]&nbsp;{{LSL Param|flex_float|wind}}, [[float]]&nbsp;{{LSL Param|flex_float|tension}}, [[vector]]&nbsp;{{LSL Param|force}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
{{LSL ConstTB|PRIM_TEXGEN|integer|22|b=[&nbsp;|e=, [[integer]]&nbsp;{{LSL Param|face}}&nbsp;]|s=rowspan="4"}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{HoverText|type|PRIM_TEXGEN_* flag}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
! colspan="2" {{!}} {{HoverText|type|PRIM_TEXGEN_* flag}} Constants
! colspan="6" {{!}} Description
{{!}}-
{{LSL ConstTB|PRIM_TEXGEN_DEFAULT|integer|0|m=3|s3=colspan="6"|c=}}
{{!}}-
{{LSL ConstTB|PRIM_TEXGEN_PLANAR|integer|1|m=3|s3=colspan="6"|c=}}
{{!}}-
{{LSL ConstTB|PRIM_POINT_LIGHT|integer|23|b=[&nbsp;|e=&nbsp;]}}
{{!}} colspan="5" {{!}} [ [[integer]]&nbsp;{{LSL Param|boolean}}, [[vector]]&nbsp;{{LSL Param|color}}, [[float]]&nbsp;{{LSL Param|intensity}}, [[float]]&nbsp;{{LSL Param|radius}}, [[float]]&nbsp;{{LSL Param|falloff}}&nbsp;]
{{!}} colspan="3" {{!}}
{{!}}-
{{#ifeq:{{{1|set}}}|set|
{{!}} rowspan="8" {{!}} [ 1 ]<br/><s>PRIM_TYPE_LEGACY</s>
{{!}} rowspan="8" {{!}} 1
{{!}} colspan="8" {{!}} [ [[integer]]&nbsp;{{HoverText|flag|PRIM_TYPE_* flag}}, paramaters ]
{{!}}-
! colspan="2" {{!}} {{HoverText|flag|PRIM_TYPE_* flag}} Constants
! colspan="6" {{!}} Flag Parameters
{{!}}-
{{LSL ConstTB|PRIM_TYPE_BOX|integer|0}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[vector]]&nbsp;{{LSL Param|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_CYLINDER|integer|1}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[vector]]&nbsp;{{LSL Param|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_PRISM|integer|2}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[vector]]&nbsp;{{LSL Param|top_size}}, [[vector]]&nbsp;{{LSL Param|top_shear}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_SPHERE|integer|3}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[vector]]&nbsp;{{LSL Param|cut|dimple}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_TORUS|integer|4}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[float]]&nbsp;{{LSL Param|hole_size_y}}, [[vector]]&nbsp;{{LSL Param|top_shear}}, [[vector]]&nbsp;{{LSL Param|cut|advanced_cut}}&nbsp;]
{{!}}-
{{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
{{!}} colspan="6" {{!}} [ [[vector]]&nbsp;{{LSL Param|cut}}, [[float]]&nbsp;{{LSL Param|hollow}}, [[float]]&nbsp;{{LSL Param|twist_end}}, [[float]]&nbsp;{{LSL Param|topshear_x}}&nbsp;]
}}
{{!}}-
{{!}}}
<noinclude>
<div id="box">
== Caveats ==
<div style="padding: 0.5em;">
{{#var:caveats}}
</div></div>
</noinclude>

Latest revision as of 14:38, 17 December 2010