 |
PK_EDGE_set_blend_constant |
|
PK_ERROR_code_t PK_EDGE_set_blend_constant
(
--- received arguments ---
int n_edges, --- no. of edges to blend
const PK_EDGE_t edges[], --- edges to have
--- blends set
double radius, --- blend radius
const PK_EDGE_set_blend_constant_o_t *options, --- options structure
--- [PF]
--- returned arguments ---
int *const n_blend_edges, --- number of edges with
--- blends set
PK_EDGE_t **const blend_edges --- edges with blends
--- set
)
This function sets edges to have a constant 'radius' blend.
This function offers partial support for facet geometry [PF]
Specific Errors:
PK_ERROR_bad_blend_param illegal combination of blend properties
(MILD)
PK_ERROR_general_body edges are from a general body
(MILD)
PK_ERROR_tolerance_too_loose The supplied or edge tolerance is too large
compared to the blend radius
(MILD)
PK_ERROR_bad_tolerance specified tolerance is too tight
(MILD)
Attaches unfixed constant radius blends to a given array of edges.
The argument 'radius' is the radius of the rolling ball and must be greater
than twice the maximum tolerance of all edges in 'edges' and their associated
vertices. If the supplied tolerance is applicable, the radius of the rolling
ball must also be greater than twice the supplied tolerance.
A successful result will produce a new blend attribute. It will return
the edge(s) to which the blend attribute is attached in the array
'blend_edges'.
See PK_BODY_fix_blends for making the blends a part of the topology.
Blends can be created on general bodies, so long as the portion of the body in
the neighbourhood of the blend is locally manifold.