This generator creates a 3D drawer with a handle. A set of parameters control the size and the shape of the drawer and its handle. It is possible to generale low-poly drawer by reducing the complexity, removing edges and using flat shading. Click on a snapshot to open it online.
import { Drawer } from "3d-assets/drawer.js";
var model = new Drawer ({
width: 40,
height: 60,
thickness: 1.5,
depth: 40,
drawerCount: 4,
doorRoundness: .02,
openness: 0,
handleThickness: 0.5,
handleSize: 10,
handleHeight: 0.5,
handleRoundDetail: 1,
doorRoundDetail: 1,
flat: false,
simple: false,
});
An instance of Drawer
is a THREE.Group
with one submesh
called body
and drawerCount
submeshes drawer_<i>
for each drawer in it.