How to use the RoundedBoxGeometry function from three

Find comprehensive JavaScript three.RoundedBoxGeometry code examples handpicked from public code repositorys.

98
99
100
101
102
103
104
105
106
107
controls.enableRotate = false;
controls.enableDamping = false;
controls.enableKeys = false;


const geometry = new THREE.RoundedBoxGeometry(1, 1, 1, 16, 0.2);

const hdrEquirect = new THREE.RGBELoader().load(
  "src/empty_warehouse_01_2k.hdr",
  () => {
fork icon0
star icon0
watch icon0

+ 2 other calls in file

96
97
98
99
100
101
102
103
104
105
];

const geometries = [
  new THREE.IcosahedronGeometry(0.75, 0), // Faceted
  new THREE.IcosahedronGeometry(0.67, 24), // Sphere
  new THREE.RoundedBoxGeometry(1.12, 1.12, 1.12, 16, 0.2),
];

const hdrEquirect = new THREE.RGBELoader().load(
  "src/empty_warehouse_01_2k.hdr",
fork icon0
star icon0
watch icon0

+ 4 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)