moab
SweptVertexData.cpp
Go to the documentation of this file.
00001 
00016 #include "SweptVertexData.hpp"
00017 #include <assert.h>
00018 
00019 namespace moab {
00020 
00022 SweptVertexData::SweptVertexData(const EntityHandle start_vertex, 
00023                              const int imin, const int jmin, const int kmin,
00024                              const int imax, const int jmax, const int kmax) 
00025     : SequenceData( 3, start_vertex, 
00026                    start_vertex + (imax-imin+1)*(jmax-jmin+1)*(kmax-kmin+1) - 1 )
00027 {
00028     // need to have meaningful parameters
00029   assert(imax >= imin && jmax >= jmin && kmax >= kmin);
00030   
00031   vertexParams[0] = HomCoord(imin, jmin, kmin);
00032   vertexParams[1] = HomCoord(imax, jmax, kmax);
00033   vertexParams[2] = HomCoord(1,1,1);
00034   
00035   dIJK[0] = imax-imin+1; dIJK[1] = jmax-jmin+1; dIJK[2] = kmax-kmin+1;
00036   dIJKm1[0] = dIJK[0]-1;
00037   dIJKm1[1] = dIJK[1]-1;
00038   dIJKm1[2] = dIJK[2]-1;
00039   
00040   create_sequence_data( 0, sizeof(double) );
00041   create_sequence_data( 1, sizeof(double) );
00042   create_sequence_data( 2, sizeof(double) );
00043 }
00044 
00045 SequenceData* SweptVertexData::subset( EntityHandle /*start*/, 
00046                                      EntityHandle /*end*/,
00047                                      const int* /*sequence_data_sizes*/,
00048                                      const int* /*tag_data_sizes*/ ) const
00049 {
00050   return 0;
00051 }
00052 
00053 } // namespace moab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines