Side
A side is one
face of a
prim. Each side has a
color,
opacity, and
texture.
A prim's number of sides can be determined with
llGetNumberOfSides and affects all sides with the
constant ALL_SIDES. To affect multiple sides (but not using
ALL_SIDES), set each prim face individually by making more
calls to the texture
function (may not work depending on function).
There are some quirks with this: for example, the inside of a hollowed cube counts as one side (even though there are really 4 sides).
One way to get a side number is: enable the
debug menu (if it is not displayed to the right of the "Help" menu, press Ctrl+Alt+D). Use the "Select Texture" edit tool, select the side, and press Ctrl+Shift+Alt+T. This will cause
SL to show some basic texture information, including the side number.
Texturing sides so they look the same (particularly in hollowed prims) can be frustrating.
Functions
Besides the texture functions, there are other side-specific ones:
llGetAlpha
llSetAlpha
llGetColor
llSetColor
llSetLinkAlpha
llSetLinkColor
llGetNumberOfSides
llGetPrimitiveParams
llSetPrimitiveParams
llDetectedTouchFace
Primitive Side Numbering
On an axis-aligned box:
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - bottom
| Hollow:
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - hollow
6 - bottom
| Cut:
"begin" starts at lesser x and y, cut increases counter-clockwise
"end" starts at lesser x and y, cut increases clockwise
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - bottom
6 - cut begin
7 - cut end
| Hollow-Cut:
0 - top
1 - lesser y
2 - greater x
3 - greater y
4 - lesser x
5 - hollow
6 - bottom
7 - cut begin
8 - cut end |
Primitive