|
BRL-CAD
|
#include "common.h"#include "vmath.h"#include "bu/avs.h"#include "bu/opt.h"#include "bu/mime.h"#include "bn/tol.h"#include "rt/defines.h"#include "rt/tol.h"#include "gcv/defines.h"Go to the source code of this file.
Data Structures | |
| struct | gcv_context |
| struct | gcv_opts |
| struct | gcv_filter |
| struct | gcv_plugin |
Enumerations | |
| enum | gcv_tessellation_algorithm { GCV_TESS_DEFAULT = 0 , GCV_TESS_BOTTESS , GCV_TESS_MARCHING_CUBES } |
| enum | gcv_filter_type { GCV_FILTER_FILTER , GCV_FILTER_READ , GCV_FILTER_WRITE } |
Functions | |
| void | gcv_context_init (struct gcv_context *cxt) |
| void | gcv_context_destroy (struct gcv_context *cxt) |
| void | gcv_opts_default (struct gcv_opts *gcv_options) |
| const struct bu_ptbl * | gcv_list_filters (struct gcv_context *context) |
| int | gcv_execute (struct gcv_context *context, const struct gcv_filter *filter, const struct gcv_opts *gcv_options, size_t argc, const char *const *argv, const char *target) |
Main public API of the LIBGCV geometry conversion library.
Definition in file api.h.
| enum gcv_filter_type |
| void gcv_context_init | ( | struct gcv_context * | cxt | ) |
Initialize a conversion context.
| void gcv_context_destroy | ( | struct gcv_context * | cxt | ) |
Release a conversion context, freeing all memory internally allocated by the library. Caller is responsible for freeing the context pointer itself, if necessary.
| void gcv_opts_default | ( | struct gcv_opts * | gcv_options | ) |
Assign default option values.
| const struct bu_ptbl * gcv_list_filters | ( | struct gcv_context * | context | ) |
| int gcv_execute | ( | struct gcv_context * | context, |
| const struct gcv_filter * | filter, | ||
| const struct gcv_opts * | gcv_options, | ||
| size_t | argc, | ||
| const char *const * | argv, | ||
| const char * | target | ||
| ) |
Perform a filtering operation on a gcv_context.
If 'gcv_options' is NULL, defaults will be used as set by gcv_opts_default(). The parameters 'argc' and 'argv' are used for option processing as specified by the filter.
Returns 1 on success and 0 on failure.