cgma
SurfParamTool Class Reference

Transforms between a surface's uv parameter and xyz space. More...

#include <SurfParamTool.hpp>

Inheritance diagram for SurfParamTool:
ParamTool

List of all members.

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 &center)

Private Attributes

SurfacerefSurf

Detailed Description

Transforms between a surface's uv parameter and xyz space.

Definition at line 28 of file SurfParamTool.hpp.


Constructor & Destructor Documentation

Definition at line 28 of file SurfParamTool.cpp.

{

    //- update private variables
    refSurf = surf;

}

Definition at line 42 of file SurfParamTool.cpp.

{}

Member Function Documentation

static CubitStatus SurfParamTool::circumcenter ( double  u0,
double  v0,
double  u1,
double  v1,
double  u2,
double  v2,
CubitVector center 
) [static]

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);
}

Member Data Documentation

Definition at line 54 of file SurfParamTool.hpp.


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