2023-11-10 21:13:53 +08:00
|
|
|
---
|
2023-11-10 22:11:33 +08:00
|
|
|
title: Torus
|
|
|
|
order: 12
|
2023-11-10 21:13:53 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
Torus Geometry
|
|
|
|
|
|
|
|
<img alt="torus" src="https://gw.alipayobjects.com/mdn/rms_6ae20b/afts/img/A*So7oT4qDvLkAAAAAAAAAAAAAARQnAQ" height='200'/>
|
|
|
|
|
|
|
|
## tubeRadius
|
|
|
|
|
|
|
|
**Type**: `number`
|
|
|
|
|
|
|
|
**Default**: `0.2`
|
|
|
|
|
|
|
|
**Required**: false
|
|
|
|
|
|
|
|
**Description**: The radius of the tube
|
|
|
|
|
|
|
|
## ringRadius
|
|
|
|
|
|
|
|
**Type**: `number`
|
|
|
|
|
|
|
|
**Default**: `0.3`
|
|
|
|
|
|
|
|
**Required**: false
|
|
|
|
|
|
|
|
**Description**: The radius of the ring
|
|
|
|
|
|
|
|
## segments
|
|
|
|
|
|
|
|
**Type**: `number`
|
|
|
|
|
|
|
|
**Default**: `30`
|
|
|
|
|
|
|
|
**Required**: false
|
|
|
|
|
|
|
|
**Description**: The number of segments
|
|
|
|
|
|
|
|
## sides
|
|
|
|
|
|
|
|
**Type**: `number`
|
|
|
|
|
|
|
|
**Default**: `20`
|
|
|
|
|
|
|
|
**Required**: false
|
|
|
|
|
|
|
|
**Description**: The number of sides
|