24#ifndef PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
25#define PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
27#include "pxr/imaging/geomUtil/api.h"
28#include "pxr/imaging/geomUtil/meshGeneratorBase.h"
32PXR_NAMESPACE_OPEN_SCOPE
69 static constexpr size_t minNumRadial = 3;
72 static size_t ComputeNumPoints(
73 const size_t numRadial,
74 const bool closedSweep =
true);
78 const size_t numRadial,
79 const bool closedSweep =
true);
81 template<
typename PointIterType,
84 typename _EnableIfGfVec3Iterator<PointIterType>::type>
85 static void GeneratePoints(
87 const size_t numRadial,
88 const ScalarType radius,
89 const ScalarType height,
92 constexpr ScalarType sweep = 360;
93 GeneratePoints(iter, numRadial, radius, height, sweep, framePtr);
96 template<
typename PointIterType,
99 typename _EnableIfGfVec3Iterator<PointIterType>::type>
100 static void GeneratePoints(
102 const size_t numRadial,
103 const ScalarType radius,
104 const ScalarType height,
105 const ScalarType sweepDegrees,
109 typename std::iterator_traits<PointIterType>::value_type;
111 _GeneratePointsImpl(numRadial, radius, height, sweepDegrees,
112 framePtr ? _PointWriter<PointType>(iter, framePtr)
113 : _PointWriter<PointType>(iter));
116 using GeomUtilMeshGeneratorBase::GeneratePoints;
120 template<
typename Po
intType>
121 static void _GeneratePointsImpl(
122 const size_t numRadial,
123 const typename PointType::ScalarType radius,
124 const typename PointType::ScalarType height,
125 const typename PointType::ScalarType sweepDegrees,
126 const _PointWriter<PointType>& ptWriter);
129PXR_NAMESPACE_CLOSE_SCOPE
This class provides an implementation for generating topology and point positions on a cone of a give...
This class provides common implementation for the different mesh generator classes in GeomUtil.
Stores a 4x4 matrix of double elements.
Topology data for meshes.