# PRIM_SCULPT_TYPE_TORUS

*LSL constant*

```lsl
integer PRIM_SCULPT_TYPE_TORUS = 2;
```

Constant groups: [PrimTypeSculptType](/constants/groups/PrimTypeSculptType/)

When used in conjunction with [PRIM_TYPE_SCULPT](/constants/PRIM_TYPE_SCULPT/) a torus type sculpty is produced. It does this by stitching the top to bottom and the left side to right.

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [PRIM_SCULPT_TYPE_SPHERE](/constants/PRIM_SCULPT_TYPE_SPHERE/) | integer | `1` |  |
| [PRIM_SCULPT_TYPE_TORUS](/constants/PRIM_SCULPT_TYPE_TORUS/) | integer | `2` |  |
| [PRIM_SCULPT_TYPE_PLANE](/constants/PRIM_SCULPT_TYPE_PLANE/) | integer | `3` |  |
| [PRIM_SCULPT_TYPE_CYLINDER](/constants/PRIM_SCULPT_TYPE_CYLINDER/) | integer | `4` |  |
| [PRIM_SCULPT_TYPE_MESH](/constants/PRIM_SCULPT_TYPE_MESH/) | integer | `5` |  |
| [PRIM_SCULPT_FLAG_ZZZZZZZZ](https://wiki.secondlife.com/wiki/PRIM_SCULPT_FLAG_ZZZZZZZZ) | integer | `63` |  |
| [PRIM_SCULPT_FLAG_ANIMESH](/constants/PRIM_SCULPT_FLAG_ANIMESH/) | integer | `hex=0x20` |  |
| [PRIM_SCULPT_FLAG_INVERT](/constants/PRIM_SCULPT_FLAG_INVERT/) | integer | `hex=0x40` |  |
| [PRIM_SCULPT_FLAG_MIRROR](/constants/PRIM_SCULPT_FLAG_MIRROR/) | integer | `hex=0x80` |  |

<table>
	<tr>
		<th>**type** Flags</th>
		<th></th>
		<th>Style</th>
		<th colspan="3">Description</th>
	</tr>
	<tr>
		<td>Sphere</td>
		<td colspan="3">Converge top & bottom, stitch left side to right</td>
	</tr>
	<tr>
		<td>Torus</td>
		<td colspan="3">Stitch top to bottom, stitch left side to right</td>
	</tr>
	<tr>
		<td>Plane</td>
		<td colspan="3">No stitching or converging</td>
	</tr>
	<tr>
		<td>Cylinder</td>
		<td colspan="3">Stitch left side to right.</td>
	</tr>
	<tr>
		<td>[Mesh](https://wiki.secondlife.com/wiki/Mesh) model</td>
		<td colspan="3">See: [Mesh](https://wiki.secondlife.com/wiki/Mesh)</td>
	</tr>
	<tr>
		<td colspan="6"></td>
	</tr>
	<tr>
		<td>Animesh</td>
		<td colspan="3">Read-only flag to query [Animated mesh](https://wiki.secondlife.com/wiki/Animesh_User_Guide) status.</td>
	</tr>
	<tr>
		<td>Invert</td>
		<td colspan="3">Render inside out (inverts the normals).</td>
	</tr>
	<tr>
		<td>Mirror</td>
		<td colspan="3">Render an X axis mirror of the sculpty.</td>
	</tr>
</table>

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [PRIM_TYPE](/constants/PRIM_TYPE/) |  |  |  |
| [PRIM_TYPE_SCULPT](/constants/PRIM_TYPE_SCULPT/) |  |  |  |

### Functions

- [llGetPrimitiveParams](/functions/llGetPrimitiveParams/)

### Events

- [changed](/events/changed/)

---

*Source: [PRIM SCULPT TYPE TORUS](https://wiki.secondlife.com/wiki/PRIM_SCULPT_TYPE_TORUS) on the Second Life Wiki. Content from the Second Life Wiki articles PRIM SCULPT TYPE TORUS (revision 1167842, 2012-05-30) and Template:LSL Constants/PrimitiveParams/sculpt types (revision 1215170, 2023-10-26), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PRIM_SCULPT_TYPE_TORUS/
