|
static GEOMUTIL_API size_t | ComputeNumPoints () |
|
static size_t | ComputeNumNormals () |
|
static TfToken | GetNormalsInterpolation () |
|
static GEOMUTIL_API
PxOsdMeshTopology | GenerateTopology () |
|
template<typename PointIterType , typename ScalarType , typename Enabled = typename _EnableIfGfVec3Iterator<PointIterType>::type> |
static void | GeneratePoints (PointIterType iter, const ScalarType xLength, const ScalarType yLength, const ScalarType zLength, const GfMatrix4d *framePtr=nullptr) |
|
template<typename PointIterType , typename Enabled = typename _EnableIfGfVec3Iterator<PointIterType>::type> |
static void | GenerateNormals (PointIterType iter, const GfMatrix4d *framePtr=nullptr) |
|
template<typename PointIterType , typename Enabled = typename _EnableIfNotGfVec3Iterator<PointIterType>::type> |
static void | GeneratePoints (PointIterType iter,...) |
|
template<typename PointIterType , typename Enabled = typename _EnableIfNotGfVec3Iterator<PointIterType>::type> |
static void | GenerateNormals (PointIterType iter,...) |
|
|
enum | _CapStyle { CapStyleNone,
CapStyleSharedEdge,
CapStyleSeparateEdge
} |
|
static PxOsdMeshTopology | _GenerateCappedQuadTopology (const size_t numRadial, const size_t numQuadStrips, const _CapStyle bottomCapStyle, const _CapStyle topCapStyle, const bool closedSweep) |
|
static size_t | _ComputeNumRadialPoints (const size_t numRadial, const bool closedSweep) |
|
static size_t | _ComputeNumCappedQuadTopologyPoints (const size_t numRadial, const size_t numQuadStrips, const _CapStyle bottomCapStyle, const _CapStyle topCapStyle, const bool closedSweep) |
|
template<typename ScalarType > |
static std::vector< std::array
< ScalarType, 2 > > | _GenerateUnitArcXY (const size_t numRadial, const ScalarType sweepDegrees) |
|
This class provides an implementation for generating topology, point positions and surface normals on a rectangular cuboid given the dimensions along the X, Y and Z axes. The generated cuboid is centered at the origin.
An optional transform may be provided to GeneratePoints and GenerateNormals to orient the cuboid as necessary.
Usage:
const size_t numPoints =
const float l = 5, b = 4,
h = 3;
MyPointContainer<GfVec3f>
points(numPoints);
points.begin(), l,
b,
h);
const size_t numNormals =
MyPointContainer<GfVec3f> normals(numNormals);
normals.begin());
Definition at line 50 of file cuboidMeshGenerator.h.