MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / GradientHorizontalToObjThree

Function GradientHorizontalToObjThree

src/cpp/test/dumpToThree.h:409–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 }
408
409 inline std::string GradientHorizontalToObjThree(const webifc::geometry::IfcCurve& geom)
410 {
411 std::stringstream obj;
412 for (uint32_t ic = 0; ic < geom.points.size(); ic++)
413 {
414 glm::dvec3 t = glm::dvec4(geom.points[ic].x, geom.points[ic].y, 0, 1);
415 obj << "v " << t.x << " " << t.y << " " << t.z << "\n";
416 }
417 uint32_t idx = 0;
418 for (uint32_t ic = 0; ic < geom.points.size() - 1; ic++)
419 {
420 obj << "l " << (idx) << " " << (idx + 1) << "\n";
421 idx++;
422 }
423 return obj.str();
424 }
425
426 inline std::string VAlignmentToObjThree(const std::vector<webifc::geometry::IfcAlignment>& geom)
427 {

Callers 1

DumpGradientCurveThreeFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected