pe_circular_arc(3g) — Subroutines
Name
pe_circular_arc − Specifies the 2D, shorthand form of the circular arc primitive.
Operating States: PHOP, ∗, STOP, ∗
Digital PHIGS extension function
Creates a structure element
Syntax
void pe_circular_arc (
const Ppoint ∗center, /∗ (I) Center of the circle, in modeling
coordinates ∗/
Pfloat radius, /∗ (I) Radius of the circle, in modeling
coordinates ∗/
Pfloat start_angle, /∗ (I) Starting angle for drawing the arc,
in radians ∗/
Pfloat end_angle /∗ (I) Ending angle for drawing the arc,
in radians ∗/
)
Data Structures
typedef struct {
Pfloat x; /∗ x coordinate ∗/
Pfloat y; /∗ y coordinate ∗/
} Ppoint;
Description
pe_circular_arc specifies the two-dimensional (x and y), shorthand form of the circular arc primitive. The circular arc has an assumed z-coordinate equal to 0. The local coordinate system is the xy-plane as defined in the modeling coordinate system.
Depending on the edit mode, this function either inserts the new structure element directly after the element indicated by the pointer or replaces the element indicated by the pointer. The pointer then points to the new circular arc element.
Digital PHIGS generates a circular arc from the start angle to the end angle in a counterclockwise direction. Digital PHIGS binds the current values of the polyline primitive as defined in the PHIGS traversal state list to the primitive, and renders it according to the current curve approximation criteria.
During structure traversal, Digital PHIGS displays a dot at the center of the circular arc if the radius of the arc is less than or equal to 0.
If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element.
Digital PHIGS Version 4.1 does not support this function.
See Also
padd_names_set
pinq_line_facs
premove_names_set
pset_depth_cue_ind
pset_hlhsr_id
pset_indiv_asf
pset_linetype
pset_linewidth
pset_pick_id
pset_line_colr
pset_line_colr_ind
pset_line_ind
pset_line_shad_method
pset_view_ind