Skip to content
Snippets Groups Projects
Select Git revision
  • eeefe8a9f79bf35ca279b5c7933441a71393865e
  • master default protected
  • overlaps_tags_and_distributed_export
  • relaying
  • patches-4.14
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

CutPlane.h

Blame
  • 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