00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _CONTOUR2S_H_
00021 #define _CONTOUR2S_H_
00022
00023 #include "mbsim/contours/contour_continuum.h"
00024
00025 namespace MBSim {
00026
00033 class Contour2s : public ContourContinuum<fmatvec::Vec> {
00034 protected:
00038 fmatvec::Vec nodesU, nodesV;
00039
00040 public:
00045 Contour2s(const std::string &name) : ContourContinuum<fmatvec::Vec>(name) {}
00046
00051 virtual fmatvec::Mat3x2 computeTangentialPlane(fmatvec::Vec alpha) { ContourPointData cp(alpha); updateKinematicsForFrame(cp,Frame::cosy); return cp.getFrameOfReference().getOrientation()(fmatvec::Range<fmatvec::Fixed<0>,fmatvec::Fixed<2> >(),fmatvec::Range<fmatvec::Fixed<1>,fmatvec::Fixed<2> >()); }
00052
00056 const fmatvec::Vec getNodesU() const { return nodesU; }
00057
00061 const fmatvec::Vec getNodesV() const { return nodesU; }
00062
00066 void setNodesU(const fmatvec::Vec& nodesU_) { nodesU = nodesU_; }
00067
00071 void setNodesV(const fmatvec::Vec& nodesV_) { nodesV = nodesV_; }
00072 };
00073
00074 }
00075
00076 #endif
00077