Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ThreeGenerator

Index

Constructors

constructor

Properties

materials

materials: {} = {}

Type declaration

  • [key: string]: THREE.Material | THREE.Material[]

Methods

centeredCube

  • centeredCube(length?: number, material?: Material): Mesh

extrudeFromGeoJSON

  • extrudeFromGeoJSON(feature: Feature<Geometry, GeoJsonProperties>, material: Material, options: ExtrudeGeometryOptions & { scale?: number }): null | Mesh
  • Parameters

    • feature: Feature<Geometry, GeoJsonProperties>
    • material: Material
    • options: ExtrudeGeometryOptions & { scale?: number }

    Returns null | Mesh

getMaterial

  • getMaterial(color: string, opacity?: number, type?: "Basic" | "Phong"): Material | Material[]

groundAnd3Cubes

  • groundAnd3Cubes(): Object3D

shapeFromGeoJSON

  • shapeFromGeoJSON(feature: Feature<Geometry, GeoJsonProperties>, scale?: number): null | Shape

space2mesh

  • space2mesh(space: ThreeSpaceModel, material: Material, defaultHeight?: number, options?: { alwaysUseDefaultHeight: boolean }): null | Mesh

testAllGeometries

  • testAllGeometries(): Object3D[]

Generated using TypeDoc