HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeomUtilCuboidMeshGenerator Class Referencefinal

#include <cuboidMeshGenerator.h>

+ Inheritance diagram for GeomUtilCuboidMeshGenerator:

Static Public Member Functions

static GEOMUTIL_API size_t ComputeNumPoints ()
 
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)
 
- Static Public Member Functions inherited from GeomUtilMeshGeneratorBase
template<typename PointIterType , typename Enabled = typename _EnableIfNotGfVec3Iterator<PointIterType>::type>
static void GeneratePoints (PointIterType iter,...)
 

Additional Inherited Members

- Protected Types inherited from GeomUtilMeshGeneratorBase
enum  _CapStyle { CapStyleNone, CapStyleSharedEdge, CapStyleSeparateEdge }
 
- Static Protected Member Functions inherited from GeomUtilMeshGeneratorBase
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)
 

Detailed Description

This class provides an implementation for generating topology and point positions 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 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);

Definition at line 58 of file cuboidMeshGenerator.h.

Member Function Documentation

static GEOMUTIL_API size_t GeomUtilCuboidMeshGenerator::ComputeNumPoints ( )
static
template<typename PointIterType , typename ScalarType , typename Enabled = typename _EnableIfGfVec3Iterator<PointIterType>::type>
static void GeomUtilCuboidMeshGenerator::GeneratePoints ( PointIterType  iter,
const ScalarType  xLength,
const ScalarType  yLength,
const ScalarType  zLength,
const GfMatrix4d framePtr = nullptr 
)
inlinestatic

Definition at line 72 of file cuboidMeshGenerator.h.

static GEOMUTIL_API PxOsdMeshTopology GeomUtilCuboidMeshGenerator::GenerateTopology ( )
static

The documentation for this class was generated from the following file: