14#include "trax/TrackPainter.h"
16#include "SupportUSD_Spat.h"
19# pragma warning( push )
20# pragma warning( disable: 4275 )
22#include <pxr/base/vt/array.h>
24# pragma warning( pop )
31 BufferedUSDTrackPainter( pxr::VtArray<pxr::GfVec3f>& points,
32 pxr::VtArray<int>& indices,
33 pxr::VtArray<int>& faceVertexCounts,
34 Real usdStageMetersPerUnit,
35 int mode = TrackPainter::Mode::mode_default,
37 Length e = trax::epsilon__length );
42 void AddTriangle(
unsigned int i0,
unsigned int i1,
unsigned int i2 )
override;
44 pxr::VtArray<pxr::GfVec3f>& m_Points;
46 pxr::VtArray<int>& m_Indices;
48 pxr::VtArray<int>& m_FaceVertexCounts;
49 Real m_UsdStageMetersPerUnit;
void StartPaint(const spat::Frame< Length, One > &rFrame, Length offset, const trax::Section §ion) override
Gets called once on rendering startup before all PaintSegment() calls.
Paints a track by taking a cross section as a profile.
Definition TrackPainter.h:132
Value< Dimension< 1, 0, 0 > > Length
Length.
Definition DimensionedValues.h:324
float Real
Underlying floating point type to be used with the dim library.
Definition DimensionedValues.h:190
Namespace of all the trax track libraries classes and methods.
Definition Collection.h:17
An interval describes the area between two numbers. It is understood to contain the near one and exlu...
Definition Interval.h:42
A Frame ("TNBFrame") describes a location in 3d space and an orientation using a right handed coordin...
Definition Frame.h:52
Implements a 2D - position in cartesian coordinates.
Definition Position2D.h:45
Point structure used to describe a section.
Definition Section.h:82
A profile of a track.
Definition Section.h:45