1 /* *****************************************************************
2     MESQUITE -- The Mesh Quality Improvement Toolkit
3 
4     Copyright 2010 Sandia National Laboratories.  Developed at the
5     University of Wisconsin--Madison under SNL contract number
6     624796.  The U.S. Government and the University of Wisconsin
7     retain certain rights to 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     (2010) kraftche@cae.wisc.edu
24 
25   ***************************************************************** */
26 
27 
28 /** \file IdealShapeTarget.hpp
29  *  \brief
30  *  \author Jason Kraftcheck
31  */
32 
33 #ifndef MSQ_IDEAL_SHAPE_TARGET_HPP
34 #define MSQ_IDEAL_SHAPE_TARGET_HPP
35 
36 #include "Mesquite.hpp"
37 #include "TargetCalculator.hpp"
38 
39 namespace MBMesquite {
40 
41 class MESQUITE_EXPORT IdealShapeTarget : public TargetCalculator
42 {
43 public:
44 
45   virtual ~IdealShapeTarget();
46 
47 
48   /**\brief Get a target matrix
49    *
50    *\param pd      The current PatchData
51    *\param element The index an element within the patch data.
52    *\param sample  The sample point in the element.
53    *\param W_out   The resulting target matrix.
54    */
55   virtual bool get_3D_target( PatchData& pd,
56                               size_t element,
57                               Sample sample,
58                               MsqMatrix<3,3>& W_out,
59                               MsqError& err );
60 
61   /**\brief Get a target matrix
62    *
63    *\param pd      The current PatchData
64    *\param element The index an element within the patch data.
65    *\param sample  The sample point in the element.
66    *\param W_out   The resulting target matrix.
67    */
68   virtual bool get_surface_target( PatchData& pd,
69                                    size_t element,
70                                    Sample sample,
71                                    MsqMatrix<3,2>& W_out,
72                                    MsqError& err );
73 
74   /**\brief Get a target matrix
75    *
76    *\param pd      The current PatchData
77    *\param element The index an element within the patch data.
78    *\param sample  The sample point in the element.
79    *\param W_out   The resulting target matrix.
80    */
81   virtual bool get_2D_target( PatchData& pd,
82                               size_t element,
83                               Sample sample,
84                               MsqMatrix<2,2>& W_out,
85                               MsqError& err );
86 
87   virtual bool have_surface_orient() const;
88 
89 };
90 
91 
92 } // namespace MBMesquite
93 
94 #endif
95