Skip to content
Snippets Groups Projects
Select Git revision
  • eb1468d52b762c1d0e6f1ddf6a665a0b9d7f9d1c
  • master default
  • library-names
  • fix_script_header
  • fix_libdir
  • fix_cmake_hdf5
  • partition
  • cgnsUnstructured
  • partitioning
  • HighOrderBLCurving
  • gmsh_3_0_5
  • 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
30 results

OCCFace.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    GEdgeLoop.h 1.17 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 GEDGE_LOOP_H
    #define GEDGE_LOOP_H
    
    #include "GEdge.h"
    
    class GEdgeSigned {
    public:
      int _sign;
      GEdge *ge;
      GEdgeSigned(int i, GEdge *g) : _sign(i), ge(g) {}
      GVertex *getBeginVertex() const
      {
        return (_sign == 1) ? ge->getBeginVertex() : ge->getEndVertex();
      }
      GVertex *getEndVertex() const
      {
        return (_sign != 1) ? ge->getBeginVertex() : ge->getEndVertex();
      }
      void print() const;
      int getSign() const { return _sign; }
    };
    
    class GEdgeLoop {
    private:
      std::list<GEdgeSigned> loop;
    
    public:
      typedef std::list<GEdgeSigned>::iterator iter;
      typedef std::list<GEdgeSigned>::const_iterator citer;
      GEdgeLoop(const std::vector<GEdge *> &);
      inline iter begin() { return loop.begin(); }
      inline iter end() { return loop.end(); }
      inline citer begin() const { return loop.begin(); }
      inline citer end() const { return loop.end(); }
      inline void erase(iter it) { loop.erase(it); }
      int count(GEdge *) const;
      int count() const { return (int)loop.size(); }
    };
    
    #endif