START_HOLE
Syntax
int_val = START_HOLE( );
Return Values
- Success:
-
int 0 Success.
- Failure:
-
int -1 Script interface error.
Description
This function can be used during hatching to declare that the subsequent polylines form a region that does not receive hatching.
You cannot use this function if START_FACE is called with input arguments.
Functions ARC and CIRCLE can also be used to hatch faces, not only polylines, provided that the lines touch each other to complete the face.
Example
Copy
hatch_test( )
{
START_FACE( );
POLY( -20, 0,
-50, 0,
-50, 50,
50, 50,
50, 0,
20, 0);
ARC( 20, 0,
0, 0, 180);
START_HOLE( );
CIRCLE( 0, 40, 5);
style = 0; /* not used currently */
o_x = 0.0; /* not used currently */
o_y = 0.0; /* not used currently */
ang = 45.0;
spc = 2.0;
HATCH_FACE( style, o_x, o_y, ang, spc );
}