cee::ug::ParticleTraceUtils Class Reference

Utilities for particle traces. More...

Static Public Member Functions

static std::vector< Vec3dcomputeGridPoints (const Vec3d &center, const Vec3d &normal, unsigned int numU, unsigned int numV, double groupSpacing)
 Computes a grid of points based on the given point and normal and returns the array of points. More...
 

Detailed Description

Utilities for particle traces.

Member Function Documentation

std::vector< Vec3d > cee::ug::ParticleTraceUtils::computeGridPoints ( const Vec3d center,
const Vec3d normal,
unsigned int  numU,
unsigned int  numV,
double  groupSpacing 
)
static

Computes a grid of points based on the given point and normal and returns the array of points.

Useful for generating particle trace seed points. All grid points will be in the plane specified by the given center and normal, centered around the center.

Parameters
centerThe center of the grid of generated points
normalThe normal of the surface which the grid points will be on.
numUNumber of grid point in the U direction.
numVNumber of grid points in the V direction.
groupSpacingThe distance between each point in the grid.
Returns
An array of Vec3 points forming a grid as specified. The grid will contain numU*numV points.