Import
TeapotGeometry is an addon, and must be imported explicitly, see Installation#Addons.
import { TeapotGeometry } from 'three/addons/geometries/TeapotGeometry.js';
Constructor
new TeapotGeometry( size : number, segments : number, bottom : boolean, lid : boolean, body : boolean, fitLid : boolean, blinn : boolean )
Constructs a new teapot geometry.
| size |
Relative scale of the teapot. Default is |
| segments |
Number of line segments to subdivide each patch edge. Default is |
| bottom |
Whether the bottom of the teapot is generated or not. Default is |
| lid |
Whether the lid is generated or not. Default is |
| body |
Whether the body is generated or not. Default is |
| fitLid |
Whether the lid is slightly stretched to prevent gaps between the body and lid or not. Default is |
| blinn |
Whether the teapot is scaled vertically for better aesthetics or not. Default is |