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

GUI.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    GModel.cpp 92.18 KiB
    // Gmsh - Copyright (C) 1997-2012 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to <gmsh@geuz.org>.
    
    #include <stdlib.h>
    #include <sstream>
    #include <stack>
    #include "GmshConfig.h"
    #include "GmshMessage.h"
    #include "GModel.h"
    #include "GModelFactory.h"
    #include "GFaceCompound.h"
    #include "GEdgeCompound.h"
    #include "MPoint.h"
    #include "MLine.h"
    #include "MTriangle.h"
    #include "MQuadrangle.h"
    #include "MTetrahedron.h"
    #include "MHexahedron.h"
    #include "MPrism.h"
    #include "MPyramid.h"
    #include "MElementCut.h"
    #include "MElementOctree.h"
    #include "discreteRegion.h"
    #include "discreteFace.h"
    #include "discreteEdge.h"
    #include "discreteVertex.h"
    #include "gmshSurface.h"
    #include "Geo.h"
    #include "SmoothData.h"
    #include "Context.h"
    #include "OS.h"
    #include "GEdgeLoop.h"
    #include "MVertexPositionSet.h"
    #include "OpenFile.h"
    #include "CreateFile.h"
    #include "Options.h"
    #include "meshGEdge.h"
    #include "meshGFace.h"
    #include "meshGRegion.h"
    
    #if defined(HAVE_MESH)
    #include "Field.h"
    #include "Generator.h"
    #include "meshGFaceOptimize.h"
    #include "meshPartition.h"
    #include "HighOrder.h"
    #include "meshMetric.h"
    #include "meshGRegionMMG3D.h"
    #include "meshGFaceBamg.h"
    #endif
    
    #if defined(HAVE_KBIPACK)
    #include "Homology.h"
    #endif
    
    std::vector<GModel*> GModel::list;
    int GModel::_current = -1;
    
    GModel::GModel(std::string name)
      : _name(name), _visible(1), _octree(0),
        _geo_internals(0), _occ_internals(0), _acis_internals(0), _fm_internals(0),
        _factory(0), _fields(0), _currentMeshEntity(0), normals(0)
    {
      partitionSize[0] = 0; partitionSize[1] = 0;
    
      // hide all other models
      for(unsigned int i = 0; i < list.size(); i++)
        list[i]->setVisibility(0);