Thick Bezier Curves in OpenGL

后端 未结 1 473
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 07:17

I am writing a program in java using the jogl opengl bindings. I need to create a bezier curve that varies in thickness along the curve. So far I\'ve only managed a thin bez

1条回答
  •  执笔经年
    2021-01-16 08:07

    Sample the curve and for each sample point compute two points, one on each side of the curve, along the normal line at the sample point and at a distance equal to the desired width at the sample point. This creates a polygon, which you draw as filled.

    0 讨论(0)
提交回复
热议问题