https://github.com/ialhashim/topo-blend
Revision 373c71bbc05e774e525c463dc4e4b2b999cf173f authored by jjcao1231@gmail.com on 17 December 2013, 12:19:14 UTC, committed by jjcao1231@gmail.com on 17 December 2013, 12:19:14 UTC
1 parent 6bdd92b
Raw File
Tip revision: 373c71bbc05e774e525c463dc4e4b2b999cf173f authored by jjcao1231@gmail.com on 17 December 2013, 12:19:14 UTC
changed ScorerManager::pathScore( Scheduler * scheduler ), then compute scorer by Demo and Starlab should be the same. But they are still different now. have not located the reason.
Tip revision: 373c71b
SingleCurve.h
// Geometric Tools, LLC
// Copyright (c) 1998-2012
// Distributed under the Boost Software License, Version 1.0.

#pragma once

#include "NURBSGlobal.h"
#include "Curve.h"

namespace NURBS
{

template <typename Real>
class SingleCurve : public Curve<Real>
{
public:
    // Abstract base class.
    SingleCurve () {}
	virtual ~SingleCurve () {}

    SingleCurve (Real tmin, Real tmax);

    // Length-from-time and time-from-length.
    virtual Real GetLength (Real t0, Real t1);
    virtual Real GetTime (Real length, int iterations = 32, Real tolerance = (Real)1e-05);

    Curve<Real>::mTMin;
    Curve<Real>::mTMax;
    Curve<Real>::GetSpeed;
    Curve<Real>::GetTotalLength;

    static Real GetSpeedWithData (Real t, void* data);
};

typedef SingleCurve<float> SingleCurvef;
typedef SingleCurve<double> SingleCurved;

}
back to top