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

*** empty log message ***

parent bf83f4b0
No related branches found
No related tags found
No related merge requests found
#ifndef _CUTMAP_H_
#define _CUTMAP_H
#include "LevelsetPlugin.h"
extern "C"
{
GMSH_Plugin *GMSH_RegisterCutMapPlugin ();
}
class GMSH_CutMapPlugin : public GMSH_LevelsetPlugin
{
/*we cut the othe map by the iso A of the View iView */
double A;
int iView;
virtual double levelset (double x, double y, double z) const;
public:
GMSH_CutMapPlugin(double A, int IVIEW);
virtual void getName (char *name) const;
virtual void getInfos (char *author,
char *copyright,
char *help_text) const;
virtual void CatchErrorMessage (char *errorMessage) const;
virtual int getNbOptions() const;
virtual void GetOption (int iopt, StringXNumber *option) const;
};
#endif
#ifndef _CUTPLANE_H_
#define _CUTPLANE_H
#include "LevelsetPlugin.h"
extern "C"
{
GMSH_Plugin *GMSH_RegisterCutPlanePlugin ();
}
class GMSH_CutPlanePlugin : public GMSH_LevelsetPlugin
{
/*Plane a x + b y + c z + d = 0*/
double a,b,c,d;
virtual double levelset (double x, double y, double z) const;
public:
GMSH_CutPlanePlugin(double A, double B, double C, double D);
virtual void getName (char *name) const;
virtual void getInfos (char *author,
char *copyright,
char *help_text) const;
virtual void CatchErrorMessage (char *errorMessage) const;
virtual int getNbOptions() const;
virtual void GetOption (int iopt, StringXNumber *option) const;
};
#endif
#ifndef _CUTSPHERE_H_
#define _CUTSPHERE_H
#include "LevelsetPlugin.h"
extern "C"
{
GMSH_Plugin *GMSH_RegisterCutSpherePlugin ();
}
class GMSH_CutSpherePlugin : public GMSH_LevelsetPlugin
{
/*Sphere (x-a)^2 + (y-b)^2 + (z-c)^2 - r^2 = 0*/
double a,b,c,r;
virtual double levelset (double x, double y, double z) const;
public:
GMSH_CutSpherePlugin(double A, double B, double C, double R);
virtual void getName (char *name) const;
virtual void getInfos (char *author,
char *copyright,
char *help_text) const;
virtual void CatchErrorMessage (char *errorMessage) const;
virtual int getNbOptions() const;
virtual void GetOption (int iopt, StringXNumber *option) const;
};
#endif
#ifndef _LEVELSETPLUGIN_H_
#define _LEVELSETPLUGIN_H_
#include "Plugin.h"
class GMSH_LevelsetPlugin : public GMSH_Post_Plugin
{
virtual double levelset (double x, double y, double z) const = 0;
public:
virtual Post_View *execute (Post_View *);
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment