plane.h

来自「曲面加工程序源码,用C++编写的加工曲线曲面的程序」· C头文件 代码 · 共 72 行

H
72
字号
#if !defined(__plane_h)
#define __plane_h

//Difinition of plane class

#include "vector.h"
#include "face.h"

class plane:public face {

   private:

       double ZPlane;

 public:
	// Constractor and destractor
	plane();
	virtual ~plane();

	//accessor
	//void SetParameters(void);
	void SetZPlane(double  );
	double GetZPlane();

	double GetZ( double x, double y);
	vector GetPosition( double x, double y);

	double gradX(double x, double y);
	double gradY(double x, double y);
	double gradXX(double x, double y);
	double gradYY(double x, double y);

	// This is the normal vector of surface on the point(x,y).
	// This is toward the inside of plane.
	// This.length is 1.
	vector NormalVector ( double x, double y);
	vector NormalVector ( vector position);

	////GradientVector////////////////////////////////////////////
	// This is one of tangential vactors on the tangential plane.
	// This is toward direction which has the largest gradient.
	// This length is 1.
	vector GradientVector(double x, double y);
	vector GradientVector( vector position);

	////NoGradientVector///////////////////////////////////////////
	// This is one of tangential vactors on the tangential plane.
	// This is toward direction which has no gradient.
	//// This length will be 1,
	//// and this Z-coordinate will be Zero.
	vector NoGradientVector(double x,double y);
	vector NoGradientVector(vector position);

		//朄慄丗a normal line
		//徟揰丗a focal point
		//捀揰丗a vertex
		//徟揰嫍棧丗a focal distance

	int WriteFaceName(ofstream&);
	int WriteParameters(ofstream&);

        //980519
        void SetParameter(TStringList *str);
        void GetParameter(TStringList *str);

};	//end of plane class
#endif




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?