Skip to content
Snippets Groups Projects
Select Git revision
  • f778a1fd0aca0c532362682e470c5214343d30dc
  • master default protected
  • relaying
  • overlaps_tags_and_distributed_export
  • alphashapes
  • patches-4.14
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • 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

CutGrid.h

Blame
  • CutGrid.h 1.76 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_GRID_H
    #define CUT_GRID_H
    
    #include "Plugin.h"
    
    extern "C" {
    GMSH_Plugin *GMSH_RegisterCutGridPlugin();
    }
    
    class GMSH_CutGridPlugin : public GMSH_PostPlugin {
      static double callback(int num, int action, double value, double *opt,
                             double step, double min, double max);
      void addInView(int numsteps, int connect, int nbcomp, double ***pnts,
                     double ***vals, std::vector<double> &P, int *nP,
                     std::vector<double> &L, int *nL, std::vector<double> &Q,
                     int *nQ);
      PView *GenerateView(PView *v, int connectPoints);
    
    public:
      GMSH_CutGridPlugin() {}
      std::string getName() const { return "CutGrid"; }
      std::string getShortHelp() const
      {
        return "Cut with a regular grid defined by 3 points";
      }
      std::string getHelp() const;
      int getNbOptions() const;
      StringXNumber *getOption(int iopt);
      PView *execute(PView *);
    
      static int getNbU();
      static int getNbV();
      static void getPoint(int iU, int iV, double *X);
    
      static double callbackX0(int, int, double);
      static double callbackY0(int, int, double);
      static double callbackZ0(int, int, double);
      static double callbackX1(int, int, double);
      static double callbackY1(int, int, double);
      static double callbackZ1(int, int, double);
      static double callbackX2(int, int, double);
      static double callbackY2(int, int, double);
      static double callbackZ2(int, int, double);
      static double callbackU(int, int, double);
      static double callbackV(int, int, double);
      static double callbackConnect(int, int, double);
      static void draw(void *context);
    };
    
    #endif