Skip to content
Snippets Groups Projects
Select Git revision
  • a1781e7c7ca65013df03c9bcdb3e05404a9c4b97
  • 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

CutPlane.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    CutPlane.cpp 1.18 KiB
    #include "CutPlane.h"
    //#include "Views.h"
    /*
      Plugin Entry : GMSH_RegisterPlugin
     */
    
    GMSH_Plugin *GMSH_RegisterPlugin ()
    {
      return new GMSH_CutPlanePlugin (1.0,0.0,0.0,0.0);
    }
    
    GMSH_CutPlanePlugin::GMSH_CutPlanePlugin(double A, double B, double C, double D)
      :a(A),b(B),c(C),d(D)
    {
    }
    
    void GMSH_CutPlanePlugin::getName(char *name) const
    {
      strcpy(name,"Cut Plane");
    }
    
    void GMSH_CutPlanePlugin::getInfos(char *author, char *copyright, char *help_text) const
    {
      strcpy(author,"J.-F. Remacle (remacle@scorec.rpi.edu)");
      strcpy(copyright,"DGR (www.multiphysics.com)");
      strcpy(help_text,"This Plugins cuts a view with a plane a x + b y + c z + d = 0");
    }
    
    int GMSH_CutPlanePlugin::getNbOptions() const
    {
      return 4;
    }
    
    void GMSH_CutPlanePlugin:: GetOption (int iopt, char *optionName, void *optionValue) const
    {
      // geuz, t'es le specialiste des options, regarde comment
      // on pourrait faire Plugin.CutPlane.a = 1.0;
    }
    
    void GMSH_CutPlanePlugin::CatchErrorMessage (char *errorMessage) const
    {
      strcpy(errorMessage,"CutPlane Failed...");
    }
    
    Post_View *GMSH_CutPlanePlugin::execute (Post_View *)
    {
      throw this;
    }
    
    void GMSH_CutPlanePlugin::SetOption (char *optionName, void *optionValue)
    {
    }