Constructor
new TeapotGeometry(size, segments, bottom, lid, body, fitLid, blinn)
Parameters:
Name | Type | Description |
---|---|---|
size |
Number | is a relative scale: I've scaled the teapot to fit vertically between -1 and 1. Think of it as a "radius". |
segments |
Number | number of line segments to subdivide each patch edge; 1 is possible but gives degenerates, so two is the real minimum. |
bottom |
Boolean | boolean, if true (default) then the bottom patches are added. Some consider adding the bottom heresy, so set this to "false" to adhere to the One True Way. |
lid |
Boolean | to remove the lid and look inside, set to true. |
body |
Boolean | to remove the body and leave the lid, set this and "bottom" to false. |
fitLid |
Boolean | the lid is a tad small in the original. This stretches it a bit, so you can't see the teapot's insides through the gap. |
blinn |
Boolean | Jim Blinn scaled the original data vertically by dividing by about 1.3 to look nicer. If you want to see the original teapot, similar to the real-world model, set this to false. True by default. |
- Source:
Members
(static) BufferAttribute
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attributes |
Object | TeaPot vertex attributes.
Properties
|
||||||||||||
index |
Float32Array | face index array. |
- Source:
- See: