Loading...
Searching...
No Matches
tsTest_SampleBezier.h
1//
2// Copyright 2024 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_BASE_TS_TS_TEST_SAMPLE_BEZIER_H
9#define PXR_BASE_TS_TS_TEST_SAMPLE_BEZIER_H
10
11#include "pxr/pxr.h"
12#include "pxr/base/ts/api.h"
13#include "pxr/base/ts/tsTest_SplineData.h"
14#include "pxr/base/ts/tsTest_Types.h"
15
16#include <vector>
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20// Produces (time, value) samples along a Bezier curve by walking the 't'
21// parameter space. The samples are evenly divided among the segments, and then
22// uniformly in the 't' parameter for each segment. Samples do not necessarily
23// always go forward in time; Bezier segments may form loops that temporarily
24// reverse direction.
25//
26// Only Bezier segments are supported. No extrapolation is performed.
27//
28TS_API
29TsTest_SampleVec
30TsTest_SampleBezier(
31 const TsTest_SplineData &splineData,
32 int numSamples);
33
34PXR_NAMESPACE_CLOSE_SCOPE
35
36#endif