 |
PK_BODY_offset_planar_wire_o_t |
|
struct PK_BODY_offset_planar_wire_o_s
{
int o_t_version; --- version number
PK_VERTEX_gap_fill_t gap_fill; --- how gaps at vertices are filled
--- (PK_VERTEX_gap_fill_round_c)
PK_LOGICAL_t local_check; --- whether to perform local checks
--- (PK_LOGICAL_false)
double tolerance; --- tolerance for curve conversion
--- (0)
PK_double_constraint_t gap_fill_angle; --- angular constraint to determine
--- if 'constrained_gap_fill' is to
--- be used
--- ((PK_comparison_never_c, (0,0)))
PK_VERTEX_gap_fill_t constrained_gap_fill;
--- how gaps are filled at vertices
--- that satisfy the
--- 'gap_fill_angle' constraint
--- (PK_VERTEX_gap_fill_round_c)
PK_LOGICAL_t repair_self_int;--- whether to repair self
--- intersecting bodies
--- (PK_LOGICAL_false)
PK_LOGICAL_t allow_disjoint; --- whether the returned body can
--- be disjoint (PK_LOGICAL_false)
};
typedef struct PK_BODY_offset_planar_wire_o_s PK_BODY_offset_planar_wire_o_t;
Options structure for offsetting planar wires.
Used in:
PK_BODY_offset_planar_wire
The fields are as follows:
'gap_fill' specifies how gaps at vertices produced by the
offset operation should be filled. Permitted values
are:
PK_VERTEX_gap_fill_round_c
fill with round arc (default)
PK_VERTEX_gap_fill_linear_c
fill with tangent extension
PK_VERTEX_gap_fill_natural_c
fill with curve extension
'local_check' determines whether or not to perform local checking
for validating the result. The default is not to.
'tolerance' tolerance for converting general curves to B-curves.
If this field is set to zero, Parasolid will select
a suitable tolerance.
'gap_fill_angle' This constraint determines which convex angles will
use the 'constrained_gap_fill', instead of the
normal 'gap_fill'. The constraint(s) (in radians),
if satisfied, will instruct the function to use the
'constrained_gap_fill' in place of the 'gap_fill' for
the specified angle ranges. A convex angle is
defined as the angle subtended by the wire body edges
on the opposing side of the offset being less than pi.
Default is ((PK_comparison_never_c, (0,0))). Valid
ranges are between 0 and pi inclusive. Any values
outside this range will return an error
PK_ERROR_bad_angle.
'constrained_gap_fill' An alternative to 'gap_fill' which is used when
the 'gap_fill_angle' constraint is
satisfied. It has the same permitted values as
'gap_fill'. Default is PK_VERTEX_gap_fill_round_c.
'repair_self_int' If this flag is set to PK_LOGICAL_true, the
function will return a body with no self
intersections. Default is PK_LOGICAL_false.
'allow_disjoint' If this flag is set to PK_LOGICAL_true the returned
body may be disjoint. If set to PK_LOGICAL_false
the returned body will not be disjoint and the
function may return more than one wire body if
necessary. Default is PK_LOGICAL_false.