Skip to content

PRIM_TYPE_SPHERE

constant
Constant
integer PRIM_TYPE_SPHERE = 3;
Set with llSetLinkPrimitiveParamsFast
PRIM_TYPE, PRIM_TYPE_SPHERE, integer hole_shape, vector cut, float hollow, vector twist, vector dimple
Get with llGetLinkPrimitiveParams, llGetPrimitiveParams
PRIM_TYPE → PRIM_TYPE_SPHERE, integer hole_shape, vector cut, float hollow, vector twist, vector dimple
  1. integer hole_shape// Values: PrimTypeHole
  2. vector cut// Range <0,0,0> to <1,1,0>
  3. float hollow// Range 0–0.95
  4. vector twist// Range <-1,-1,0> to <1,1,0>
  5. vector dimple// Range <0,0,0> to <1,1,0>
Other PrimType values (7)

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_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), or 0.70 when hole_shape is PRIM_HOLE_SQUARE
  • 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)
From the LSL definitions: PrimTypeHole
integer PRIM_HOLE_DEFAULT = 0x00;  // Parameter used with certain PRIM_TYPE_* flags to make a hole of the same shape as the outer shape via the hole_shape parameterinteger PRIM_HOLE_CIRCLE = 0x10;  // Parameter used with certain PRIM_TYPE_* flags to make a circular hole via the hole_shape parameterinteger PRIM_HOLE_SQUARE = 0x20;  // Parameter used with certain PRIM_TYPE_* flags to make a squarish hole via the hole_shape parameterinteger PRIM_HOLE_TRIANGLE = 0x30;  // Parameter used with certain PRIM_TYPE_* flags to make a triangular hole via the hole_shape parameter
Example 1
// 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
llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_TYPE, PRIM_TYPE_SPHERE, PRIM_HOLE_DEFAULT,
cut, hollow, twist, dimple ] );
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 SPHERE, 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.