Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
ScdVertexData.cpp
Go to the documentation of this file.
00001 /**
00002  * MOAB, a Mesh-Oriented datABase, is a software component for creating,
00003  * storing and accessing finite element mesh data.
00004  *
00005  * Copyright 2004 Sandia Corporation.  Under the terms of Contract
00006  * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
00007  * retains certain 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  */
00015 
00016 #include "ScdVertexData.hpp"
00017 #include <cassert>
00018 
00019 namespace moab
00020 {
00021 
00022 //! constructor
00023 ScdVertexData::ScdVertexData( const EntityHandle start_vertex,
00024                               const int imin,
00025                               const int jmin,
00026                               const int kmin,
00027                               const int imax,
00028                               const int jmax,
00029                               const int kmax )
00030     : SequenceData( 3,
00031                     start_vertex,
00032                     start_vertex + ( imax - imin + 1 ) * ( jmax - jmin + 1 ) * ( kmax - kmin + 1 ) - 1 )
00033 {
00034     // need to have meaningful parameters
00035     assert( imax >= imin && jmax >= jmin && kmax >= kmin );
00036 
00037     vertexParams[0] = HomCoord( imin, jmin, kmin );
00038     vertexParams[1] = HomCoord( imax, jmax, kmax );
00039     vertexParams[2] = HomCoord( 1, 1, 1 );
00040 
00041     dIJK[0]   = imax - imin + 1;
00042     dIJK[1]   = jmax - jmin + 1;
00043     dIJK[2]   = kmax - kmin + 1;
00044     dIJKm1[0] = dIJK[0] - 1;
00045     dIJKm1[1] = dIJK[1] - 1;
00046     dIJKm1[2] = dIJK[2] - 1;
00047 
00048     create_sequence_data( 0, sizeof( double ) );
00049     create_sequence_data( 1, sizeof( double ) );
00050     create_sequence_data( 2, sizeof( double ) );
00051 }
00052 
00053 SequenceData* ScdVertexData::subset( EntityHandle /*start*/,
00054                                      EntityHandle /*end*/,
00055                                      const int* /*sequence_data_sizes*/,
00056                                      const int* /*tag_data_sizes*/ ) const
00057 {
00058     return 0;
00059 }
00060 
00061 }  // namespace moab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines