Difference between revisions of "PRIM SCULPT TYPE MASK"

From Second Life Wiki
Jump to navigation Jump to search
(New page: <onlyinclude>{{#if: }}</onlyinclude>{{#if: }}{{LSL Constant |name=PRIM_SCULPT_TYPE_MASK |type=integer |value=7 |desc=PRIM_SCULPT_TYPE_MASK can be used when parsing the output of [[llGetP...)
 
 
Line 9: Line 9:
|desc=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.<br/>
|desc=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.<br/>
[[Sculpted Prims: FAQ]]
[[Sculpted Prims: FAQ]]
{{LSL_Constants/PrimitiveParams/sculpt_types|table=*|sortable=*}}
|examples
|examples
|constants=
|constants=
{{LSL ConstRow|PRIM_TYPE}}
{{LSL ConstRow|PRIM_TYPE_SCULPT}}
{{LSL ConstRow|PRIM_TYPE_SCULPT}}
|functions=
|functions=
{{LSL DefineRow||[[llSetPrimitiveParams]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
{{LSL DefineRow||[[llGetPrimitiveParams]]|}}
|events
|events

Latest revision as of 16:53, 21 August 2008

Description

Constant: integer PRIM_SCULPT_TYPE_MASK = 7;

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 Flags Style Description
PRIM_SCULPT_TYPE_SPHERE 1 Sphere Converge top & bottom, stitch left side to right
PRIM_SCULPT_TYPE_TORUS 2 Torus Stitch top to bottom, stitch left side to right
PRIM_SCULPT_TYPE_PLANE 3 Plane No stitching or converging
PRIM_SCULPT_TYPE_CYLINDER 4 Cylinder Stitch left side to right.
PRIM_SCULPT_TYPE_MESH 5 Mesh model See: Mesh
PRIM_SCULPT_FLAG_ZZZZZZZZ 63
PRIM_SCULPT_FLAG_ANIMESH 0x20 Animesh Read-only flag to query Animated mesh status.
PRIM_SCULPT_FLAG_INVERT 0x40 Invert Render inside out (inverts the normals).
PRIM_SCULPT_FLAG_MIRROR 0x80 Mirror Render an X axis mirror of the sculpty.

Related Articles

Constants

•  PRIM_TYPE_SCULPT

Functions

•  llGetPrimitiveParams

Deep Notes

History

Search JIRA for related Issues

Signature

integer PRIM_SCULPT_TYPE_MASK = 7;