24#ifndef PXR_IMAGING_GEOM_UTIL_CUBOID_MESH_GENERATOR_H
25#define PXR_IMAGING_GEOM_UTIL_CUBOID_MESH_GENERATOR_H
27#include "pxr/imaging/geomUtil/api.h"
28#include "pxr/imaging/geomUtil/meshGeneratorBase.h"
32PXR_NAMESPACE_OPEN_SCOPE
63 static size_t ComputeNumPoints();
68 template<
typename PointIterType,
71 typename _EnableIfGfVec3Iterator<PointIterType>::type>
72 static void GeneratePoints(
74 const ScalarType xLength,
75 const ScalarType yLength,
76 const ScalarType zLength,
80 typename std::iterator_traits<PointIterType>::value_type;
82 _GeneratePointsImpl(xLength, yLength, zLength,
83 framePtr ? _PointWriter<PointType>(iter, framePtr)
84 : _PointWriter<PointType>(iter));
87 using GeomUtilMeshGeneratorBase::GeneratePoints;
91 template<
typename Po
intType>
92 static void _GeneratePointsImpl(
93 const typename PointType::ScalarType xLength,
94 const typename PointType::ScalarType yLength,
95 const typename PointType::ScalarType zLength,
96 const _PointWriter<PointType>& ptWriter);
99PXR_NAMESPACE_CLOSE_SCOPE
This class provides an implementation for generating topology and point positions on a rectangular cu...
This class provides common implementation for the different mesh generator classes in GeomUtil.
Stores a 4x4 matrix of double elements.
Topology data for meshes.