Klamp't  0.9.0
three.js.h
1 #ifndef IO_THREE_JS_H
2 #define IO_THREE_JS_H
3 
5 #include <Klampt/Simulation/Simulator.h>
6 #include <KrisLibrary/utils/AnyCollection.h>
7 
8 namespace Klampt {
9 
12 
17 void ThreeJSExport(const WorldModel& world,AnyCollection& out);
18 void ThreeJSExportTransforms(const WorldModel& world,AnyCollection& out);
19 
24 void ThreeJSExport(Simulator& sim,AnyCollection& out);
25 void ThreeJSExportTransforms(Simulator& sim,AnyCollection& out);
26 
29 void ThreeJSExport(const RobotModel& robot,AnyCollection& out);
30 void ThreeJSExportTransforms(const RobotModel& robot,AnyCollection& out);
31 
34 void ThreeJSExport(const RigidObjectModel& object,AnyCollection& out);
35 void ThreeJSExportTransforms(const RigidObjectModel& object,AnyCollection& out);
36 
39 void ThreeJSExport(const TerrainModel& terrain,AnyCollection& out);
40 void ThreeJSExportTransforms(const TerrainModel& terrain,AnyCollection& out);
41 
43 void ThreeJSExport(const ManagedGeometry& geom,AnyCollection& out);
46 void ThreeJSExportGeometry(const ManagedGeometry& geom,AnyCollection& out);
49 void ThreeJSExportAppearance(const ManagedGeometry& geom,AnyCollection& out);
51 void ThreeJSExport(const Geometry::AnyCollisionGeometry3D& geom,AnyCollection& out);
53 void ThreeJSExport(const GLDraw::GeometryAppearance& app,const Geometry::AnyCollisionGeometry3D& geom,AnyCollection& out);
54 
57 } // namespace Klampt
58 
59 #endif
void ThreeJSExportAppearance(const ManagedGeometry &geom, AnyCollection &out)
void ThreeJSExport(const GLDraw::GeometryAppearance &app, const Geometry::AnyCollisionGeometry3D &geom, AnyCollection &out)
Exports to a three.js scene Material instance.
Defines the WorldModel class.
void ThreeJSExportGeometry(const ManagedGeometry &geom, AnyCollection &out)
Definition: ContactDistance.h:6