PRIM TYPE TUBE
Looking for the current API? Open the PRIM_TYPE_TUBE reference →
Wiki description
PRIM_TYPE_TUBE is a parameter of PRIM_TYPE used to make prim into a tube and to change specific properties that define the shape of that tube.
Usage
[ PRIM_TYPE, PRIM_TYPE_TUBE, integer hole_shape, vector cut, float hollow, vector twist, vector hole_size, vector top_shear, vector advanced_cut, vector taper, float revolutions, float radius_offset, float skew ]
hole_shape Flags | Shape | hole_shape Flags | Shape | ||
|---|---|---|---|---|---|
[ , PRIM_TYPE_TUBE, vector cut, float hollow, float twist_end, float topshear_x ]
This is the old PRIM_TYPE format for the tube (PRIM_TYPE used to be 1 instead of 9). Use the new format unless you are maintaining old code.
It should be noted that topshear_x was intended to be hole_size_y and wasn't caught by QA; in the documentation it was listed by an equivalent term to hole_size_y. The bug became lava-flowed and was never fixed in the old incarnation of PRIM_TYPE.
Examples
// 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_TUBE, PRIM_HOLE_DEFAULT,
cut, hollow, twist, holesize, topshear,
profilecut, taper_a, revolutions,
radiusoffset, skew] );See also: constants
See also: functions
See also: events
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.