Click here to Skip to main content
Click here to Skip to main content
Articles » Multimedia » OpenGL » General » Downloads
 
Add your own
alternative version
Go to top

A small VRML viewer using OpenGL and MFC

, 30 Nov 1999
//********************************************
// Base3d.h
// 3d Toolbox Includes 
//********************************************
// pierre.alliez@cnet.francetelecom.fr
// Created : 15/12/97
// Modified : 27/04/98
//********************************************

#ifndef _BASE_3D_
#define _BASE_3D_

// 3d library
#include "Object3d.h"
#include "Vertex3d.h"
#include "Vector3d.h"
#include "Edge3d.h"
#include "Face3d.h"
#include "Mesh3d.h"
#include "SceneGraph3d.h"
#include "Utils3d.h"
#include "Transform.h"

// Standard
#include "Array3d.h"

// VRML Parser
#include "ParserVrml.h"

// Apparence attributes
#include "Color.h"
#include "ColorRamp.h"
#include "Material.h"
#include "Texture.h"


// Object types
enum {TYPE_OBJECT3D,
			TYPE_VERTEX3D,
			TYPE_VECTOR3D,
			TYPE_FACE3D,
			TYPE_POLYGON3D,
			TYPE_MESH3D,
			TYPE_EDGE3D,
			TYPE_VECTORSET3D};

// Normal binding
enum {NORMAL_PER_VERTEX,
			NORMAL_PER_FACE};

enum {COLOR_PER_VERTEX,
			COLOR_PER_FACE};

enum  {POTENTIAL_EDGE_LENGTH,
			 POTENTIAL_CURVE,
       POTENTIAL_CURVE_AND_EDGE_LENGTH};

// Misc
const float MAX_FLOAT = 3.4e+38f; 
const double MAX_DOUBLE = 1.7e+308; 
const double PI =  3.14159265359;

#endif // _BASE_3D_


// ** EOF **

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Pierre Alliez

France France
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 1 Dec 1999
Article Copyright 1999 by Pierre Alliez
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid