Examples of Creating Meshes on the Fly

Back to documentation index.

This page contains source code for creating various kinds of 3D models on the fly.

TODO: Place in documentation examples, not here.

Contents

Miscellaneous

function pathClosedFigure(path, zBottom, zTop, flatness) { "use strict"; var mesh = new H3DU.MeshBuffer(); mesh.merge(path.toExtrudedMeshBuffer(zBottom, zTop, flatness)); mesh.merge(path.toMeshBuffer(zTop, flatness)); mesh.merge(path.toMeshBuffer(zBottom, flatness).reverseWinding().reverseNormals()); return mesh; }

Back to documentation index.