1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00

Merge pull request #77 from hrosiak/layers_cm

layers adding
This commit is contained in:
Andrej Prochazka 2020-11-02 15:14:13 +01:00 committed by GitHub
commit 77ab424c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

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

View File

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