return self->getMeshAtLevel(meshDimRelToMaxExt,false);
}
+ void __setitem__(int meshDimRelToMax, MEDCouplingPointSet *mesh) throw(INTERP_KERNEL::Exception)
+ {
+ if(!mesh)
+ throw INTERP_KERNEL::Exception("MEDFileUMesh::__setitem__ : Input mesh is NULL !");
+ MEDCouplingUMesh *m0(dynamic_cast<MEDCouplingUMesh *>(mesh));
+ if(m0)
+ {
+ self->setMeshAtLevel(meshDimRelToMax,m0,false);
+ return ;
+ }
+ MEDCoupling1GTUMesh *m1(dynamic_cast<MEDCoupling1GTUMesh *>(mesh));
+ if(m1)
+ {
+ self->setMeshAtLevel(meshDimRelToMax,m1);
+ return ;
+ }
+ throw INTERP_KERNEL::Exception("MEDFileUMesh::__setitem__ : Not recognized input mesh !");
+ }
+
void setMeshes(PyObject *li, bool renum=false) throw(INTERP_KERNEL::Exception)
{
std::vector<const MEDCouplingUMesh *> ms;
mm.setName("MyFirstMEDCouplingMEDmesh")
mm.setDescription("IHopeToConvinceLastMEDMEMUsers")
mm.setCoords(c)
- mm.setMeshAtLevel(-1,m1);
- mm.setMeshAtLevel(0,m);
+ mm[-1]=m1;
+ mm[0]=m;
mm.setRenumFieldArr(0,DataArrayInt([32,41,50,56,7]))
- mm.setMeshAtLevel(-2,m2);
+ mm[-2]=m2;
mm.setRenumFieldArr(-2,DataArrayInt([102,52,45,63]))
# playing with groups
g1_2=DataArrayInt.New()