Loading...
Searching...
No Matches
simplify.h
1//
2// Copyright 2023 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_SIMPLIFY_H
9#define PXR_BASE_TS_SIMPLIFY_H
10
11#include "pxr/pxr.h"
12#include "pxr/base/ts/api.h"
13#include "pxr/base/ts/spline.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
23TS_API
24void TsSimplifySpline(
25 TsSpline* spline,
26 const GfMultiInterval &intervals,
27 double maxErrorFraction,
28 double extremeMaxErrFract = .001);
29
35TS_API
36void TsSimplifySplinesInParallel(
37 const std::vector<TsSpline *> &splines,
38 const std::vector<GfMultiInterval>& intervals,
39 double maxErrorFraction,
40 double extremeMaxErrFract = .001);
41
46TS_API
47void TsResampleSpline(
48 TsSpline* spline,
49 const GfMultiInterval &intervals,
50 double maxErrorFraction);
51
52PXR_NAMESPACE_CLOSE_SCOPE
53
54#endif // PXR_BASE_TS_SIMPLIFY_H
GfMultiInterval represents a subset of the real number line as an ordered set of non-intersecting GfI...
Definition: multiInterval.h:30
Represents a spline value object.
Definition: spline.h:51