uf_eval.h (查看源代码)
 
概述
Open C API interface to functions that evaluate curves. These functions are
the preferred way of evaluating curves and edges.

The routines in this header file allow you to obtain the data for curves
(lines, arcs, conics, and splines) by querying the curve structure for a
specific curve through the evaluator. The evaluator is a pointer to the
UF_EVAL_s data structure. These routines allow you to:
. Query the data of curves, conics, and splines.
. Copy the evaluator of a curve or edge.
. Evaluate a point, derivatives, and unit vector of an evaluator of a curve
or edge.

The UF_EVAL module accepts denormalized parameters, that is the parameters
may not be between 0 and 1. The parameterization will be set up
when the curve is created. You can get the parameterization by calling
UF_EVAL_ask_limits.

To use these routines, you must first call UF_EVAL_initialize which
returns the pointer to the evaluator. Once you obtain the evaluator
you can use any of the evaluator routines. After you have obtained the
requested information, free the evaluator with UF_EVAL_free.
To demonstrates the UF_EVAL api for lines and arcs, Please see the
example

 


 
uf_evalsf.h (查看源代码)
 
概述
Open API interface to functions that evaluate surfaces. These functions are
the preferred way for fast evaluation of faces and underlying surfaces.

Note that UF_EVALSF_evaluate and UF_EVALSF_evaluate_array may not properly
handle parameter values returned by UF_EVALSF_find_closest_point or similar
functions for surface types Blend or Trimmed B-surface. The functions
UF_MODL_evaluate_face or UF_MODL_ask_face_props should be called instead.