Loading...
Searching...
No Matches
UsdGeomHermiteCurves::PointAndTangentArrays Class Reference

Represents points and tangents of the same size. More...

#include <hermiteCurves.h>

Public Member Functions

 PointAndTangentArrays ()=default
 Construct empty points and tangents arrays.
 
 PointAndTangentArrays (const PointAndTangentArrays &)=default
 
 PointAndTangentArrays (PointAndTangentArrays &&)=default
 
PointAndTangentArraysoperator= (const PointAndTangentArrays &)=default
 
PointAndTangentArraysoperator= (PointAndTangentArrays &&)=default
 
 PointAndTangentArrays (const VtVec3fArray &points, const VtVec3fArray &tangents)
 Initializes points and tangents if they are the same size.
 
USDGEOM_API VtVec3fArray Interleave () const
 Interleaves points (P0, ..., Pn) and tangents (T0, ..., Tn) into one array (P0, T0, ..., Pn, Tn).
 
bool IsEmpty () const
 Returns true if the containers are empty.
 
 operator bool () const
 Returns true if there are values.
 
const VtVec3fArray & GetPoints () const
 Get separated points array.
 
const VtVec3fArray & GetTangents () const
 Get separated tangents array.
 
bool operator== (const PointAndTangentArrays &other)
 
bool operator!= (const PointAndTangentArrays &other)
 

Static Public Member Functions

static USDGEOM_API PointAndTangentArrays Separate (const VtVec3fArray &interleaved)
 Given an interleaved points and tangents arrays (P0, T0, ..., Pn, Tn), separates them into two arrays (P0, ..., PN) and (T0, ..., Tn).
 

Detailed Description

Represents points and tangents of the same size.

Utility to interleave point and tangent data. This class is immutable.

Definition at line 201 of file hermiteCurves.h.

Constructor & Destructor Documentation

◆ PointAndTangentArrays() [1/2]

PointAndTangentArrays ( )
default

Construct empty points and tangents arrays.

◆ PointAndTangentArrays() [2/2]

PointAndTangentArrays ( const VtVec3fArray &  points,
const VtVec3fArray &  tangents 
)
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 221 of file hermiteCurves.h.

Member Function Documentation

◆ GetPoints()

const VtVec3fArray & GetPoints ( ) const
inline

Get separated points array.

Definition at line 252 of file hermiteCurves.h.

◆ GetTangents()

const VtVec3fArray & GetTangents ( ) const
inline

Get separated tangents array.

Definition at line 255 of file hermiteCurves.h.

◆ Interleave()

USDGEOM_API VtVec3fArray Interleave ( ) const

Interleaves points (P0, ..., Pn) and tangents (T0, ..., Tn) into one array (P0, T0, ..., Pn, Tn).

◆ IsEmpty()

bool IsEmpty ( ) const
inline

Returns true if the containers are empty.

Definition at line 242 of file hermiteCurves.h.

◆ operator bool()

operator bool ( ) const
inlineexplicit

Returns true if there are values.

Definition at line 249 of file hermiteCurves.h.

◆ operator!=()

bool operator!= ( const PointAndTangentArrays other)
inline

Definition at line 261 of file hermiteCurves.h.

◆ operator==()

bool operator== ( const PointAndTangentArrays other)
inline

Definition at line 257 of file hermiteCurves.h.

◆ Separate()

static USDGEOM_API PointAndTangentArrays Separate ( const VtVec3fArray &  interleaved)
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 233 of file hermiteCurves.h.


The documentation for this class was generated from the following file: