MOAB: Mesh Oriented datABase  (version 5.4.1)
XYPlanarDomain.hpp
Go to the documentation of this file.
00001 /* *****************************************************************
00002     MESQUITE -- The Mesh Quality Improvement Toolkit
00003 
00004     Copyright 2004 Sandia Corporation and Argonne National
00005     Laboratory.  Under the terms of Contract DE-AC04-94AL85000
00006     with Sandia Corporation, the U.S. Government retains certain
00007     rights in this software.
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2.1 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public License
00020     (lgpl.txt) along with this library; if not, write to the Free Software
00021     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023     [email protected], [email protected], [email protected],
00024     [email protected], [email protected], [email protected],
00025     [email protected]
00026 
00027   ***************************************************************** */
00028 /*!
00029   \file   XYPlanarDomain.hpp
00030   \brief
00031 
00032 
00033   \author Thomas Leurent
00034   \date   2002-01-17
00035   \author Boyd Tidwell
00036   \date   2012-03-07
00037 */
00038 
00039 #ifndef MSQ_XYPLANAR_DOMAIN_HPP
00040 #define MSQ_XYPLANAR_DOMAIN_HPP
00041 
00042 #include "MeshInterface.hpp"
00043 #include "Vector3D.hpp"
00044 
00045 namespace MBMesquite
00046 {
00047 /*! \class XYPlanarDomain
00048      This is a template for a planar domain that exists in the xy-plane (z=0).
00049      It will provide the normal information necessary for surface mesh optimization.
00050   */
00051 class MESQUITE_EXPORT XYPlanarDomain : public MBMesquite::MeshDomain
00052 {
00053   public:
00054     XYPlanarDomain(){};
00055 
00056     virtual ~XYPlanarDomain();
00057 
00058     virtual void snap_to( Mesh::VertexHandle entity_handle, Vector3D& coordinate ) const;
00059 
00060     virtual void vertex_normal_at( Mesh::VertexHandle entity_handle, Vector3D& coordinate ) const;
00061 
00062     virtual void element_normal_at( Mesh::ElementHandle entity_handle, Vector3D& coordinate ) const;
00063 
00064     virtual void vertex_normal_at( const Mesh::VertexHandle* handle,
00065                                    Vector3D coords[],
00066                                    unsigned count,
00067                                    MsqError& err ) const;
00068 
00069     virtual void closest_point( Mesh::VertexHandle handle,
00070                                 const Vector3D& position,
00071                                 Vector3D& closest,
00072                                 Vector3D& normal,
00073                                 MsqError& err ) const;
00074 
00075     virtual void domain_DoF( const Mesh::VertexHandle* handle_array,
00076                              unsigned short* dof_array,
00077                              size_t num_vertices,
00078                              MsqError& err ) const;
00079 };
00080 }  // namespace MBMesquite
00081 
00082 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines