7 #ifndef PXR_IMAGING_GEOM_UTIL_DISK_MESH_GENERATOR_H
8 #define PXR_IMAGING_GEOM_UTIL_DISK_MESH_GENERATOR_H
59 const size_t numRadial,
60 const bool closedSweep =
true);
71 return GeomUtilInterpolationTokens->constant;
76 const size_t numRadial,
77 const bool closedSweep =
true);
79 template<
typename PointIterType,
85 const size_t numRadial,
86 const ScalarType radius,
89 constexpr ScalarType sweep = 360;
92 radius, sweep, framePtr);
95 template<
typename PointIterType,
101 const size_t numRadial,
102 const ScalarType radius,
103 const ScalarType sweepDegrees,
109 _GeneratePointsImpl(numRadial, radius, sweepDegrees,
116 template<
typename PointIterType,
126 _GenerateNormalsImpl(
135 template<
typename Po
intType>
136 static void _GeneratePointsImpl(
137 const size_t numRadial,
138 const typename PointType::ScalarType radius,
139 const typename PointType::ScalarType sweepDegrees,
140 const _PointWriter<PointType>& ptWriter);
142 template<
typename Po
intType>
143 static void _GenerateNormalsImpl(
144 const _PointWriter<PointType>& ptWriter);
149 #endif // PXR_IMAGING_GEOM_UTIL_DISK_MESH_GENERATOR_H
static GEOMUTIL_API PxOsdMeshTopology GenerateTopology(const size_t numRadial, const bool closedSweep=true)
static constexpr size_t minNumRadial
static GEOMUTIL_API size_t ComputeNumPoints(const size_t numRadial, const bool closedSweep=true)
static void GenerateNormals(PointIterType iter, const GfMatrix4d *framePtr=nullptr)
static void GeneratePoints(PointIterType iter,...)
static void GeneratePoints(PointIterType iter, const size_t numRadial, const ScalarType radius, const ScalarType sweepDegrees, const GfMatrix4d *framePtr=nullptr)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static void GeneratePoints(PointIterType iter, const size_t numRadial, const ScalarType radius, const GfMatrix4d *framePtr=nullptr)
#define PXR_NAMESPACE_CLOSE_SCOPE
static size_t ComputeNumNormals()
static TfToken GetNormalsInterpolation()
static void GenerateNormals(PointIterType iter,...)