Questions tagged [miter]

5 questions
26
votes
9 answers

How do I render thick 2D lines as polygons?

I have a path made up of a list of 2D points. I want to turn these into a strip of triangles in order to render a textured line with a specified thickness (and other such things). So essentially the list of 2D points need to become a list of…
Patrick Hogan
  • 2,098
  • 4
  • 20
  • 28
3
votes
1 answer

Create Lines around a guiding line using Miterjoin

I am drawing graphs into a WinForms Picturebox. Now I am searching for a possibility to 'duplicate' a line (an array of points), so that the two resulting lines are positioned a fixed distance away from the original one. Like in this picture, I have…
2
votes
1 answer

Why does my Racket pen draw extra pixels where two lines join despite using 'butt and 'miter?

I'm making two squares as seen in the following image.One red and one blue square The yellow circle is not part of the image, but it shows some pixels that I'm expecting to not be there. I have no experience with computer graphics, but from what…
1
vote
2 answers

ActionScript - Clearing Graphics With JointStyle.MITER Bug?

I've come across an undesirable effect of using JointStyle.MITER when clearing/redrawing graphics. My project involves managing custom line graphics with both round and sharp edges, which is why I would like to use a miter joint style. When the line…
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
0
votes
1 answer

How do I "sharpen" the edge of the path in the image with Stroke Path?

I'm trying to use the stroke path function on a jagged path as shown in the image. I'd prefer to keep the line width, cap style, join style the same. I've tried adjusting the miter limit, going all the way to 100, but i'm still getting that rounded…
Qonl
  • 79
  • 1
  • 10