Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

WavefrontDisplayDevice.C File Reference

FileRenderer subclass to export molecular graphics to Wavefront OBJ format. More...

#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)

Detailed Description

FileRenderer subclass to export molecular graphics to Wavefront OBJ format.

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.


Define Documentation

#define DASH_LENGTH 0.02f

Definition at line 43 of file WavefrontDisplayDevice.C.

Referenced by WavefrontDisplayDevice::line.

#define VMDGENMTLFILE 1

Definition at line 45 of file WavefrontDisplayDevice.C.


Function Documentation

int replacefileextension ( char * s,
const char * oldextension,
const char * newextension
) [static]

Definition at line 47 of file WavefrontDisplayDevice.C.

References strupncmp.

Referenced by WavefrontDisplayDevice::open_file.

char* stripleadingfilepath ( const char * fullpath ) [static]

Definition at line 69 of file WavefrontDisplayDevice.C.

References NULL.

Referenced by WavefrontDisplayDevice::write_header.


Generated on Mon Nov 17 02:47:54 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /