Loading...
Searching...
No Matches
GeomUtilCuboidMeshGenerator Class Referencefinal

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. More...

#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)
 
template<typename PointIterType , typename Enabled = typename _EnableIfNotGfVec3Iterator<PointIterType>::type>
static void GeneratePoints (PointIterType iter,...)
 
- 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 =
GeomUtilCuboidMeshGenerator::ComputeNumPoints();
const float l = 5, b = 4, h = 3;
MyPointContainer<GfVec3f> points(numPoints);
GeomUtilCuboidMeshGenerator::GeneratePoints(
points.begin(), l, b, h);

Definition at line 58 of file cuboidMeshGenerator.h.

Member Function Documentation

◆ GeneratePoints() [1/2]

static void 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.

◆ GeneratePoints() [2/2]

static void GeneratePoints ( PointIterType  iter,
  ... 
)
inlinestatic

Definition at line 234 of file meshGeneratorBase.h.


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