28.11.2014 Views

AutoCAD® 2002 - Autodesk

AutoCAD® 2002 - Autodesk

AutoCAD® 2002 - Autodesk

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

major axis length, b is the negative of 1/2 the minor axis length, and c is the<br />

center point (2-D) of the ellipse.<br />

Because this is actually a vector equation and the variable c is actually a point<br />

with X and Y values, it really should be written as:<br />

p(u)=(Cx+a*cos(u))*i+(Cy+b*sin(u))*j<br />

where<br />

■<br />

■<br />

■<br />

■<br />

■<br />

Cx is the X value of the point c<br />

Cy is the Y value of the point c<br />

a is –(1/2 of the major axis length)<br />

b is –(1/2 of the minor axis length)<br />

i and j represent unit vectors in the X and Y directions<br />

HATCH<br />

In AutoCAD, once the axis endpoints are selected, all you have left to specify<br />

is the start and end of the elliptical arc.<br />

When you select the parameter option, you are asked for a start parameter<br />

and an end parameter. These values are plugged into the equation to determine<br />

the actual start and end points on the ellipse. The rest of the ellipse is<br />

filled in between these two points in a counterclockwise direction from the<br />

first parameter to the second. The value entered for the parameter u is taken<br />

to be degrees for the purposes of obtaining the cos(u) and sin(u).<br />

For example:<br />

Axis endpoint 1 = 0,1<br />

Axis endpoint 2 = 4,1<br />

Other axis distance = 2,0<br />

Start parameter = 270<br />

End parameter = 0<br />

generates the start point at 2,2 and the end point at 0,1 and fills in the ellipse<br />

from 2,2 to 0,1 in a counterclockwise direction.<br />

The following group codes apply to hatch entities. In addition to the group<br />

codes described here, see “Common Group Codes for Entities” on page 60.<br />

78 | Chapter 6 ENTITIES Section

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!