Creating a Viewer

Your first step is to link to the xeometry library:

<script src="xeometry.js"></script>

Creating a viewer with a default canvas, that fills the page:

var viewer = new xeometry.Viewer();

Creating a viewer bound to an external canvas:

var viewer = new xeometry.Viewer({
    canvasId: "myCanvas"
});

You can create multiple viewers in the same page.

To destroy a viewer:

viewer.destroy();

Your next step is to load a model into a viewer- see Loading Models.

results matching ""

    No results matching ""