From Second Life Wiki
Template:Needs Translation/LSL/es
Template:Needs Translation/LSL/el
Template:Needs Translation/LSL/he
Template:Needs Translation/LSL/it
Template:Needs Translation/LSL/ko
Template:Needs Translation/LSL/nl
Template:Needs Translation/LSL/hu
Template:Needs Translation/LSL/no
Template:Needs Translation/LSL/da
Template:Needs Translation/LSL/sv
Template:Needs Translation/LSL/tr
Template:Needs Translation/LSL/pl
Template:Needs Translation/LSL/pt
Template:Needs Translation/LSL/ru
Template:Needs Translation/LSL/uk
Template:Needs Translation/LSL/zh-Hans
Template:Needs Translation/LSL/zh-Hant
/LSL
PRIM_TYPE_SPHERE
Description
Constant: integer PRIM_TYPE_SPHERE = 3;
The integer constant PRIM_TYPE_SPHERE has the value 3
PRIM_TYPE_SPHERE is a parameter of PRIM_TYPE used to make prim into a sphere and to change specific properties that define the shape of that sphere.
PRIM_TYPE
[ PRIM_TYPE, PRIM_TYPE_SPHERE, integer hole_shape, vector cut, float hollow, vector twist, vector dimple ]
| • integer
| hole_shape
| –
| PRIM_HOLE_* flag
|
|
| • vector
| cut
| –
| x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)
|
|
| • float
| hollow
| –
| ranges from 0.0 (solid) to 0.95 (maximum hollowed)
|
|
| • vector
| twist
| –
| 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)
|
|
| • vector
| dimple
| –
| x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)
|
|
PRIM_TYPE_LEGACY
[ 1, PRIM_TYPE_SPHERE, vector cut, float hollow, vector dimple ]
| • vector
| cut
| –
| x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)
|
|
| • float
| hollow
| –
| ranges from 0.0 (solid) to 0.95 (maximum hollowed)
|
|
| • vector
| dimple
| –
| x and y range from 0.0 to 1.0, x must be at least 0.05 smaller than y (z is ignored)
|
|
This is the old PRIM_TYPE format for the sphere (PRIM_TYPE used to be 1 instead of 9). Use the new format unless you are maintaining old code.
Related Articles
Constants
Functions
Events
Examples
// this makes a simple sphere
vector cut = <0.0, 1.0, 0.0>; // 0.0 to 1.0
float hollow = 0.0; // 0.0 to 0.95
vector twist = <0.0, 0.0, 0.0>; // -1.0 to 1.0
vector dimple = <0.0, 1.0, 0.0>; // 0.0 to 1.0
llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_SPHERE, PRIM_HOLE_DEFAULT,
cut, hollow, twist, dimple ] );