/******************************************************************************
* *
* DESCRIPTION - *
* This program shows how to use the following UG/Open API routine: *
* *
* UF_CURVE_ask_offset_direction *
* UF_CURVE_create_offset_object *
* UF_CURVE_ask_offset_curves *
* UF_CURVE_edit_offset_object *
* UF_CURVE_ask_offset_parms *
* UF_CURVE_free_offset_parms *
* *
* PROGRAM DESCRIPTION - *
* The following example code creates sample.prt. The code illustrates how *
* to set up the inputs and use the outputs of the offset curve routines. *
* *
/* Compute the dot product between the direction vector and the +X vector */
/* This will be used later to determine if we will use a positive or
negative */
/* offset distance. */
UF_VEC3_dot(direction_vector,
x_direction,
&dot);
/* Set up the structures to define a non-associative type of offset */
/* curve. This will use a distance and have a trim method of fillet. */
/* Set up the structures to define an associative type of offset */
/* curve. This will use a distance and have a trim method of */
/* extended tangents. (Only need to change the type, all other */
/* parameters were set up previously. */