MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / ToXYZ

Method ToXYZ

src/LNLib/Algorithm/ControlPointsUtils.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace LNLib;
18
19std::vector<XYZ> LNLib::ControlPointsUtils::ToXYZ(const std::vector<XYZW>& weightedControlPoints)
20{
21 std::vector<XYZ> result;
22 for (int i = 0; i < weightedControlPoints.size(); i++)
23 {
24 result.emplace_back(const_cast<XYZW&>(weightedControlPoints[i]).ToXYZ(true));
25 }
26 return result;
27}
28
29std::vector<std::vector<XYZ>> LNLib::ControlPointsUtils::ToXYZ(const std::vector<std::vector<XYZW>>& points)
30{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected