1
// Gmsh - Copyright (C) 1997-2009 C. Geuzaine, J.-F. Remacle
3
// See the LICENSE.txt file for license information. Please report all
4
// bugs and problems to <gmsh@geuz.org>.
15
class MPoint : public MElement {
19
MPoint(MVertex *v0, int num=0, int part=0)
24
MPoint(std::vector<MVertex*> &v, int num=0, int part=0)
30
virtual int getDim(){ return 0; }
31
virtual int getNumVertices() const { return 1; }
32
virtual MVertex *getVertex(int num){ return _v[0]; }
33
virtual int getNumEdges(){ return 0; }
34
virtual MEdge getEdge(int num){ return MEdge(); }
35
virtual int getNumEdgesRep(){ return 0; }
36
virtual void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n){}
37
virtual int getNumFaces(){ return 0; }
38
virtual MFace getFace(int num){ return MFace(); }
39
virtual int getNumFacesRep(){ return 0; }
40
virtual void getFaceRep(int num, double *x, double *y, double *z, SVector3 *n){}
41
virtual int getType() const { return TYPE_PNT; }
42
virtual int getTypeForMSH() const { return MSH_PNT; }
43
virtual int getTypeForVTK() const { return 1; }
44
virtual const char *getStringForPOS() const { return "SP"; }
45
virtual void getShapeFunctions(double u, double v, double w, double s[], int o)
49
virtual void getGradShapeFunctions(double u, double v, double w, double s[][3], int o)
51
s[0][0] = s[0][1] = s[0][2] = 0.;
53
virtual bool isInside(double u, double v, double w)