Skip to content
lsl.devlsl.devLSL Dev

PRIM_SCULPT_TYPE_MASK

constant
Constant
integer PRIM_SCULPT_TYPE_MASK = 7;

Constant groups

PrimTypeSculptType

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

ConstantTypeValueDescription
PRIM_SCULPT_TYPE_SPHEREinteger1
PRIM_SCULPT_TYPE_TORUSinteger2
PRIM_SCULPT_TYPE_PLANEinteger3
PRIM_SCULPT_TYPE_CYLINDERinteger4
PRIM_SCULPT_TYPE_MESHinteger5
PRIM_SCULPT_FLAG_ZZZZZZZZinteger63
PRIM_SCULPT_FLAG_ANIMESHintegerhex=0x20
PRIM_SCULPT_FLAG_INVERTintegerhex=0x40
PRIM_SCULPT_FLAG_MIRRORintegerhex=0x80
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.
ConstantTypeValueDescription
PRIM_TYPE_SCULPT
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.