1 /* ***************************************************************** 2 MESQUITE -- The Mesh Quality Improvement Toolkit 3 4 Copyright 2004 Sandia Corporation and Argonne National 5 Laboratory. Under the terms of Contract DE-AC04-94AL85000 6 with Sandia Corporation, the U.S. Government retains certain 7 rights in this software. 8 9 This library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU Lesser General Public 11 License as published by the Free Software Foundation; either 12 version 2.1 of the License, or (at your option) any later version. 13 14 This library is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Lesser General Public License for more details. 18 19 You should have received a copy of the GNU Lesser General Public License 20 (lgpl.txt) along with this library; if not, write to the Free Software 21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 23 diachin2@llnl.gov, djmelan@sandia.gov, mbrewer@sandia.gov, 24 pknupp@sandia.gov, tleurent@mcs.anl.gov, tmunson@mcs.anl.gov, 25 kraftche@cae.wisc.edu 26 27 ***************************************************************** */ 28 /*! 29 \file XYPlanarDomain.hpp 30 \brief 31 32 33 \author Thomas Leurent 34 \date 2002-01-17 35 \author Boyd Tidwell 36 \date 2012-03-07 37 */ 38 39 40 #ifndef MSQ_XYPLANAR_DOMAIN_HPP 41 #define MSQ_XYPLANAR_DOMAIN_HPP 42 43 #include "MeshInterface.hpp" 44 #include "Vector3D.hpp" 45 46 namespace MBMesquite 47 { 48 /*! \class XYPlanarDomain 49 This is a template for a planar domain that exists in the xy-plane (z=0). 50 It will provide the normal information necessary for surface mesh optimization. 51 */ 52 class MESQUITE_EXPORT XYPlanarDomain : public MBMesquite::MeshDomain 53 { 54 public: 55 XYPlanarDomain()56 XYPlanarDomain() {}; 57 58 virtual ~XYPlanarDomain(); 59 60 virtual void snap_to(Mesh::VertexHandle entity_handle, 61 Vector3D &coordinate) const; 62 63 virtual void vertex_normal_at(Mesh::VertexHandle entity_handle, 64 Vector3D &coordinate) const; 65 66 virtual void element_normal_at(Mesh::ElementHandle entity_handle, 67 Vector3D &coordinate) const; 68 69 virtual void vertex_normal_at(const Mesh::VertexHandle* handle, 70 Vector3D coords[], 71 unsigned count, 72 MsqError& err) const; 73 74 virtual void closest_point( Mesh::VertexHandle handle, 75 const Vector3D& position, 76 Vector3D& closest, 77 Vector3D& normal, 78 MsqError& err ) const; 79 80 virtual void domain_DoF( const Mesh::VertexHandle* handle_array, 81 unsigned short* dof_array, 82 size_t num_vertices, 83 MsqError& err ) const; 84 85 }; 86 } 87 88 #endif 89