SimpleNGL 1.0
Public Member Functions
SurfaceSphericalDeformer Class Reference

A class for deforming a mesh based on a radial basis. More...

#include <SurfaceSphericalDeformer.h>

List of all members.

Public Member Functions

 SurfaceSphericalDeformer ()
 default ctor
 SurfaceSphericalDeformer (const Imath::V3f &_centre, const float &_radius)
 arg ctor for centre and radius
 ~SurfaceSphericalDeformer ()
 empty dtor
Imath::V3f & pos ()
 access the pos of deformer by reference for ease of setting AND getting
float & rad ()
 access the radius of deformer by reference for ease of setting AND getting
void serial_deform (Imath::V3f *i_points, Imath::V3f *o_points, int count)
 radial deform serial implementation
void ispc_deform (Imath::V3f *i_points, Imath::V3f *o_points, int count)
 radial deform ISPC implementation

Detailed Description

A class for deforming a mesh based on a radial basis.


Constructor & Destructor Documentation

SurfaceSphericalDeformer::SurfaceSphericalDeformer ( )

default ctor

SurfaceSphericalDeformer::SurfaceSphericalDeformer ( const Imath::V3f &  _centre,
const float &  _radius 
)

arg ctor for centre and radius

Parameters:
[in]_centrethe radial origin
[in]_radiusthe radius of the deformer
SurfaceSphericalDeformer::~SurfaceSphericalDeformer ( ) [inline]

empty dtor


Member Function Documentation

void SurfaceSphericalDeformer::ispc_deform ( Imath::V3f *  i_points,
Imath::V3f *  o_points,
int  count 
)

radial deform ISPC implementation

Parameters:
[in]i_pointsthe original point to deform
[out]o_pointsthe store for deformed points
[in]thecount of points
Imath::V3f& SurfaceSphericalDeformer::pos ( ) [inline]

access the pos of deformer by reference for ease of setting AND getting

float& SurfaceSphericalDeformer::rad ( ) [inline]

access the radius of deformer by reference for ease of setting AND getting

void SurfaceSphericalDeformer::serial_deform ( Imath::V3f *  i_points,
Imath::V3f *  o_points,
int  count 
)

radial deform serial implementation

Parameters:
[in]i_pointsthe original point to deform
[out]o_pointsthe store for deformed points
[in]thecount of points

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines