In the following example code for a "brick" hatch pattern,
the first line establishes dashes of a length .2 and a spacing of .2 of
the unit square. The second line establishes criteria for the arrangement
of two sets of parallel lines, dash patterns, that repeat to form the hatch
pattern. The first is a horizontal solid line with the origin at 0,0;
at
an angle of 0d; and, a spacing of .2. The second is a
vertical dash line with the origin at 0,0; at an angle of
90d;
a spacing of .2; a skew of .2; with a pattern of 2
dashes.
float dashes[] = {0.2f, 0.2f};
HT_Parallel_Line_Set lines[] = {
HT_Parallel_Line_Set (0.0f, 0.0f, 0.0f, 0.2f),
HT_Parallel_Line_Set (0.0f, 0.0f, 0.5f*HK_Pi, 0.2f, 0.2f, 2, dashes),
};
rendition.set_face_pattern(HT_Hatch_Pattern(2, lines));
This pattern defines a unit square for a "Brick" hatch pattern
similar to figure 1.
Figure 1. "Brick" hatch
pattern
See Also
count
line_sets
Constructor
HT_Hatch_Pattern
Purpose
int count (void) const
Purpose
HT_Hatch_Pattern ()
HEIDI_API HT_Hatch_Pattern (int count, HT_Parallel_Line_Set const * sets, HT_Boolean copy = HK_True)
Purpose
HT_Parallel_Line_Set const * line_sets (void) const