cgma
|
#include <PlanarParamTool.hpp>
Public Member Functions | |
PlanarParamTool () | |
~PlanarParamTool () | |
CubitStatus | set_up_space (CubitVector &du, CubitVector &dv, CubitVector &uv_center) |
CubitStatus | transform_to_uv (const CubitVector &xyz_location, CubitVector &uv_location) |
CubitStatus | transform_to_xyz (CubitVector &xyz_location, const CubitVector &uv_location) |
virtual CubitStatus | uv_derivitives (double u_param, double v_param, CubitVector &du, CubitVector &dv) |
Private Attributes | |
CubitVector | Du |
CubitVector | Dv |
CubitVector | uvCenter |
Definition at line 20 of file PlanarParamTool.hpp.
Definition at line 25 of file PlanarParamTool.cpp.
{ }
Definition at line 35 of file PlanarParamTool.cpp.
{}
CubitStatus PlanarParamTool::set_up_space | ( | CubitVector & | du, |
CubitVector & | dv, | ||
CubitVector & | uv_center | ||
) |
Definition at line 43 of file PlanarParamTool.cpp.
{ Du = du; Dv = dv; uvCenter = uv_center; return CUBIT_SUCCESS; }
CubitStatus PlanarParamTool::transform_to_uv | ( | const CubitVector & | xyz_location, |
CubitVector & | uv_location | ||
) | [virtual] |
Implements ParamTool.
Definition at line 58 of file PlanarParamTool.cpp.
{ // Translate to local origin at center CubitVector vect = xyz_location - uvCenter; // Multiply by transpose (inverse) of transformation vector uv_location.x( vect % Du ); uv_location.y( vect % Dv ); uv_location.z( 0.0 ); return CUBIT_SUCCESS; }
CubitStatus PlanarParamTool::transform_to_xyz | ( | CubitVector & | xyz_location, |
const CubitVector & | uv_location | ||
) | [virtual] |
Implements ParamTool.
Definition at line 79 of file PlanarParamTool.cpp.
{ // Multiply by transformation matrix CubitVector vect; vect.x( uv_location.x() * Du.x() + uv_location.y() * Dv.x() ); vect.y( uv_location.x() * Du.y() + uv_location.y() * Dv.y() ); vect.z( uv_location.x() * Du.z() + uv_location.y() * Dv.z() ); // Translate from origin xyz_location = vect + uvCenter; return CUBIT_SUCCESS; }
CubitStatus PlanarParamTool::uv_derivitives | ( | double | u_param, |
double | v_param, | ||
CubitVector & | du, | ||
CubitVector & | dv | ||
) | [virtual] |
Reimplemented from ParamTool.
Definition at line 98 of file PlanarParamTool.cpp.
{ (void)u_param; (void)v_param; du = Du; dv = Dv; return CUBIT_SUCCESS; }
CubitVector PlanarParamTool::Du [private] |
Definition at line 41 of file PlanarParamTool.hpp.
CubitVector PlanarParamTool::Dv [private] |
Definition at line 42 of file PlanarParamTool.hpp.
CubitVector PlanarParamTool::uvCenter [private] |
Definition at line 43 of file PlanarParamTool.hpp.