All Frameworks  Class Hierarchy  This Framework  Indexes

SPAblnd Global Function api_smooth_edges_to_curve


outcome api_smooth_edges_to_curve(ENTITY_LIST const& ents,
CURVE*& calibration_curve,
EDGE*& first_edge,
EDGE*& last_edge,
AcisOptions* ao= NULL )
Generates a calibration curve fit to a list of edges.

Role: This API makes a single curve that approximates the given list of smoothly-connected edges. The list need not be sorted upon input. The curve and pointers to the edges corresponding to the start and end of the curve are returned. The curve is returned as a new CURVE with a use count of 1, and must be disposed of properly. first_edge and last_edge are pointers directly into the body. This API is used in blending, for example to find a defining curve for a variable-radius blend sequence, which parameterizes the blend surface and calibrates the radius function. Typical usage would be:
 CURVE *calibration_curve;
 EDGE *first_edge;
 EDGE *last_edge;
 api_smooth_edges_to_curve(ents, calibration_curve, first_edge, last_edge); 
result = api_set_var_blends(ents, start_radius, end_radius, start_setback, end_setback, calibration_curve, first_edge, last_edge, 0, 0, TRUE, TRUE, start_stop_ang, end_stop_ang);
calibration_CURVE->remove();
Effect: Read-only

Journal: Available

Parameters:
ents
entities.
calibration_curve
returned calibration curve.
first_edge
returned the first edge on the curve.
last_edge
returned the last edge on the curve.
ao
ACIS options.

This object is included in the file: blendapi.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.