text: /*This file is part of the FEBio Studio source code and is licensed under the MIT license
  listed below.
  
  See Copyright-FEBio-Studio.txt for details.
  
  Copyright (c) 2020 University of Utah, The Trustees of Columbia University in 
  the City of New York, and others.
  
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:
  
  The above copyright notice and this permission notice shall be included in all
  copies or substantial portions of the Software.
  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.*/
  
  #pragma once
  #include <MathLib/math3d.h>
  #include <list>
  
  //-----------------------------------------------------------------------------
  // forward declarations of the classed defined here.
  // These classes are used by the various 2D meshing classes
  class Node2D;
  class Edge2D;
  class Tri2D;
  class Quad2D;
  
  //-----------------------------------------------------------------------------
  // The 2D mesh classes use lists to store all the mesh items.
  // Therefore we defined these reference classes for accessing mesh items
  typedef std::list<Node2D>::iterator Node2DIterator;
  typedef std::list<Edge2D>::iterator Edge2DIterator;
  typedef std::list<Tri2D >::iterator Tri2DIterator;
  typedef std::list<Quad2D>::iterator Quad2DIterator;
  
  //-----------------------------------------------------------------------------
  // This class represents a node in 2D
  class Node2D
  {
  public:
  	// constructor
  	Node2D() : tag(0) {}
  	explicit Node2D(const vec2d& r) : pos(r), tag(0) {}
  
  public:
  	vec2d	pos;	// spatial position
  	int		tag;	// user tag
  };
  
  //-----------------------------------------------------------------------------
  // This class represents an edge
  class Edge2D
  {
  public:
  	// constructor
  	Edge2D();
  
  public:
  	Node2DIterator	node[2];
  };
  