7#ifndef PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
8#define PXR_IMAGING_GEOM_UTIL_CONE_MESH_GENERATOR_H
10#include "pxr/imaging/geomUtil/api.h"
11#include "pxr/imaging/geomUtil/meshGeneratorBase.h"
15PXR_NAMESPACE_OPEN_SCOPE
52 static constexpr size_t minNumRadial = 3;
55 static size_t ComputeNumPoints(
56 const size_t numRadial,
57 const bool closedSweep =
true);
61 const size_t numRadial,
62 const bool closedSweep =
true);
64 template<
typename PointIterType,
67 typename _EnableIfGfVec3Iterator<PointIterType>::type>
68 static void GeneratePoints(
70 const size_t numRadial,
71 const ScalarType radius,
72 const ScalarType height,
75 constexpr ScalarType sweep = 360;
76 GeneratePoints(iter, numRadial, radius, height, sweep, framePtr);
79 template<
typename PointIterType,
82 typename _EnableIfGfVec3Iterator<PointIterType>::type>
83 static void GeneratePoints(
85 const size_t numRadial,
86 const ScalarType radius,
87 const ScalarType height,
88 const ScalarType sweepDegrees,
92 typename std::iterator_traits<PointIterType>::value_type;
94 _GeneratePointsImpl(numRadial, radius, height, sweepDegrees,
95 framePtr ? _PointWriter<PointType>(iter, framePtr)
96 : _PointWriter<PointType>(iter));
99 using GeomUtilMeshGeneratorBase::GeneratePoints;
103 template<
typename Po
intType>
104 static void _GeneratePointsImpl(
105 const size_t numRadial,
106 const typename PointType::ScalarType radius,
107 const typename PointType::ScalarType height,
108 const typename PointType::ScalarType sweepDegrees,
109 const _PointWriter<PointType>& ptWriter);
112PXR_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.