Capítulo 47 de 859
A special type of box geometry with rounded corners and edges.
const geometry = new THREE.RoundedBoxGeometry();
const material = new THREE.MeshStandardMaterial( { color: 0x00ff00 } );
const cube = new THREE.Mesh( geometry, material );
scene.add( cube );
Constructor
| Signature |
|---|
new RoundedBoxGeometry( width : number, height : number, depth : number, segments : number, radius : number ) |
Properties
| Property | Description |
|---|---|
.parameters : Object | Holds the constructor parameters that have been used to generate the geometry. Any modification after instantiation does not change the geometry. |