mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 18:28:51 -05:00
layers in cm
This commit is contained in:
parent
f21646b132
commit
65a17af40a
|
@ -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){
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user