UF_FORGEO_ask_surface_params_f_t (查看源代码)
 
定义在: uf_forgeo.h
 
概述
This function is used to define the valid parameter range for the surface.
A place is saved to handle periodic surfaces but this is not yet supported.

 
void UF_FORGEO_ask_surface_params_f_t
(
int int_array [ ] ,
double double_array [ ] ,
double fg_data [ ] ,
double * uvbox,
int period [ 2 ]
)
int (整数型)int_array [ ] Input(输入)- array of integers for surface
double (实数型)double_array [ ] Input(输入)- array of doubles for surface
double (实数型)fg_data [ ] Input(输入)- FG data array
double * (实数型指针)uvboxOutput(输出)- uv parameter box for surface
int (整数型)period [ 2 ] Output(输出)- u and v periodicity flags for surface
[0] = u, [1] = v
UF_MODL_NON_PERIODIC or
UF_MODL_PERIODIC (not yet supported)

 


 
UF_FORGEO_create_surface_f_t (查看源代码)
 
定义在: uf_forgeo.h
 
概述
This function will be called when a foreign surface is created. This will
occur either during new surface creations or during load of existing models.
NX will ask you to prepare to process this surface. You need to prepare to
evaluate this surface and return whether or not evaluation is possible. The
fg_data array can be used any way you wish. You may want to store
information to make the evaluation faster or you could store the address of
the evaluation function for this surface if multiple surface types are
supported and you want to remove a switch between surface types during each
evaluation.

 
int UF_FORGEO_create_surface_f_t
(
char * char_data,
int num_ints,
int * int_array,
int num_doubles,
double * double_array,
int num_data,
double * fg_data
)
char * (字符型指针)char_dataInput(输入)- character string data for surface
int (整数型)num_intsInput(输入)- number of integers defining surface
int * (整数型指针)int_arrayInput(输入)num_ints - array of integers for surface
int (整数型)num_doublesInput(输入)- number of doubles defining surface
double * (实数型指针)double_arrayInput(输入)num_doubles - array of doubles for surface
int (整数型)num_dataInput(输入)- FG data length
double * (实数型指针)fg_dataInput / Outputnum_data - FG data array
R - 0 = NO_ERROR
UF_FORGEO_EVALUATOR_NOT_AVAILABLE

 


 
UF_FORGEO_evaluate_surface_f_t (查看源代码)
 
定义在: uf_forgeo.h
 
概述
This function will be called when evaluation of the foreign surface is
needed. You need to support up to second derivatives.

 
int UF_FORGEO_evaluate_surface_f_t
(
int int_array [ ] ,
double double_array [ ] ,
double fg_data [ ] ,
double u,
double v,
int num_derivs_in_u,
int num_derivs_in_v,
int triang,
double * results
)
int (整数型)int_array [ ] Input(输入)- array of integers for surface
double (实数型)double_array [ ] Input(输入)- array of doubles for surface
double (实数型)fg_data [ ] Input(输入)- FG data array
double (实数型)uInput(输入)- u parameter value at which to evaluate
double (实数型)vInput(输入)- v parameter value at which to evaluate
int (整数型)num_derivs_in_uInput(输入)- number of derivatives in u direction
int (整数型)num_derivs_in_vInput(输入)- number of derivatives in u direction
int (整数型)triangInput(输入)- request for triangular array of
derivatives. UF_MODL_RECTANGULAR or
UF_MODL_TRIANGULAR
double * (实数型指针)resultsOutput(输出)- evaluation results
R - NO_ERROR
UF_FORGEO_EVALUATOR_NOT_AVAILABLE
UF_FORGEO_INCOMPLETE