 |
PK_FACE_change_data_bend_t |
|
struct PK_FACE_change_data_bend_s
{
PK_FACE_change_bend_type_t type; --- the type of this bend face
PK_ENTITY_t tool_entity; --- entity used to construct
--- resultant face
double offset; --- forward offset distance
double backward_offset; --- backward offset distance
};
typedef struct PK_FACE_change_data_bend_s PK_FACE_change_data_bend_t;
Parameters of change operation bend.
For more details on bend parameters, see here.
For more details on the options you can use to control bends, see
here.
Used in:
PK_FACE_change_data_t
Description of fields:
'type' Whether the face is a side face, or an inner/outer
face.
'tool_entity' If 'type' is PK_FACE_change_bend_c, then this should
be a face (referred to as the tool face), which is
used to construct the offset face for this inner or
outer face. Inner and outer faces come in pairs; two
faces will be considered a pair if their geometry are
offsets of each other, and there exists a side face
(ie, with type PK_FACE_change_bend_side_c) that is
adjacent to them both. The same value for
'tool_entity' should be supplied for both the inner
and outer face in a pair.
If 'type' is PK_FACE_change_bend_side_c, then this
should be an edge, which is used to construct the
ruled surface for this side face. The edge should
belong to the tool face supplied for the inner and
outer bend faces adjacent to this side face.
'offset' If 'type' is PK_FACE_change_bend_c, then this
represents the signed distance that the tool face
'tool_entity' should be offset by, in the direction
of the tool face's normal, to obtain the face to be
used in the resultant body.
If 'type' is PK_FACE_change_bend_side_c, then we
require two offset distances representing how far the
edge 'tool_entity' should be offset by in the
direction of the face normal of the tool face which
is supplied for the adjacent inner/outer bend face.
The distances are signed such that positive distance
represents in the direction of the face normal. These
two offsets are supplied as 'offset' and
'backward_offset', with the restriction that 'offset'
should be greater than 'backward_offset'.
'backward_offset' If 'type' is PK_FACE_change_bend_c, then this field
has no effect.
If 'type' is PK_FACE_change_bend_side_c, then this
represents the backward offset distance for the edge.
See 'offset' for more information.