#include <ExtrudedPolygon.h>
Definition at line 11 of file ExtrudedPolygon.h.
ExtrudedPolygon::ExtrudedPolygon |
( |
const std::vector< double > & |
x, |
|
|
const std::vector< double > & |
y, |
|
|
const std::vector< double > & |
z, |
|
|
const std::vector< double > & |
zx, |
|
|
const std::vector< double > & |
zy, |
|
|
const std::vector< double > & |
zscale |
|
) |
| |
Definition at line 13 of file ExtrudedPolygon.cc.
References ddextrudedpolygon, and DDI::Solid::p_.
21 assert(
x.size() ==
y.size());
22 assert(
z.size() == zx.size());
23 assert(
z.size() == zy.size());
24 assert(
z.size() == zscale.size());
26 p_.reserve(
x.size() +
y.size() +
z.size() + zx.size() + zy.size() + zscale.size() + 1 );
27 p_.emplace_back(
z.size());
28 p_.insert(
p_.end(),
x.begin(),
x.end());
29 p_.insert(
p_.end(),
y.begin(),
y.end());
30 p_.insert(
p_.end(),
z.begin(),
z.end());
31 p_.insert(
p_.end(), zx.begin(), zx.end());
32 p_.insert(
p_.end(), zy.begin(), zy.end());
33 p_.insert(
p_.end(), zscale.begin(), zscale.end());
void DDI::ExtrudedPolygon::stream |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
double ExtrudedPolygon::volume |
( |
void |
| ) |
const |
|
overridevirtual |