Skip to content

Instantly share code, notes, and snippets.

@baku89
Created May 9, 2021 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baku89/3d9573d51d0a4b92832184c070e2bd04 to your computer and use it in GitHub Desktop.
Save baku89/3d9573d51d0a4b92832184c070e2bd04 to your computer and use it in GitHub Desktop.
removeprim(0, 0, 0);
vector p0 = point(0, "P", 0);
vector p1 = point(0, "P", 1);
vector mid;
mid.x = p1.x;
mid.y = p0.y;
addpoint(0, mid);
addprim(0, "polyline", 0, 2, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment