#ifdef _DEBUG_
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 1;
+static int MYDEBUGWITHFILES = 0;
//#define _DEXCEPT_
#else
static int MYDEBUG = 0;
int aNbTuples = theSource->GetNumberOfPoints();
std::string aFieldName = GenerateFieldName(theField,theValForTime);
INITMSG(MYDEBUG,"GetTimeStampOnGaussMesh - aNbTuples = "<<aNbTuples<<endl);
- //
+
vtkDataSetAttributes* aDataSetAttributes;
- //
switch(theField->myEntity){
case VISU::NODE_ENTITY :
aDataSetAttributes = theSource->GetPointData();
default:
aDataSetAttributes = theSource->GetCellData();
}
- //
+
int aNbComp = theField->myNbComp;
vtkFloatArray *aFloatArray = vtkFloatArray::New();
switch(aNbComp){
}
aFloatArray->SetNumberOfTuples(aNbTuples);
aFloatArray->SetName(aFieldName.c_str());
- //
+
vtkFloatArray *aDataArray = vtkFloatArray::New();
aDataArray->SetNumberOfComponents(aNbComp);
aDataArray->SetNumberOfTuples(aNbTuples);
aDataSetAttributes->AddArray(aDataArray);
aDataArray->SetName("VISU_FIELD");
- //
+
const TGeom2Value& aGeom2Value = theValForTime->myGeom2Value;
PGaussMeshImpl aGaussMesh = theValForTime->myGaussMesh;
const TGeom2GaussSubMesh& aGeom2GaussSubMesh = aGaussMesh->myGeom2GaussSubMesh;
TGeom2GaussSubMesh::const_iterator anIter = aGeom2GaussSubMesh.begin();
TVector<float> aDataValues(aNbComp);
- //
for(int aTupleId = 0; anIter != aGeom2GaussSubMesh.end(); anIter++){
vtkIdType aGeom = anIter->first;
PGaussSubMeshImpl aGaussSubMesh = anIter->second;
"; aNbComp = "<<aNbComp<<
"; aNbGauss = "<<aNbGauss<<
endl);
- //
+
int aNbComp2 = aNbComp;
- switch(aNbComp){
- case 2:
- case 4:
- aNbComp2 = 2;
- break;
- default:
+ if(aNbComp == 2 || aNbComp == 4)
+ aNbComp2 = 2;
+ else if(aNbComp > 4)
aNbComp2 = 3;
- }
- //
+
for(int iElem = 0; iElem < aNbElem; iElem++){
float aValue[] = {0.0, 0.0, 0.0};
TCValueSliceArr aValueSliceArr = aMeshValue.GetGaussValueSliceArr(iElem);