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

Function fromThreeVector

src/utilities/geometry/ThreeJS.cpp:226–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226Point3dVector fromThreeVector(const std::vector<double>& vertices) {
227 Point3dVector result;
228 size_t n = vertices.size();
229 for (size_t i = 0; i + 2 < n; i += 3) {
230 result.push_back(Point3d(vertices[i], -vertices[i + 2], vertices[i + 1]));
231 }
232 return result;
233}
234
235std::vector<double> toThreeMatrix(const Transformation& /*matrix*/) {
236 return {};

Callers 1

getFacesMethod · 0.85

Calls 3

Point3dClass · 0.70
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected