7#ifndef PXR_IMAGING_GEOM_UTIL_CUBOID_MESH_GENERATOR_H
8#define PXR_IMAGING_GEOM_UTIL_CUBOID_MESH_GENERATOR_H
10#include "pxr/imaging/geomUtil/api.h"
11#include "pxr/imaging/geomUtil/meshGeneratorBase.h"
15PXR_NAMESPACE_OPEN_SCOPE
46 static size_t ComputeNumPoints();
51 template<
typename PointIterType,
54 typename _EnableIfGfVec3Iterator<PointIterType>::type>
55 static void GeneratePoints(
57 const ScalarType xLength,
58 const ScalarType yLength,
59 const ScalarType zLength,
63 typename std::iterator_traits<PointIterType>::value_type;
65 _GeneratePointsImpl(xLength, yLength, zLength,
66 framePtr ? _PointWriter<PointType>(iter, framePtr)
67 : _PointWriter<PointType>(iter));
70 using GeomUtilMeshGeneratorBase::GeneratePoints;
74 template<
typename Po
intType>
75 static void _GeneratePointsImpl(
76 const typename PointType::ScalarType xLength,
77 const typename PointType::ScalarType yLength,
78 const typename PointType::ScalarType zLength,
79 const _PointWriter<PointType>& ptWriter);
82PXR_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.