Skip to content
Snippets Groups Projects
Commit c6f62db8 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

add API to acceess parts in polyg/polyh

parent a38b2157
No related branches found
No related tags found
No related merge requests found
...@@ -156,6 +156,8 @@ class MPolyhedron : public MElement { ...@@ -156,6 +156,8 @@ class MPolyhedron : public MElement {
} }
virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false, virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false,
int num=0, int elementary=1, int physical=1); int num=0, int elementary=1, int physical=1);
virtual int getNumParts() const { return _parts.size(); }
virtual MElement *getPart(int i) const { _parts[i]; }
}; };
class MPolygon : public MElement { class MPolygon : public MElement {
...@@ -269,6 +271,8 @@ class MPolygon : public MElement { ...@@ -269,6 +271,8 @@ class MPolygon : public MElement {
} }
virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false, virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false,
int num=0, int elementary=1, int physical=1); int num=0, int elementary=1, int physical=1);
virtual int getNumParts() const { return _parts.size(); }
virtual MElement *getPart(int i) const { _parts[i]; }
}; };
class MTriangleBorder : public MTriangle { class MTriangleBorder : public MTriangle {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
void (*GMSH_Plugin::draw)(void*) = 0; void (*GMSH_Plugin::draw)(void*) = 0;
void GMSH_Plugin::setDrawFunction(void (*fct)(void *context)) void GMSH_Plugin::setDrawFunction(void (*fct)(void *))
{ {
#if defined(HAVE_FLTK) #if defined(HAVE_FLTK)
draw = fct; draw = fct;
......
$Id: VERSIONS.txt,v 1.48 2009-08-14 08:25:37 geuzaine Exp $ $Id: VERSIONS.txt,v 1.49 2009-08-20 08:52:42 geuzaine Exp $
2.4.0 (?): switched build system to CMake; optionally copy transfinite 2.4.0 (?): switched build system to CMake; optionally copy transfinite
mesh contraints during geometry transformations; bumped mesh version mesh contraints during geometry transformations; bumped mesh version
format to 2.1 (small change in the $PhysicalNames section, where the format to 2.1 (small change in the $PhysicalNames section, where the
group dimension is now required); ported most plugins to the new group dimension is now required); ported most plugins to the new
post-processing API. post-processing API; switched from MathEval to MathEx and
Flu_Tree_Browser to Fl_Tree; small bug fixes and improvements all over
the place.
2.3.1 (Mar 18, 2009): removed GSL dependency (Gmsh now simply uses 2.3.1 (Mar 18, 2009): removed GSL dependency (Gmsh now simply uses
Blas and Lapack); new per-window visibility; added support for Blas and Lapack); new per-window visibility; added support for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment