1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-23 02:38:51 -05:00

layers in cm

This commit is contained in:
hrocho 2020-08-06 15:47:39 +02:00
parent f21646b132
commit 65a17af40a
2 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,12 @@ void Layers::add(Material m){
materials.push_back(m); materials.push_back(m);
} }
void Layers::add(const Layers& l){
for(auto m: l.get_materials()){
add(m);
}
}
double Layers::thickness() const { double Layers::thickness() const {
double sum = 0; double sum = 0;
for(auto &m : materials){ for(auto &m : materials){

View File

@ -274,6 +274,12 @@ namespace catima{
*/ */
void add(Material m); void add(Material m);
/**
* append Layers
* @para, l Layers
*/
void add(const Layers& l);
/** /**
* @return number of stored Materials * @return number of stored Materials
*/ */