Skip to content
Snippets Groups Projects
Select Git revision
  • a838a6c8bb2dbae6aae55145d22715b94e50b1ae
  • master default protected
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • 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
  • 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

GenericRegion.h

Blame
  • GenericRegion.h 1.10 KiB
    // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // bugs and problems to the public mailing list <gmsh@onelab.info>.
    //
    // Contributed by Paul-Emile Bernard
    
    #ifndef _GENERIC_REGION_H_
    #define _GENERIC_REGION_H_
    
    #include "GmshConfig.h"
    #include "GRegion.h"
    
    /* The set of Generic Entities is a generic interface to any other modeler.
       Callbacks (function pointers) are given, sending requests, enquiries, to the
       native modeler. */
    
    class GenericRegion : public GRegion {
    public:
      GenericRegion(GModel *m, int num, int _native_id);
      virtual ~GenericRegion();
    
      virtual GeomType geomType() const;
    
      ModelType getNativeType() const { return GenericModel; }
      virtual int getNativeInt()const{return id;};
    
      // TODO: When using GRegion->l_dirs and l_faces, what is the convention for
      // l_dirs ? For now, assuming positive value for normals pointing inside the
      // region.
      void addFace(GenericFace *ptr, int sign){
        l_dirs.push_back(sign);
        l_faces.push_back(ptr);
        ptr->addRegion(this);
      };
    
    private:
      int id;
    };
    
    #endif