How to draw a curve in 2D?
I know it's possible to use `Curve2D` to describe a 2D curve.


But how would one go about *drawing* that curve?
May as well promote my comment to an answer.


You need to add points to a `Curve2D` object, then adjust the control points of the curve, and then finally draw the curve. So here's some simple, almost pseudo code:



```
var array_of_line_points # This already has the vectors which describe our line
for point in array_of_line_points:
  # The "get_perpendicular_vector()" function returns a vector that's a copy of the point, yet has been slid along a line parallel to two neighboring points. The "distance" variable is how far the control point should be from the originating point.
  var control_point1 = get_perpendicular_vector(point, distance)
  var control_point2 = get_perpendicular_vector(point, -distance)
  curve.add_point(point, control_point1, control_point2)
# ...In the draw function
func _draw():
  draw_polyline(curve.get_baked_points(), red, 2.0)

```

I got the inspiration for this from [Rob Spencer's page on Spline Interpolation](http://scaledinnovation.com/analytics/splines/aboutSplines.html). I'd like to make this more thorough (i.e. defining the `get_perpendicular_vector()` function). But this is the best I can currently do.
Hi Uwe, You can make inside/outside strokes on non-closed paths using custom width profiles. Use thhe width tool (Shift+W) to make a stroke like this (hold alt to edit only one side of the stroke at a time): Then save it as a profile (bottom of the stroke panel). After that I think your path should be easy to make. the straight distance between two place on a map can be measured by a strip of paper and divider.use a ruler to measure the distance between the two places. if the line is quite curved, use a string to determine the distance, and then measure the string. find the scale for the map you're going to use. it might be a ruler bar scale or a written scale, in words or numbers. you could use kangaroo, but i don’t think it’s needed here.

instead i’d use inverse distance weighting to make a height field like this.

[sharp\_curves.gh](/uploads/short-url/a5wdkm9xiiwabwl6s0jpgf6ry7j.gh) (11.4 kb)

[[image]](https://aws1.discourse-cdn.com/mcneel/uploads/default/original/3x/d/c/dc85a5f42096a341409c4b4727a7d5066bd68745.png "image.png")

the key step here is making a mesh with vertices on the curves you want to keep sharp. one way of doing this is to split a s… one idea can be videos have frames so, vectorize each frame and calculate dtw between two consecutive frames. this will help in gaining the difference in each frame and perhaps help in classification. hope this helps you. using extrudeshape it is straightforward to obtain a bevel along the edges parallel to the extrusion direction.

<https://www.babylonjs-playground.com/#vkixd8>

as far as i know there is no function to produce bevels along all the edge but you can extrude and lathe a set of shapes to form such a mesh,… we don’t have access to your account in this community. please contact curve support directly by email ([support@curve.com](mailto:support@curve.com)) or twitter (@askcurve). [@raja](/u/raja)

this could inspire you:

[[image]](https://aws1.discourse-cdn.com/business6/uploads/dynamobim/original/3x/9/b/9bcef06d0c489d0ac566fe7dad2328002f964445.png "detail-lines-by-offset.png")

here, i recreate lines by offsetting the room finish boundaries, but any other method to select the needed curves could work as well… [@sunlightworking](/u/sunlightworking) this is only a start but you could have fun using subd to model it, break the shape into 2 repeating ‘arms’ that then join together.

[[viewcapture20210611\_093810]](https://aws1.discourse-cdn.com/mcneel/uploads/default/original/4x/b/9/e/b9ec0eea392ef36150b75631db22d3817573de5b.jpeg "viewcapture20210611_093810") What do you have to do when you want to learn swimming?  

Jump into undeep water and train yourself, until you can swim. That way you will be able to swim in very deep water.


Same with programming: start small and get more and more programming experience every day.  

If you encounter problems, you alway s can ask here at DaniWeB. Success! [![enter image description here](https://i.stack.imgur.com/oyJ4x.png)](https://i.stack.imgur.com/oyJ4x.png)


Edit: earlier I told you there wasn't a feature in Sketch that allowed you to connect two paths. **There is.** I did a little digging and the feature is hidden away under "Layer -> Paths" menu.


Regardless, for more complex editing on your paths, I recommend you use Affinity Designer or Illustrator.