#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "WavefrontDisplayDevice.h"
#include "Matrix4.h"
#include "DispCmds.h"
#include "Inform.h"
#include "utilities.h"
#include "config.h"
Go to the source code of this file.
Defines | |
#define | DASH_LENGTH 0.02f |
#define | VMDGENMTLFILE 1 |
Functions | |
int | replacefileextension (char *s, const char *oldextension, const char *newextension) |
char * | stripleadingfilepath (const char *fullpath) |
Render molecular scene to a Wavefront Object or "OBJ" file and an associated .mtl material file. This file format is one of the most universally supported 3-D model file formats, particular for animation software such as Maya, 3-D Studio, etc. The file format is simple, but good enough for getting a lot of things done. The Wavefront format only supports per-facet colors and materials. This code currently generates a fixed size set of color/material entries and indexes into this set based on the active VMD color index.
Definition in file WavefrontDisplayDevice.C.
|
Definition at line 43 of file WavefrontDisplayDevice.C. Referenced by WavefrontDisplayDevice::line. |
|
Definition at line 45 of file WavefrontDisplayDevice.C. |
|
Definition at line 47 of file WavefrontDisplayDevice.C. References strupncmp. Referenced by WavefrontDisplayDevice::open_file. |
|
Definition at line 69 of file WavefrontDisplayDevice.C. References NULL. Referenced by WavefrontDisplayDevice::write_header. |