Skip to content
Snippets Groups Projects
Select Git revision
  • 662a541ca19675099c9e248cd15cf6006a9d7455
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

OptHomMesh.h

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    CutPlane.h 1.31 KiB
    // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    
    #ifndef CUT_PLANE_H
    #define CUT_PLANE_H
    
    #include "Levelset.h"
    
    extern "C" {
    GMSH_Plugin *GMSH_RegisterCutPlanePlugin();
    }
    
    class GMSH_CutPlanePlugin : public GMSH_LevelsetPlugin {
      double levelset(double x, double y, double z, double val) const;
      static double callback(int num, int action, double value, double *opt,
                             double step, double min, double max);
      static int iview;
    
    public:
      GMSH_CutPlanePlugin() {}
      std::string getName() const { return "CutPlane"; }
      std::string getShortHelp() const
      {
        return "Cut with the plane A*X + B*Y + C*Z + D = 0";
      }
      std::string getHelp() const;
      int getNbOptions() const;
      StringXNumber *getOption(int iopt);
      PView *execute(PView *);
      virtual bool geometricalFilter(fullMatrix<double> *) const;
    
      static double callbackA(int, int, double);
      static double callbackB(int, int, double);
      static double callbackC(int, int, double);
      static double callbackD(int, int, double);
      static double callbackVol(int, int, double);
      static double callbackRecur(int, int, double);
      static double callbackTarget(int, int, double);
      static void draw(void *context);
    };
    
    #endif