I am looking for description of how to fill a circle
segment. The current method I am using fills cells
more than once.

the code:

Angle (in degrees) Radius (of circle)

output: X,Y's of coordinates that make up the circle segment.

the circle segment is always a 45 degree slice of the circle.

I don't want just the code. I would like to have some understanding of it.

I have found information about "scan-converting triangles" but the information isn't clear or easy to understand.

the current method I use:

I can calculate the coordinate of a cell with the angle and radius.

for Angle = inputAngle-22.5 to inputAngle + 22.5

;calc pt in circle ar = angle * (3.14/180) x1 = RadiusCount

;do something with the point coordinates

next Angle

next RadiusCount

when radiusCount = 1, one cell gets calculated 45 times. I only want the coordinates ONCE.

Rich

the code:

************************************************************************************************************Input:Angle (in degrees) Radius (of circle)

output: X,Y's of coordinates that make up the circle segment.

the circle segment is always a 45 degree slice of the circle.

************************************************************************************************************I don't want just the code. I would like to have some understanding of it.

I have found information about "scan-converting triangles" but the information isn't clear or easy to understand.

the current method I use:

I can calculate the coordinate of a cell with the angle and radius.

******************************************************************************************************************* for RadiusCount = 0 to Radiusfor Angle = inputAngle-22.5 to inputAngle + 22.5

;calc pt in circle ar = angle * (3.14/180) x1 = RadiusCount

*** cos (AR) y1 = RadiusCount ***sin (AR);do something with the point coordinates

next Angle

next RadiusCount

************************************************************************************************************************when radiusCount = 1, one cell gets calculated 45 times. I only want the coordinates ONCE.

Rich