|
|
(19 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|}}}}} |
| <!--
| | {{#vardefine:p_{{{p12_name|}}}_desc|{{#var:p_{{{p12_name|}}}_desc}}{{{p12_desc|}}}}} |
| {{LSL_Function/color|color}} | | {{#vardefine:p_{{{p12_name|}}}_hover|{{#var:p_{{{p12_name|}}}_hover}}{{{p12_hover|}}}}} |
| {{LSL_Function/alpha|alpha}} | | {{#vardefine:return_text|{{#var:return_text}}{{{return_text|}}} }} |
| {{LSL_Function/face|face|flag|return={{#ifeq:{{{1|get}}}|get|... | | {{#vardefine:spec|{{#if:{{#var:spec}}|{{#var:spec}}<br/>}}{{{spec|}}}}} |
| :{{{!}}{{Prettytable}} | | {{#vardefine:examples|{{#var:examples}}{{{examples|}}}}} |
| {{!}}-{{Hl2}} | | {{#vardefine:helpers|{{#var:helpers}}{{{helpers|}}}}} |
| !{{HoverText|flag|PRIM_* flag}} | | {{#vardefine:also_header|{{#var:also_header}}{{{also_header|}}}}} |
| !Return if face is invalid | | {{#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;"> |
| | '''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;"> |
| | ''' '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;"> |
| | ''' '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|}}}|{{{!}} |
| -->
| | {{LSL DefineRow|1={{{p1_type|}}}|2={{{p1_name|}}}|3={{#var:p_{{{p1_name|}}}_desc}}}} |
| {{#vardefine:p_rotation_in_radians_desc|}} | | {{#if:{{{p2_name|}}}{{{p2_type|}}}|{{LSL DefineRow|1={{{p2_type|}}}|2={{{p2_name|}}}|3={{#var:p_{{{p2_name|}}}_desc}}}} |
| {{#vardefine:p_force_desc|}} | | {{#if:{{{p3_name|}}}{{{p3_type|}}}|{{LSL DefineRow|1={{{p3_type|}}}|2={{{p3_name|}}}|3={{#var:p_{{{p3_name|}}}_desc}}}} |
| {{#vardefine:p_intensity_desc|}} | | {{#if:{{{p4_name|}}}{{{p4_type|}}}|{{LSL DefineRow|1={{{p4_type|}}}|2={{{p4_name|}}}|3={{#var:p_{{{p4_name|}}}_desc}}}} |
| {{#vardefine:p_radius_desc|}} | | {{#if:{{{p5_name|}}}{{{p5_type|}}}|{{LSL DefineRow|1={{{p5_type|}}}|2={{{p5_name|}}}|3={{#var:p_{{{p5_name|}}}_desc}}}} |
| {{#vardefine:p_falloff_desc|}} }} | | {{#if:{{{p6_name|}}}{{{p6_type|}}}|{{LSL DefineRow|1={{{p6_type|}}}|2={{{p6_name|}}}|3={{#var:p_{{{p6_name|}}}_desc}}}} |
| {{!}}- {{Hl2}} | | {{#if:{{{p7_name|}}}{{{p7_type|}}}|{{LSL DefineRow|1={{{p7_type|}}}|2={{{p7_name|}}}|3={{#var:p_{{{p7_name|}}}_desc}}}} |
| ! colspan="2" {{!}} Parameter
| | {{#if:{{{p8_name|}}}{{{p8_type|}}}|{{LSL DefineRow|1={{{p8_type|}}}|2={{{p8_name|}}}|3={{#var:p_{{{p8_name|}}}_desc}}}} |
| ! colspan="2" {{!}} Additional Parameters
| | {{#if:{{{p9_name|}}}{{{p9_type|}}}|{{LSL DefineRow|1={{{p9_type|}}}|2={{{p9_name|}}}|3={{#var:p_{{{p9_name|}}}_desc}}}} |
| ! colspan="6" {{!}} Description
| | {{#if:{{{p10_name|}}}{{{p10_type|}}}|{{LSL DefineRow|1={{{p10_type|}}}|2={{{p10_name|}}}|3={{#var:p_{{{p10_name|}}}_desc}}}} |
| {{!}}- | | {{#if:{{{p11_name|}}}{{{p11_type|}}}|{{LSL DefineRow|1={{{p11_type|}}}|2={{{p11_name|}}}|3={{#var:p_{{{p11_name|}}}_desc}}}} |
| {{LSL ConstTB|PRIM_TYPE|integer|9|b=[ |e= ]|s=rowspan="18"}} | | {{#if:{{{p12_name|}}}{{{p12_type|}}}|{{LSL DefineRow|1={{{p12_type|}}}|2={{{p12_name|}}}|3={{#var:p_{{{p12_name|}}}_desc}}}} |
| {{!}} colspan="2" {{!}} [ [[integer]] {{HoverText|flag|PRIM_TYPE_* flag}} ] | | }}}}}}}}}}}}}}}}}}}}}} |
| {{!}} colspan="6" {{!}} {{GetSet|{{{1|}}}|Gets|Sets}} the prim shape.
| | {{!}}} }} |
| {{!}}- | | {{#if:{{#var:header_footnote}}|<br/> |
| ! colspan="2" {{!}} {{HoverText|flag|PRIM_TYPE_* flag}} Constants
| | {{#var:header_footnote}}}} |
| ! colspan="6" {{!}} Flag Parameters
| | <div style="clear:right;"></div> |
| {{!}}-
| | </div></div>{{#if:{{#var:spec}}|<div id="box"> |
| {{LSL ConstTB|PRIM_TYPE_BOX|integer|0}} | | <h2>Specification</h2> |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_box|twist}}, [[vector]] {{LSL Param|z_taper|top_size}}, [[vector]] {{LSL Param|top_shear}} ] | | <div style="padding: 0.5em"> |
| {{!}}- | | {{#var:spec}} |
| {{LSL ConstTB|PRIM_TYPE_CYLINDER|integer|1}} | | </div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants}}{{{constants|}}}| |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_box|twist}}, [[vector]] {{LSL Param|z_taper|top_size}}, [[vector]] {{LSL Param|top_shear}} ]
| | {{#var:constants_nb}} |
| {{!}}-
| | {{{constants|}}}{{#if:{{#var:constants}}| |
| {{LSL ConstTB|PRIM_TYPE_PRISM|integer|2}}
| | <div id="box"> |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_box|twist}}, [[vector]] {{LSL Param|z_taper|top_size}}, [[vector]] {{LSL Param|top_shear}} ] | | <h2>Constants</h2> |
| {{!}}- | | {{#var:constants}} |
| {{LSL ConstTB|PRIM_TYPE_SPHERE|integer|3}} | | </div>}}}}{{#if:{{#var:caveats}}|<div id="box"> |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_torus|twist}}, [[vector]] {{LSL Param|cut|dimple}}] | | <h2>Caveats</h2> |
| {{!}}- | | <div style="padding: 0.5em"> |
| {{LSL ConstTB|PRIM_TYPE_TORUS|integer|4}} | | {{#var:caveats}} |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_torus|twist}}, [[vector]] {{LSL Param|hole_size}}, [[vector]] {{LSL Param|top_shear}}, [[vector]] {{LSL Param|cut|advanced_cut}}, [[vector]] {{LSL Param|taper}}, [[float]] {{LSL Param|revolutions}}, [[float]] {{LSL Param|radius_offset}}, [[float]] {{LSL Param|skew}} ] | | </div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|<div id="box"> |
| {{!}}-
| | <h2>Examples</h2> |
| {{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}} | | <div style="padding: 0.5em"> |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_torus|twist}}, [[vector]] {{LSL Param|hole_size}}, [[vector]] {{LSL Param|top_shear}}, [[vector]] {{LSL Param|cut|advanced_cut}}, [[vector]] {{LSL Param|taper}}, [[float]] {{LSL Param|revolutions}}, [[float]] {{LSL Param|radius_offset}}, [[float]] {{LSL Param|skew}} ] | | {{#var:examples}} |
| {{!}}- | | </div></div>}}{{#if:{{#var:helpers}}|<div id="box"> |
| {{LSL ConstTB|PRIM_TYPE_RING|integer|6}} | | <h2>Useful Snippets</h2> |
| {{!}} colspan="6" {{!}} [ [[integer]] {{LSL Param|hole_shape}}, [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|twist_torus|twist}}, [[vector]] {{LSL Param|hole_size}}, [[vector]] {{LSL Param|top_shear}}, [[vector]] {{LSL Param|cut|advanced_cut}}, [[vector]] {{LSL Param|taper}}, [[float]] {{LSL Param|revolutions}}, [[float]] {{LSL Param|radius_offset}}, [[float]] {{LSL Param|skew}} ] | | <div style="padding: 0.5em"> |
| {{!}}- | | {{#var:helpers}} |
| {{LSL ConstTB|PRIM_TYPE_SCULPT|integer|7}}
| | </div></div>}}{{#if:{{#var:notes}}|<div id="box"> |
| {{!}} colspan="6" {{!}} [ [[string]] {{LSL Param|map}}, [[integer]] {{LSL Param|type}} ] [[Sculpted_Prims:_FAQ]] | | <h2>Notes</h2> |
| {{!}}-
| | <div style="padding: 0.5em"> |
| {{!}} rowspan="8" colspan="2" {{!}}
| | {{#var:notes}} |
| ! colspan="2" {{!}} {{LSL Param|hole_shape}} Flags
| | </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"> |
| !{{!}} Shape
| | <h2>See Also</h2> |
| ! colspan="2" {{!}} {{LSL Param|hole_shape}} Flags
| | <div style="padding: 0.5em"> |
| !{{!}} Shape
| | {{#if:{{#var:also_header}}| |
| {{!}}- | | {{#var:also_header}}}}{{#if:{{#var:also_events}}| |
| {{LSL ConstTB|PRIM_HOLE_DEFAULT|integer|hex=0x00}}
| | <h3>Events</h3> |
| {{!}} Default | | {{{!}} |
| {{LSL ConstTB|PRIM_HOLE_SQUARE|integer|hex=0x20}} | | {{#var:also_events}} |
| {{!}} Square | | {{!}}} }}{{#if:{{#var:also_functions}}| |
| {{!}}- | | <h3>Functions</h3> |
| {{LSL ConstTB|PRIM_HOLE_CIRCLE|integer|hex=0x10}} | | {{{!}} |
| {{!}} Circle | | {{#var:also_functions}} |
| {{LSL ConstTB|PRIM_HOLE_TRIANGLE|integer|hex=0x30}} | | {{!}}} }}{{#if:{{#var:also_tests}}| |
| {{!}} Triangle | | <h3>Tests</h3> |
| {{!}}-
| | {{{!}} |
| ! colspan="2" {{!}} {{LSL Param|type}} Flags
| | {{#var:also_tests}} |
| ! {{!}} Style
| | {{!}}} }}{{#if:{{#var:also_articles}}| |
| ! colspan="3" {{!}} Description
| | <h3>Articles</h3> |
| {{!}}- | | {{{!}} |
| {{LSL ConstTB|PRIM_SCULPT_TYPE_SPHERE|integer|1}} | | {{#var:also_articles}} |
| {{!}}Sphere | | {{!}}} }}{{#if:{{#var:also_library}}| |
| {{!}} colspan="3" {{!}} Converge top & bottom, stitch left side to right | | <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=[ |e= ]|s=rowspan="10"}}
| |
| {{!}} colspan="2" {{!}} [ [[integer]] {{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 [ PRIM_FULLBRIGHT, ALL_SIDES, TRUE ]}}
| |
| {{!}} colspan="6" {{!}}light, '''DEPRECATED''': Looks the same as [ [[PRIM_FULLBRIGHT]], [[ALL_SIDES]], [[TRUE]] ]
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_PHYSICS|integer|3|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{LSL Param|boolean}} ]
| |
| {{!}} colspan="3" {{!}} Physics status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_TEMP_ON_REZ|integer|4|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{LSL Param|boolean}} ]
| |
| {{!}} colspan="3" {{!}} Temp on rez status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_PHANTOM|integer|5|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{LSL Param|boolean}} ]
| |
| {{!}} colspan="3" {{!}} Phantom status {{GetSet|{{{1|}}}|[[llGetStatus]]|[[llSetStatus]]}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_POSITION|integer|6|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[vector]] {{LSL Param|position}} ]
| |
| {{!}} colspan="3" {{!}} Position, {{GetSet|{{{1|}}}|[[llGetPos]]|[[llSetPos]]}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_ROTATION|integer|8|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[rotation]] {{LSL Param|rot}} ]
| |
| {{!}} colspan="3" {{!}} Rotation, {{GetSet|{{{1|}}}|[[llGetRot]]|[[llSetRot]]}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_SIZE|integer|7|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[vector]] {{LSL Param|size}} ]
| |
| {{!}} colspan="3" {{!}} Size, {{GetSet|{{{1|}}}|[[llGetScale]]|[[llSetScale]]}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_TEXTURE|integer|17|b=[ |e=, [[integer]] {{LSL Param|face}} ]}}
| |
| {{!}} colspan="5" {{!}} [ [[string]] {{LSL Param|texture}}, [[vector]] {{LSL Param|repeats}}, [[vector]] {{LSL Param|offsets}}, [[float]] {{LSL Param|rotation_in_radians}} ]
| |
| {{!}} 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=[ |e=, [[integer]] {{LSL Param|face}} ]}}
| | <div style="padding: 0.5em"> |
| {{!}} colspan="5" {{!}} [ [[vector]] {{LSL Param|color}}, [[float]] {{LSL Param|alpha}} ]
| | {{#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=[ |e=, [[integer]] {{LSL Param|face}} ]|s=rowspan="25"}}
| | <div style="padding: 0.5em"> |
| {{!}} colspan="5" {{!}} [ [[integer]] {{HoverText|shiny|PRIM_SHINY_* flag}}, [[integer]] {{HoverText|bump|PRIM_BUMP_* flag}} ]
| | {{{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=[ |e=, [[integer]] {{LSL Param|face}} ]}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{LSL Param|boolean}} ] | |
| {{!}} colspan="3" {{!}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_FLEXIBLE|integer|21|b=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{LSL Param|boolean}}, [[integer]] {{HoverText|softness|ranges from 0 to 4}}, [[float]] {{LSL Param|flex_float|gravity}}, [[float]] {{LSL Param|flex_float|friction}}, [[float]] {{LSL Param|flex_float|wind}}, [[float]] {{LSL Param|flex_float|tension}}, [[vector]] {{LSL Param|force}} ]
| |
| {{!}} colspan="3" {{!}}
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_TEXGEN|integer|22|b=[ |e=, [[integer]] {{LSL Param|face}} ]|s=rowspan="4"}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{HoverText|type|PRIM_TEXGEN_* flag}} ] | |
| {{!}} 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=[ |e= ]}}
| |
| {{!}} colspan="5" {{!}} [ [[integer]] {{LSL Param|boolean}}, [[vector]] {{LSL Param|color}}, [[float]] {{LSL Param|intensity}}, [[float]] {{LSL Param|radius}}, [[float]] {{LSL Param|falloff}} ]
| |
| {{!}} colspan="3" {{!}}
| |
| {{!}}-
| |
| {{#ifeq:{{{1|set}}}|set| | |
| {{!}} rowspan="8" {{!}} [ 1 ]<br/><s>PRIM_TYPE_LEGACY</s>
| |
| {{!}} rowspan="8" {{!}} 1 | |
| {{!}} colspan="8" {{!}} [ [[integer]] {{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]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[float]] {{LSL Param|twist_end}}, [[vector]] {{LSL Param|top_size}}, [[vector]] {{LSL Param|top_shear}} ]
| |
| {{!}}- | |
| {{LSL ConstTB|PRIM_TYPE_CYLINDER|integer|1}}
| |
| {{!}} colspan="6" {{!}} [ [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[float]] {{LSL Param|twist_end}}, [[vector]] {{LSL Param|top_size}}, [[vector]] {{LSL Param|top_shear}} ]
| |
| {{!}}- | |
| {{LSL ConstTB|PRIM_TYPE_PRISM|integer|2}} | |
| {{!}} colspan="6" {{!}} [ [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[float]] {{LSL Param|twist_end}}, [[vector]] {{LSL Param|top_size}}, [[vector]] {{LSL Param|top_shear}} ]
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_TYPE_SPHERE|integer|3}}
| |
| {{!}} colspan="6" {{!}} [ [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[vector]] {{LSL Param|cut|dimple}} ]
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_TYPE_TORUS|integer|4}}
| |
| {{!}} colspan="6" {{!}} [ [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[float]] {{LSL Param|twist_end}}, [[float]] {{LSL Param|hole_size_y}}, [[vector]] {{LSL Param|top_shear}}, [[vector]] {{LSL Param|cut|advanced_cut}} ]
| |
| {{!}}-
| |
| {{LSL ConstTB|PRIM_TYPE_TUBE|integer|5}}
| |
| {{!}} colspan="6" {{!}} [ [[vector]] {{LSL Param|cut}}, [[float]] {{LSL Param|hollow}}, [[float]] {{LSL Param|twist_end}}, [[float]] {{LSL Param|topshear_x}} ]
| |
| }}
| |
| {{!}}}
| |
| <noinclude>
| |
| <div id="box">
| |
| == Caveats ==
| |
| <div style="padding: 0.5em;">
| |
| {{#var:caveats}}
| |
| </div></div>
| |
| </noinclude> | |