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;
111 template<
typename PointIterType,
117 const size_t numRadial,
118 const size_t numCapAxial,
119 const ScalarType bottomRadius,
120 const ScalarType topRadius,
122 const ScalarType bottomCapHeight,
123 const ScalarType topCapHeight,
124 const ScalarType sweepDegrees,
130 _GeneratePointsImpl(numRadial, numCapAxial, bottomRadius, topRadius,
131 height, bottomCapHeight, topCapHeight, sweepDegrees,
139 template<
typename Po
intType>
140 static void _GeneratePointsImpl(
141 const size_t numRadial,
142 const size_t numCapAxial,
143 const typename PointType::ScalarType bottomRadius,
144 const typename PointType::ScalarType topRadius,
145 const typename PointType::ScalarType
height,
146 const typename PointType::ScalarType bottomCapHeight,
147 const typename PointType::ScalarType topCapHeight,
148 const typename PointType::ScalarType sweep,
149 const _PointWriter<PointType>& ptWriter);
154 #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 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 void GeneratePoints(PointIterType iter, const size_t numRadial, const size_t numCapAxial, const ScalarType bottomRadius, const ScalarType topRadius, const ScalarType height, const ScalarType bottomCapHeight, const ScalarType topCapHeight, const ScalarType sweepDegrees, const GfMatrix4d *framePtr=nullptr)
static constexpr size_t minNumRadial
static void GeneratePoints(PointIterType iter,...)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE