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

StL Data File Viewer

, 5 Mar 2003
A simple StereoLithography data file viewer.
//############################################################################

//  Author:	Sharjith Nair
//  Email:	sharjith_ssn@hotmail.com

// Program:	OpenGL, C++ MFC StereoLithography Data File Viewer Application

//							Important Notice:

//	This Idea and the Application is Copyright(c) Sharjith Nair 2002, 2003.
//	You can freely use it as long as you credit me for it.

//	No guarantee/warranty is given on this app and I will not be responsible 
//	for any damage to you, your property or any other person from using it.
//	USE IT ON YOUR OWN RISK.

//	Thankyou
//	Sharjith Nair.

//#############################################################################

// Matrix33.h: interface for the CMatrix33 class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MATRIX33_H__C140D9C8_24EC_4702_A10B_F50B007BD7B0__INCLUDED_)
#define AFX_MATRIX33_H__C140D9C8_24EC_4702_A10B_F50B007BD7B0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Geometry.h"

class CPoint3D;
class CVector3D;

class CMatrix33
{
public:
	CMatrix33();
	CMatrix33(double r1[3],double r2[3],double r3[3]);
	~CMatrix33();
	CMatrix33 operator*(const CMatrix33&);
	CVector3D operator*(const CVector3D&);
	CMatrix33 operator*(const double Value);
	void operator*=(const CMatrix33&);
	void operator*=(const double Value);
	CMatrix33 operator/(const double Value);
	void operator/=(const double Value);
	CMatrix33 operator+(const CMatrix33&);
	void operator+=(const CMatrix33&);
	CMatrix33 operator-(const CMatrix33&);
	void operator-=(const CMatrix33&);
	double Determinant();
	void Invert();
	CMatrix33 Inverted() const;
	void Transpose();
	void Value() const;
	bool IsNull() const;
	bool IsDiagonal() const;
	bool IsSymmetrical() const;
	bool IsScalar() const;
	bool IsIdentity() const;
	bool IsEqual(const CMatrix33&) const;
	double operator()(int row, int col) const { return Row[row][col]; }
	double &operator()(int row, int col) { return Row[row][col]; }
	void SetIdentity();
	void SetRotation(const CVector3D& axis, double ang);
	void SetScale(const CPoint3D&);
	CPoint3D GetDiagonal() const;
private:
  double Row[3][3];
  CMatrix33 Adjoint();
};

#endif // !defined(AFX_MATRIX33_H__C140D9C8_24EC_4702_A10B_F50B007BD7B0__INCLUDED_)

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, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)

About the Author

Sharjith
Engineer Tata Technologies Ltd
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 6 Mar 2003
Article Copyright 2003 by Sharjith
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid