Revision f8c1c6834e3c7da57d0cae114735f1cf643b0498 authored by Nico Schertler on 09 July 2018, 14:15:39 UTC, committed by Nico Schertler on 09 July 2018, 14:15:39 UTC
1 parent 722a9f4
TargetLengthStrategySimple.h
#pragma once
#include "ParametrizationData.h"
#include "ParametrizationInterfaces.h"
//Strategy that sets the target lengths of all halfarcs to their respective number of comprising edges.
class TargetLengthStrategySimple : public ITargetlengthStrategy
{
public:
TargetLengthStrategySimple()
{ }
void SetParametricTargetLength(ParametrizationData& optData)
{
#pragma omp parallel for
for (int i = 0; i < optData.halfarcs.size(); ++i)
{
optData.parametricHalfarcTargetLengths[i] = optData.halfarcs[i].Length();
}
}
};
Computing file changes ...