This namespace contains definitions of static functions for common Three.js operations wih geometries.
- Source:
- bu/util/three/three.jsdoc
Methods
-
<static> convertGeometryToObject(geometry, material, ignoreHoles)
-
Converts a
ol.geom.Geometry
to aTHREE.Object3D
. It returns null if geometry is undefined.Parameters:
Name Type Description geometry
ol.geom.Geometry OpenLayers geometry.
material
Object.<string, THREE.Material> Materials for the output object.
ignoreHoles
boolean If ignore interior rings for Polygon objects. This is because certain formats as Shapefile can give problems reading them.
- Source:
- bu/util/three/util.js
Returns:
- Type
- THREE.Object3D
-
<static> convertStyleToMaterial(style)
-
Converts a
ol.style.Style
to aTHREE.Material
.Parameters:
Name Type Description style
ol.style.Style OpenLayers style.
- Source:
- bu/util/three/util.js
Returns:
- Type
- Object.<string, THREE.Material>