cgma
|
Transforms between a surface's uv parameter and xyz space. More...
#include <SurfParamTool.hpp>
Public Member Functions | |
SurfParamTool (Surface *surf) | |
~SurfParamTool () | |
CubitStatus | set_up_space (void) |
CubitStatus | transform_to_uv (const CubitVector &xyz_location, CubitVector &uv_location) |
CubitStatus | transform_to_xyz (CubitVector &xyz_location, const CubitVector &uv_location) |
CubitStatus | uv_derivitives (double u_param, double v_param, CubitVector &du, CubitVector &dv) |
Static Public Member Functions | |
static CubitStatus | circumcenter (double u0, double v0, double u1, double v1, double u2, double v2, CubitVector ¢er) |
Private Attributes | |
Surface * | refSurf |
Transforms between a surface's uv parameter and xyz space.
Definition at line 28 of file SurfParamTool.hpp.
SurfParamTool::SurfParamTool | ( | Surface * | surf | ) |
Definition at line 28 of file SurfParamTool.cpp.
{ //- update private variables refSurf = surf; }
Definition at line 42 of file SurfParamTool.cpp.
{}
static CubitStatus SurfParamTool::circumcenter | ( | double | u0, |
double | v0, | ||
double | u1, | ||
double | v1, | ||
double | u2, | ||
double | v2, | ||
CubitVector & | center | ||
) | [static] |
CubitStatus SurfParamTool::set_up_space | ( | void | ) |
Definition at line 50 of file SurfParamTool.cpp.
{ CubitStatus rv = CUBIT_SUCCESS; return rv; }
CubitStatus SurfParamTool::transform_to_uv | ( | const CubitVector & | xyz_location, |
CubitVector & | uv_location | ||
) | [virtual] |
Implements ParamTool.
Definition at line 64 of file SurfParamTool.cpp.
{ double u,v; CubitStatus rv = refSurf->u_v_from_position(xyz_location, u, v); uv_location.set(u,v,1.0); CubitVector du, dv; uv_derivitives(u,v,du,dv); return rv; }
CubitStatus SurfParamTool::transform_to_xyz | ( | CubitVector & | xyz_location, |
const CubitVector & | uv_location | ||
) | [virtual] |
Implements ParamTool.
Definition at line 83 of file SurfParamTool.cpp.
{ xyz_location = refSurf->position_from_u_v(uv_location.x(), uv_location.y()); return CUBIT_SUCCESS; }
CubitStatus SurfParamTool::uv_derivitives | ( | double | u_param, |
double | v_param, | ||
CubitVector & | du, | ||
CubitVector & | dv | ||
) | [virtual] |
Reimplemented from ParamTool.
Definition at line 90 of file SurfParamTool.cpp.
{ return refSurf->uv_derivitives (u_param, v_param, du, dv); }
Surface* SurfParamTool::refSurf [private] |
Definition at line 54 of file SurfParamTool.hpp.