From Second Life Wiki
PRIM_TYPE_PRISM
integer PRIM_TYPE_PRISM = 2;
The integer constant PRIM_TYPE_PRISM has the value 2
PRIM_TYPE_PRISM is a parameter of PRIM_TYPE used to make prim into a prism and to change specific properties that define the shape of that prism.
| • 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 -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)
|
|
| • vector
| top_size
| –
| ranges from 0.0 to 2.0 for both x and y (z is ignored)
|
|
| • vector
| top_shear
| –
| ranges from -0.5 to 0.5 for both x and y (z is ignored)
|
|
[ 1, PRIM_TYPE_PRISM, vector cut, float hollow, float twist, vector top_size, vector top_shear ]
| • 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)
|
|
| • float
| twist
| –
| ranges from -0.5 (-180 degree in the edit window) to 0.5 (+180 degree in the edit window)
|
|
| • vector
| top_size
| –
| ranges from 0.0 to 1.0 for both x and y (z is ignored)
|
|
| • vector
| top_shear
| –
| ranges from -0.5 to 0.5 for both x and y (z is ignored)
|
|
This is the old PRIM_TYPE format for prisms (PRIM_TYPE used to be 1 instead of 9). Use the new format unless you are maintaining old code.
Related Functions, Events & Constants
Constants
Functions
Events
Examples
llSetPrimitiveParams([PRIM_TYPE,
PRIM_TYPE_PRISM,
PRIM_HOLE_DEFAULT, // hole_shape
<0.00, 1.0, 0.0>, // cut
0.0, // hollow
<0.0, 0.0, 0.0>, // twist
<1.0, 1.0, 0.0>, // top_size
<0.0, 0.0, 0.0> // top_Shear
]);