67 const std::vector<double>& apex1z,
68 const std::vector<double>& apex2x,
const std::vector<double>& apex2y,
const std::vector<double>& apex2z,
69 const std::vector<double>& apex3x,
const std::vector<double>& apex3y,
const std::vector<double>& apex3z)
71 if (
nCells != apex1x.size())
72 B2ERROR(
"tessellatedSolidStr: apex1x.size() != nCells");
73 if (
nCells != apex1y.size())
74 B2ERROR(
"tessellatedSolidStr: apex1y.size() != nCells");
75 if (
nCells != apex1z.size())
76 B2ERROR(
"tessellatedSolidStr: apex1z.size() != nCells");
77 if (
nCells != apex2x.size())
78 B2ERROR(
"tessellatedSolidStr: apex2x.size() != nCells");
79 if (
nCells != apex2y.size())
80 B2ERROR(
"tessellatedSolidStr: apex2y.size() != nCells");
81 if (
nCells != apex2z.size())
82 B2ERROR(
"tessellatedSolidStr: apex2z.size() != nCells");
83 if (
nCells != apex3x.size())
84 B2ERROR(
"tessellatedSolidStr: apex3x.size() != nCells");
85 if (
nCells != apex3y.size())
86 B2ERROR(
"tessellatedSolidStr: apex3y.size() != nCells");
87 if (
nCells != apex3z.size())
88 B2ERROR(
"tessellatedSolidStr: apex3z.size() != nCells");
89 for (
unsigned int i = 0; i <
nCells; i++) {
90 std::vector<double> apex1;
91 std::vector<double> apex2;
92 std::vector<double> apex3;
93 apex1.push_back(apex1x.at(i));
94 apex1.push_back(apex1y.at(i));
95 apex1.push_back(apex1z.at(i));
96 apex2.push_back(apex2x.at(i));
97 apex2.push_back(apex2y.at(i));
98 apex2.push_back(apex2z.at(i));
99 apex3.push_back(apex3x.at(i));
100 apex3.push_back(apex3y.at(i));
101 apex3.push_back(apex3z.at(i));
102 posV1.push_back(apex1);
103 posV2.push_back(apex2);
104 posV3.push_back(apex3);