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.Geometryto aTHREE.Object3D. It returns null if geometry is undefined.Parameters:
Name Type Description geometryol.geom.Geometry OpenLayers geometry.
materialObject.<string, THREE.Material> Materials for the output object.
ignoreHolesboolean 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.Styleto aTHREE.Material.Parameters:
Name Type Description styleol.style.Style OpenLayers style.
- Source:
- bu/util/three/util.js
Returns:
- Type
- Object.<string, THREE.Material>
Javascript API 7.x