The integer constant PRIM_SCULPT_TYPE_MASK has the value 7

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

type FlagsStyleDescription
PRIM_SCULPT_TYPE_SPHERE1SphereConverge top & bottom, stitch left side to right
PRIM_SCULPT_TYPE_TORUS2TorusStitch top to bottom, stitch left side to right
PRIM_SCULPT_TYPE_PLANE3PlaneNo stitching or converging
PRIM_SCULPT_TYPE_CYLINDER4CylinderStitch left side to right.
PRIM_SCULPT_TYPE_MESH5Mesh modelSee: Mesh
PRIM_SCULPT_FLAG_ZZZZZZZZ63
PRIM_SCULPT_FLAG_ANIMESH0x20AnimeshRead-only flag to query Animated mesh status.
PRIM_SCULPT_FLAG_INVERT0x40InvertRender inside out (inverts the normals).
PRIM_SCULPT_FLAG_MIRROR0x80MirrorRender an X axis mirror of the sculpty.

Syntax

integer PRIM_SCULPT_TYPE_MASK = 7;

See also

Constants

Functions

Deep notes

History