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