https://github.com/NSchertler/GeneralizedMotorcycleGraph
Tip revision: a34738fe34a051760b4042dc9d740231e511fec1 authored by Nico Schertler on 31 October 2020, 07:04:57 UTC
Updated access token
Updated access token
Tip revision: a34738f
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();
}
}
};