Revision 712,
475 bytes
checked in by mattausch, 19 years ago
(diff) |
added exporter for Vrml
added transformations to x3d loader
|
Line | |
---|
1 |
|
---|
2 | #include "X3dExporter.h"
|
---|
3 | #include "VrmlExporter.h"
|
---|
4 |
|
---|
5 | Exporter *
|
---|
6 | Exporter::GetExporter(const string filename)
|
---|
7 | {
|
---|
8 | Exporter *exporter = NULL;
|
---|
9 |
|
---|
10 | if (strstr(filename.c_str(), ".x3d"))
|
---|
11 | {
|
---|
12 | exporter = new X3dExporter(filename);
|
---|
13 | }
|
---|
14 | else if (strstr(filename.c_str(), ".wrl"))
|
---|
15 | {
|
---|
16 | exporter = new VrmlExporter(filename);
|
---|
17 | }
|
---|
18 | else
|
---|
19 | {
|
---|
20 | cerr<<"Error: Currently unsuported export format, filename " << filename << endl;
|
---|
21 | }
|
---|
22 |
|
---|
23 | return exporter;
|
---|
24 | }
|
---|
25 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.