![]() ![]() ![]() However when the angle between lines is really small, intersection point would be at infinity. Use the intersection point as the sharp end. Get the 'outer' border of each line segment and find the intersection point. The 3 common joint types as seen in Cairo and most graphics libraries are: To avoid gaps and overdraw (pretend this word is a noun), proper joint treatment is needed. Any polyline thicker than 1.5px will not look good. There is a big gap and the darkened part is drawn 2 times. The image on the right is 2 grey segments with 50% transparency. If we do so, there would be a gap and overdraw at the join between segments. Why don't we draw a polyline by a set of line segments? In a 2D graphics application, drawing only line segments is not enough. You can consider this as the second episode to the first article Drawing nearly perfect 2D line segments in OpenGL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |