24 #ifndef PXR_IMAGING_GEOM_UTIL_CAPSULE_MESH_GENERATOR_H
25 #define PXR_IMAGING_GEOM_UTIL_CAPSULE_MESH_GENERATOR_H
78 const size_t numRadial,
79 const size_t numCapAxial,
80 const bool closedSweep =
true);
84 const size_t numRadial,
85 const size_t numCapAxial,
86 const bool closedSweep =
true);
88 template<
typename PointIterType,
94 const size_t numRadial,
95 const size_t numCapAxial,
96 const ScalarType radius,
100 constexpr ScalarType sweep = 360;
105 height, sweep, framePtr);
108 template<
typename PointIterType,
114 const size_t numRadial,
115 const size_t numCapAxial,
116 const ScalarType bottomRadius,
117 const ScalarType topRadius,
119 const ScalarType sweepDegrees,
125 _GeneratePointsImpl(numRadial, numCapAxial, bottomRadius, topRadius,
126 height, sweepDegrees,
134 template<
typename Po
intType>
135 static void _GeneratePointsImpl(
136 const size_t numRadial,
137 const size_t numCapAxial,
138 const typename PointType::ScalarType bottomRadius,
139 const typename PointType::ScalarType topRadius,
140 const typename PointType::ScalarType
height,
141 const typename PointType::ScalarType sweep,
142 const _PointWriter<PointType>& ptWriter);
147 #endif // PXR_IMAGING_GEOM_UTIL_CAPSULE_MESH_GENERATOR_H
static GEOMUTIL_API size_t ComputeNumPoints(const size_t numRadial, const size_t numCapAxial, const bool closedSweep=true)
static void GeneratePoints(PointIterType iter, const size_t numRadial, const size_t numCapAxial, const ScalarType radius, const ScalarType height, const GfMatrix4d *framePtr=nullptr)
static void GeneratePoints(PointIterType iter, const size_t numRadial, const size_t numCapAxial, const ScalarType bottomRadius, const ScalarType topRadius, const ScalarType height, const ScalarType sweepDegrees, const GfMatrix4d *framePtr=nullptr)
static GEOMUTIL_API PxOsdMeshTopology GenerateTopology(const size_t numRadial, const size_t numCapAxial, const bool closedSweep=true)
GLint GLsizei GLsizei height
static constexpr size_t minNumCapAxial
static constexpr size_t minNumRadial
static void GeneratePoints(PointIterType iter,...)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE