MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / toThreeVector

Function toThreeVector

src/utilities/geometry/ThreeJS.cpp:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215std::vector<double> toThreeVector(const Point3dVector& vertices) {
216 std::vector<double> result;
217 result.reserve(vertices.size() * 3);
218 for (const auto& vertex : vertices) {
219 result.push_back(vertex.x());
220 result.push_back(vertex.z());
221 result.push_back(-vertex.y());
222 }
223 return result;
224}
225
226Point3dVector fromThreeVector(const std::vector<double>& vertices) {
227 Point3dVector result;

Callers 2

makeGeometriesFunction · 0.85
makeSurfaceMethod · 0.85

Calls 5

sizeMethod · 0.45
push_backMethod · 0.45
xMethod · 0.45
zMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected