8990919293949596979899
public final void box(AABB box) { mesh(box.toMesh(), false, 0); } public final void box(AABB box, boolean smooth) { Mesh3D mesh = box.toMesh(); if (smooth) { mesh.computeVertexNormals(); } mesh(mesh, smooth, 0); }
125126127128129130131132133134135
cone(cone, res, true, true, smooth); } public final void cone(Cone cone, int res, boolean topClosed, boolean bottomClosed, boolean smooth) { Mesh3D mesh = cone.toMesh(res); if (smooth) { mesh.computeVertexNormals(); } mesh(mesh, smooth, 0); }
138139140141142143144145146147148
mesh(cylinder.toMesh(), false, 0); } public final void cylinder(AxisAlignedCylinder cylinder, int res, boolean smooth) { Mesh3D mesh = cylinder.toMesh(res, 0); if (smooth) { mesh.computeVertexNormals(); } mesh(mesh, smooth, 0); }