7 #ifndef PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
8 #define PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
67 const size_t numRadial,
68 const bool closedSweep =
true);
71 const size_t numRadial,
72 const bool closedSweep =
true)
81 return GeomUtilInterpolationTokens->vertex;
86 const size_t numRadial,
87 const bool closedSweep =
true);
89 template<
typename PointIterType,
95 const size_t numRadial,
96 const ScalarType radius,
100 constexpr ScalarType sweep = 360;
104 template<
typename PointIterType,
110 const size_t numRadial,
111 const ScalarType radius,
113 const ScalarType sweepDegrees,
119 _GeneratePointsImpl(numRadial, radius, height, sweepDegrees,
126 template<
typename PointIterType,
132 const size_t numRadial,
133 const ScalarType radius,
137 constexpr ScalarType sweep = 360;
141 template<
typename PointIterType,
147 const size_t numRadial,
148 const ScalarType radius,
150 const ScalarType sweepDegrees,
156 _GenerateNormalsImpl(numRadial, radius, height, sweepDegrees,
165 template<
typename Po
intType>
166 static void _GeneratePointsImpl(
167 const size_t numRadial,
168 const typename PointType::ScalarType radius,
169 const typename PointType::ScalarType
height,
170 const typename PointType::ScalarType sweepDegrees,
171 const _PointWriter<PointType>& ptWriter);
173 template<
typename Po
intType>
174 static void _GenerateNormalsImpl(
175 const size_t numRadial,
176 const typename PointType::ScalarType radius,
177 const typename PointType::ScalarType
height,
178 const typename PointType::ScalarType sweepDegrees,
179 const _PointWriter<PointType>& ptWriter);
184 #endif // PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
static void GenerateNormals(PointIterType iter, const size_t numRadial, const ScalarType radius, const ScalarType height, const GfMatrix4d *framePtr=nullptr)
static void GeneratePoints(PointIterType iter, const size_t numRadial, const ScalarType radius, const ScalarType height, const ScalarType sweepDegrees, const GfMatrix4d *framePtr=nullptr)
static TfToken GetNormalsInterpolation()
static constexpr size_t minNumRadial
GLint GLsizei GLsizei height
static void GenerateNormals(PointIterType iter, const size_t numRadial, const ScalarType radius, const ScalarType height, const ScalarType sweepDegrees, const GfMatrix4d *framePtr=nullptr)
static void GeneratePoints(PointIterType iter, const size_t numRadial, const ScalarType radius, const ScalarType height, const GfMatrix4d *framePtr=nullptr)
static void GeneratePoints(PointIterType iter,...)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
static GEOMUTIL_API size_t ComputeNumPoints(const size_t numRadial, const bool closedSweep=true)
#define PXR_NAMESPACE_CLOSE_SCOPE
static GEOMUTIL_API PxOsdMeshTopology GenerateTopology(const size_t numRadial, const bool closedSweep=true)
static size_t ComputeNumNormals(const size_t numRadial, const bool closedSweep=true)
static void GenerateNormals(PointIterType iter,...)