5 #include "gear/geartgeo/MaterialMapFactory.h"
9 MaterialMapFactory::MaterialMapFactory(GearMgr *gearMgr)
15 double ymin,
double ymax,
int nysteps,
16 double zmin,
double zmax,
int nzsteps,
19 double gridA[]={xmin,xmax,double(nxsteps),ymin,ymax,double(nysteps),zmin,zmax,double(nzsteps)};
20 std::vector<double> gridV;
21 gridV.assign(gridA,gridA+9);
23 if(_managerMap.find(gridV)==_managerMap.end())
24 _managerMap[gridV]=
new MaterialMap(_gearMgr,xmin,xmax,nxsteps,ymin,ymax,nysteps,zmin,zmax,nzsteps,coord);
26 return _managerMap[gridV];
Material map using GearDistanceProperties.
MaterialMap * createMaterialMap(double xmin, double xmax, int nxsteps, double ymin, double ymax, int nysteps, double zmin, double zmax, int nzsteps, int coord)
Creating a material map in memory.