CanvasMap
Getting Started Tutorials 3D Reference

Class CMTHREEHelper

CMTHREEHelper Base Class

Provides a "mixin" class (JavaScript multiple inheritance) for THREE.js basic support.
This class adds a THREE.js group to an existing CM class.

Subclasses should:
- Call the constructor in the subclasses constructor: CMTHREEHelper.call(this)
- Include the settings in their settings as desired
- Add the functions in the CMTHREEHelper prototype to the subclasses prototype with:
for (var property in CMTHREEHelper.prototype)
{
CM3LayerList.prototype[property]=CMTHREEHelper.prototype[property];
}


Copyright (C) 2020, Humboldt State University, Jim Graham

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see
.

Object Functions

ReturnsFunctionThrows
SetTHREEMaterial()

Object Functions

SetTHREEMaterial()

Provide a custom material for the item.