Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 697 Bytes

File metadata and controls

27 lines (17 loc) · 697 Bytes

Creating a Trapezoid

Back{: .button}

Method 1 - Polyhedra Buffer Geometry

new THREE.polyhedronBufferGeometry(verticesOfCube, indicesOfFaces, 1, 0)
  • Create a polyhedra buffer geometry and enter the vertices

Method 2 - Cylinder Geometry

new THREE.cylinderGeometry(0.4 / Math.SQRT2, 1 / Math.SQRT2, 4)
  • Create a cylinder and adjust the top radius and bottom radius
  • Reduce the radial segments in the geometry to required amount

Reference