Skip to content
lsl.devlsl.devLSL Dev

PRIM_TYPE_RING

constant
Constant
integer PRIM_TYPE_RING = 6;

Constant groups

PrimType

Other PrimType values (7)

PRIM_TYPE_RING is a parameter of PRIM_TYPE used to make prim into a ring and to change specific properties that define the shape of that ring.

Example 1
// makes a spiral
float hollow = 0.0; // 0.0 to 0.95
vector twist = <0, 0.0, 0.0>; // -1.0 to 1.0
vector holesize = <1.0, 0.05, 0.0>; // max X:1.0 Y:0.5
vector topshear = <0.0, 0.0, 0.0>; // -0.5 to 0.5
vector profilecut = <0.0, 0.0, 0.0>; // 0.0 to 1.0
vector taper_a = <0.0, 0.0, 0.0>; // 0.0 to 1.0
float revolutions = 3.0; // 1.0 to 4.0
float radiusoffset = 1.0; // -1.0 to 1.0
float skew = 0.0; //
llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_RING, PRIM_HOLE_DEFAULT,
cut, hollow, twist, holesize, topshear,
profilecut, taper_a, revolutions,
radiusoffset, skew] );
ConstantTypeValueDescription
PRIM_TYPE
CHANGED_SHAPE
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from PRIM TYPE RING, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.