Skip to content
Snippets Groups Projects
Commit 9a20a99e authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 82d51ec3
No related branches found
No related tags found
No related merge requests found
# $Id: Makefile,v 1.206 2008-05-19 18:50:32 remacle Exp $
# $Id: Makefile,v 1.207 2008-05-19 19:09:55 remacle Exp $
#
# Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
#
......@@ -34,6 +34,7 @@ SRC = GEntity.cpp\
GVertex.cpp GEdge.cpp GEdgeLoop.cpp GFace.cpp GRegion.cpp\
gmshVertex.cpp gmshEdge.cpp gmshFace.cpp gmshRegion.cpp gmshSurface.cpp\
OCCVertex.cpp OCCEdge.cpp OCCFace.cpp OCCRegion.cpp\
discreteFace.cpp discreteRegion.cpp\
fourierEdge.cpp fourierFace.cpp fourierProjectionFace.cpp\
GModel.cpp\
GModelIO_Geo.cpp\
......
#include "discreteFace.h"
#if !defined(HAVE_GMSH_EMBEDDED)
#include "Geo.h"
#endif
discreteFace::discreteFace(GModel *model, int num) : GFace(model, num)
{
#if !defined(HAVE_GMSH_EMBEDDED)
Surface *s = Create_Surface(num, MSH_SURF_DISCRETE);
Tree_Add(model->getGEOInternals()->Surfaces, &s);
#endif
meshStatistics.status = GFace::DONE;
}
......@@ -23,20 +23,9 @@
#include "GModel.h"
#include "GFace.h"
#if !defined(HAVE_GMSH_EMBEDDED)
#include "Geo.h"
#endif
class discreteFace : public GFace {
public:
discreteFace(GModel *model, int num) : GFace(model, num)
{
#if !defined(HAVE_GMSH_EMBEDDED)
Surface *s = Create_Surface(num, MSH_SURF_DISCRETE);
Tree_Add(model->getGEOInternals()->Surfaces, &s);
#endif
meshStatistics.status = GFace::DONE;
}
discreteFace(GModel *model, int num);
virtual ~discreteFace() {}
virtual GPoint point(double par1, double par2) const { throw; }
virtual SPoint2 parFromPoint(const SPoint3 &p) const { throw; }
......
#include "discreteRegion.h"
#include "GModel.h"
#if !defined(HAVE_GMSH_EMBEDDED)
#include "Geo.h"
#endif
discreteRegion::discreteRegion(GModel *model, int num) : GRegion(model, num)
{
#if !defined(HAVE_GMSH_EMBEDDED)
::Volume *v = Create_Volume(num, MSH_VOLUME_DISCRETE);
Tree_Add(model->getGEOInternals()->Volumes, &v);
#endif
}
......@@ -21,20 +21,9 @@
// Please report all bugs and problems to <gmsh@geuz.org>.
#include "GRegion.h"
#if !defined(HAVE_GMSH_EMBEDDED)
#include "Geo.h"
#endif
class discreteRegion : public GRegion {
public:
discreteRegion(GModel *model, int num) : GRegion(model, num)
{
#if !defined(HAVE_GMSH_EMBEDDED)
::Volume *v = Create_Volume(num, MSH_VOLUME_DISCRETE);
Tree_Add(model->getGEOInternals()->Volumes, &v);
#endif
}
discreteRegion(GModel *model, int num) ;
virtual ~discreteRegion() {}
virtual GeomType geomType() const { return DiscreteVolume; }
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment