HDK
|
#include <hermiteCurves.h>
Public Member Functions | |
PointAndTangentArrays ()=default | |
Construct empty points and tangents arrays. More... | |
PointAndTangentArrays (const PointAndTangentArrays &)=default | |
PointAndTangentArrays (PointAndTangentArrays &&)=default | |
PointAndTangentArrays & | operator= (const PointAndTangentArrays &)=default |
PointAndTangentArrays & | operator= (PointAndTangentArrays &&)=default |
PointAndTangentArrays (const VtVec3fArray &points, const VtVec3fArray &tangents) | |
USDGEOM_API VtVec3fArray | Interleave () const |
bool | IsEmpty () const |
Returns true if the containers are empty. More... | |
operator bool () const | |
Returns true if there are values. More... | |
const VtVec3fArray & | GetPoints () const |
Get separated points array. More... | |
const VtVec3fArray & | GetTangents () const |
Get separated tangents array. More... | |
bool | operator== (const PointAndTangentArrays &other) |
bool | operator!= (const PointAndTangentArrays &other) |
Static Public Member Functions | |
static USDGEOM_API PointAndTangentArrays | Separate (const VtVec3fArray &interleaved) |
Represents points and tangents of the same size.
Utility to interleave point and tangent data. This class is immutable.
Definition at line 218 of file hermiteCurves.h.
|
default |
Construct empty points and tangents arrays.
|
default |
|
default |
|
inline |
Initializes points
and tangents
if they are the same size.
If points and tangents are not the same size, an empty container is created.
Definition at line 238 of file hermiteCurves.h.
|
inline |
Get separated points array.
Definition at line 269 of file hermiteCurves.h.
|
inline |
Get separated tangents array.
Definition at line 272 of file hermiteCurves.h.
USDGEOM_API VtVec3fArray UsdGeomHermiteCurves::PointAndTangentArrays::Interleave | ( | ) | const |
Interleaves points (P0, ..., Pn) and tangents (T0, ..., Tn) into one array (P0, T0, ..., Pn, Tn).
|
inline |
Returns true if the containers are empty.
Definition at line 259 of file hermiteCurves.h.
|
inlineexplicit |
Returns true if there are values.
Definition at line 266 of file hermiteCurves.h.
|
inline |
Definition at line 278 of file hermiteCurves.h.
|
default |
|
default |
|
inline |
Definition at line 274 of file hermiteCurves.h.
|
inlinestatic |
Given an interleaved
points and tangents arrays (P0, T0, ..., Pn, Tn), separates them into two arrays (P0, ..., PN) and (T0, ..., Tn).
Definition at line 250 of file hermiteCurves.h.