#include <ThreeJS.hpp>
|
static boost::optional< ThreeScene > | load (const std::string &json) |
| load from string
|
|
ThreeScene is an adapter for a scene in the three.js geometry format, defined at: https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4.
The class is not impl-ized in hopes that it can be ported to JavaScript via emscripten
◆ ThreeScene() [1/2]
◆ ThreeScene() [2/2]
openstudio::ThreeScene::ThreeScene |
( |
const std::string & | json_str | ) |
|
constructor from JSON formatted string (or path to a JSON file), will throw if error
◆ geometries()
std::vector< ThreeGeometry > openstudio::ThreeScene::geometries |
( |
| ) |
const |
◆ getGeometry()
boost::optional< ThreeGeometry > openstudio::ThreeScene::getGeometry |
( |
const std::string & | geometryId | ) |
const |
◆ getMaterial()
boost::optional< ThreeMaterial > openstudio::ThreeScene::getMaterial |
( |
const std::string & | materialId | ) |
const |
◆ load()
static boost::optional< ThreeScene > openstudio::ThreeScene::load |
( |
const std::string & | json | ) |
|
|
static |
◆ materials()
std::vector< ThreeMaterial > openstudio::ThreeScene::materials |
( |
| ) |
const |
◆ metadata()
◆ object()
This method is renamed to 'threeSceneObject()' in C#.
◆ toJSON()
std::string openstudio::ThreeScene::toJSON |
( |
bool | prettyPrint = false | ) |
const |