diff --git a/Geo/FProjectionFace.cpp b/Geo/FProjectionFace.cpp deleted file mode 100644 index 57b667b9d6fa965b04eb0b8f7bb2ed07c075f85b..0000000000000000000000000000000000000000 --- a/Geo/FProjectionFace.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include "FProjectionFace.h" - -#if defined(HAVE_FOURIER_MODEL) - -FProjectionFace::FProjectionFace(GModel *m, int num) - : GFace(m,num), ps_(0) {} - -FProjectionFace::FProjectionFace(GModel *m, int num, FM::ProjectionSurface* ps) - : GFace(m,num), ps_(ps) {} - -FProjectionFace::~FProjectionFace() {} - -GPoint FProjectionFace::point(double par1, double par2) const -{ - SVector3 p; - ps_->F(par1,par2,p[0],p[1],p[2]); - return GPoint(p[0],p[1],p[2]); -} - -SPoint2 FProjectionFace::parFromPoint(const SPoint3 &p) const -{ - double u,v; - ps_->Inverse(p[0],p[1],p[2],u,v); - return SPoint2(u,v); -} - -Pair<SVector3,SVector3> FProjectionFace::firstDer(const SPoint2 ¶m) const -{ - SVector3 du; - SVector3 dv; - ps_->Dfdu(param.x(),param.y(),du[0],du[1],du[2]); - ps_->Dfdv(param.x(),param.y(),dv[0],dv[1],dv[2]); - return Pair<SVector3,SVector3>(du,dv); -} - -SVector3 FProjectionFace::normal(const SPoint2 ¶m) const -{ - double x, y, z; - ps_->GetUnitNormal(param.x(),param.y(),x,y,z); - return SVector3(x,y,z); -} - -Range<double> FProjectionFace::parBounds(int i) const -{ - return Range<double>(0, 1); -} - -#endif diff --git a/Geo/FProjectionFace.h b/Geo/FProjectionFace.h deleted file mode 100644 index b8b07d0605eefad15ec5db4c553009a46096061c..0000000000000000000000000000000000000000 --- a/Geo/FProjectionFace.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef _F_PROJECTION_FACE_H_ -#define _F_PROJECTION_FACE_H_ - -#include "GModel.h" -#include "Range.h" - -#if defined(HAVE_FOURIER_MODEL) - -#include "FM_ProjectionSurface.h" - -class FProjectionFace : public GFace { - protected: - FM::ProjectionSurface *ps_; - public: - FProjectionFace(GModel *m, int num); - FProjectionFace(GModel *m, int num, FM::ProjectionSurface* ps); - ~FProjectionFace(); - Range<double> parBounds(int i) const; - GPoint point(double par1, double par2) const; - SVector3 normal(const SPoint2 ¶m) const; - Pair<SVector3,SVector3> firstDer(const SPoint2 ¶m) const; - SPoint2 parFromPoint(const SPoint3 &) const; - virtual int containsParam(const SPoint2 &pt) const { throw; } - virtual GEntity::GeomType geomType() const { return GEntity::ProjectionFace; } - ModelType getNativeType() const { return UnknownModel; } - void *getNativePtr() const { return ps_; } -}; - -#endif - -#endif