Skip to content

PRIM_SCULPT_TYPE_MASK

constant
Constant
integer PRIM_SCULPT_TYPE_MASK = 7;
Other PrimTypeSculptType values (5)

PRIM_SCULPT_TYPE_MASK can be used when parsing the output of llGetPrimitiveParams when dealing with sculpted prims (PRIM_TYPE_SCULPT) to separate the sculpted type from the flags (PRIM_SCULPT_FLAG_INVERT and PRIM_SCULPT_FLAG_MIRROR) that can modify it.

Sculpted Prims: FAQ

From the LSL definitions: PrimTypeSculptType
integer PRIM_SCULPT_TYPE_SPHERE = 1;  // Sculpt type option for PRIM_TYPE_SCULPT that stitches the left side to the right and separately converges the top and bottom to produce a sphere-shaped sculpted priminteger PRIM_SCULPT_TYPE_TORUS = 2;  // Sculpt type option for PRIM_TYPE_SCULPT that stitches top-to-bottom and left-to-right to produce a torus-shaped sculpted priminteger PRIM_SCULPT_TYPE_PLANE = 3;  // Sculpt type option for PRIM_TYPE_SCULPT that performs no stitching or converging, producing a flat plane-shaped sculpted priminteger PRIM_SCULPT_TYPE_CYLINDER = 4;  // Sculpt type option for PRIM_TYPE_SCULPT that stitches the left side to the right to produce a cylinder-shaped sculpted priminteger PRIM_SCULPT_TYPE_MESH = 5;  // Sculpt type option for PRIM_TYPE_SCULPT indicating the object is a uploaded Mesh modelinteger PRIM_SCULPT_TYPE_MASK = 7;  // Bitmask used when parsing sculpted prim properties (PRIM_TYPE_SCULPT) from llGetPrimitiveParams to separate the base sculpt type from modifying flags (invert or mirror)
From the LSL definitions: PrimTypeSculptFlag
integer PRIM_SCULPT_FLAG_ANIMESH = 0x0020;  // Read-only flag for PRIM_TYPE_SCULPT to query whether the object is an Animated Mesh (Animesh)integer PRIM_SCULPT_FLAG_INVERT = 0x0040;  // Flag for PRIM_TYPE_SCULPT to render the sculpted prim inside-out by inverting the normals of each polygoninteger PRIM_SCULPT_FLAG_MIRROR = 0x0080;  // Flag for PRIM_TYPE_SCULPT to render a mirror-image of the sculpted prim, mirrored across the X-axis
type FlagsStyleDescription
SphereConverge top & bottom, stitch left side to right
TorusStitch top to bottom, stitch left side to right
PlaneNo stitching or converging
CylinderStitch left side to right.
Mesh modelSee: Mesh
AnimeshRead-only flag to query Animated mesh status.
InvertRender inside out (inverts the normals).
MirrorRender an X axis mirror of the sculpty.
  • SVN:1053 r94734 Branch:trunk Tuesday, 19 August 2008 - PRIM_SCULPT_FLAG_* syntax merged into the Trunk. Support for syntax slated for Client 1.21.0
  • SVN:758 r91966 Branch:featurettes-5 Thursday, 10 July 2008 - Introduction of PRIM_SCULPT_FLAG_* extended syntax.
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.