Tutorial by Examples

THREE.BoxGeometry builds boxes such as cuboids and cubes. Cubes Cubes created using THREE.BoxGeometry would use the same length for all sides. JavaScript //Creates scene and camera var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHe...
THREE.CylinderGeometry build cylinders. Cylinder Continuing from the previous example, the code to create the box could be replaced with the below. //Makes a new cylinder with // - a circle of radius 5 on top (1st parameter) // - a circle of radius 5 on the bottom (2nd parameter) // - a height...

Page 1 of 1