PK_LATTICE_create_by_graph   

PK_ERROR_code_t                         PK_LATTICE_create_by_graph
(
--- received arguments ---
PK_LATTICE_graph_cb_f_t                 graph_reader,   --- callback to read
                                                        --- sequential graph
                                                        --- data
const PK_POINTER_t                      context,        --- data returned to
                                                        --- reader in
                                                        --- 'graph_reader'
const PK_LATTICE_create_by_graph_o_t   *options,        --- options structure

--- returned arguments ---
PK_LATTICE_create_by_graph_r_t   *const results         --- results structure
)


This function creates a lattice from data obtained by sequentially calling
the input function 'graph_reader' until it returns PK_LATTICE_cb_status_stop_c.

Support for facet geometry must be enabled in the Parasolid session using
PK_SESSION_set_facet_geometry in order to use this function.


Specific Errors:
    PK_ERROR_callback_failed            The application's 'graph_reader'
                                        callback function has returned
                                        PK_LATTICE_cb_status_fail_c. (SERIOUS)
    PK_ERROR_bad_option_data            Unsuitable options have been chosen.
                                        (MILD)
    PK_ERROR_inconsistent_data          The data is contradictory, insufficient
                                        or excessive. (SERIOUS)
    PK_ERROR_invalid_geometry           A lattice with invalid geometry would
                                        be produced. (SERIOUS)
    PK_ERROR_bad_tolerance              Snap tolerance is less than
                                        session precision. (MILD)
                                        Snap tolerance is greater than
                                        the minimum lball radii. (SERIOUS)
    PK_ERROR_lattice_geometry           Facet geometry is not enabled in the
                                        session. (MILD)