![]() |
FG Module Interface Functions |
<<< Geometric Restrictions | Chapters | Index >>> |
This appendix provides details of the FG module interface functions designed for the management and evaluation of FG curves and surfaces. These functions are:
This function is called when an FG curve is requested by the KI function CRFGCU. The purpose of this function is to initialize any FG data that is required by the evaluator and to check that the real and integer data items meet the requirements of the requested evaluator.
A successful call to this function indicates to Parasolid that evaluations of this curve may now be requested.
This function is called when an FG surface is requested by the KI function CRFGSU. The purpose of this function is to initialize any FG data that is required by the evaluator. A successful call to this function indicates to Parasolid that evaluations of this surface may now be requested.
FGEVIN |
Evaluation incomplete (not all derivatives requested may be returned) |
FGOPFA |
Evaluation failed |
(FGOPOK |
Operation successful) |
This function is called when an evaluation of a foreign curve is required by Parasolid. The function should be capable of supplying position and up to second derivatives for a foreign curve which has previously been initialized by a call to FGCRCU.
The argument fg_data identifies the curve evaluator. The arguments ki_ints and ki_reals give the numerical data passed in through the KI when the curve was initialized.
FGEVIN |
Evaluation incomplete (not all derivatives requested may be returned) |
FGOPFA |
Evaluation failed |
(FGOPOK |
Operation successful) |
This function is called when an evaluation of a foreign surface is required by Parasolid. The function should be capable of supplying position and up to second derivatives for a foreign surface which has previously been initialized by a call to FGCRSU.
The argument fg_data identifies the surface evaluator. The arguments ki_ints and ki_reals give the numerical data passed in through the KI at surface initialization.
The triangular flag, triang, may take the value FGEVSQ (indicating a request for a rectangular array of derivatives) or FGEVTR (indicating a triangular array of derivatives request). The arguments nu, nv specify the number of u an v derivatives requested.
FGOPFA |
Operation failed |
FGPROP |
Use default properties |
(FGOPOK |
Operation successful) |
This function is called, after FGCRCU has initialized the curve, to indicate to Parasolid some of the parametric properties of the curve. The function can specify the parameter range of the curve and indicate whether it is to be treated as periodic. If the ifail value is set to FGPROP then Parasolid uses default properties for the curve evaluator: there is no need to set the range and periodicity flag.
Default properties are parameter range [0, 1] and periodicity flag FGPRBD (i.e. non-periodic parametrization).
If the ifail value is set to FGOPOK then this function must set the parameter range and periodicity flag:
FGOPFA |
Operation failed |
FGPROP |
Use default parameter properties |
(FGOPOK |
Operation successful) |
This function is called, after FGCRSU has initialized the surface, to indicate to Parasolid some of the parametric properties of the surface. The function can specify the parameter ranges of the surface and indicate whether it is to be treated as periodic in u and/or v.
If the ifail value is set to FGPROP then Parasolid uses default properties for the surface evaluator: there is no need to set the range and periodicity flag. Default properties are parameter ranges [0, 1] for both u and v parameters and periodicity flags FGPRBD for both parameters (i.e. non-periodic parametrization).
If the ifail value is set to FGOPOK then this function must set the range array and the periodicity flags array.
<<< Geometric Restrictions | Chapters | Index >>> |