24 #ifndef PXR_IMAGING_GEOM_UTIL_SPHERE_MESH_GENERATOR_H
25 #define PXR_IMAGING_GEOM_UTIL_SPHERE_MESH_GENERATOR_H
75 const size_t numRadial,
76 const size_t numAxial,
77 const bool closedSweep =
true);
81 const size_t numRadial,
82 const size_t numAxial,
83 const bool closedSweep =
true);
85 template<
typename PointIterType,
91 const size_t numRadial,
92 const size_t numAxial,
93 const ScalarType radius,
96 constexpr ScalarType sweep = 360;
97 GeneratePoints(iter, numRadial, numAxial, radius, sweep, framePtr);
100 template<
typename PointIterType,
106 const size_t numRadial,
107 const size_t numAxial,
108 const ScalarType radius,
109 const ScalarType sweepDegrees,
115 _GeneratePointsImpl(numRadial, numAxial, radius, sweepDegrees,
124 template<
typename Po
intType>
125 static void _GeneratePointsImpl(
126 const size_t numRadial,
127 const size_t numAxial,
128 const typename PointType::ScalarType radius,
129 const typename PointType::ScalarType sweepDegrees,
130 const _PointWriter<PointType>& ptWriter);
135 #endif // PXR_IMAGING_GEOM_UTIL_SPHERE_MESH_GENERATOR_H
static GEOMUTIL_API PxOsdMeshTopology GenerateTopology(const size_t numRadial, const size_t numAxial, const bool closedSweep=true)
static void GeneratePoints(PointIterType iter, const size_t numRadial, const size_t numAxial, const ScalarType radius, const GfMatrix4d *framePtr=nullptr)
static constexpr size_t minNumRadial
static GEOMUTIL_API size_t ComputeNumPoints(const size_t numRadial, const size_t numAxial, const bool closedSweep=true)
static constexpr size_t minNumAxial
static void GeneratePoints(PointIterType iter,...)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static void GeneratePoints(PointIterType iter, const size_t numRadial, const size_t numAxial, const ScalarType radius, const ScalarType sweepDegrees, const GfMatrix4d *framePtr=nullptr)
#define PXR_NAMESPACE_CLOSE_SCOPE