Jump to content

Circle curve from beziers?


Rook
 Share

Recommended Posts

What is the recommended way to create a circle 'line'?  I started to post this the other day, right when I tripped over Curve3 and Cubic/Quadratic Beziers, so have been toying with the math of those.

When I try to build a circle out of 4 Quads, I get a very strange join.  See:  https://www.babylonjs-playground.com/#VHE1AI#1

How best to join these curves together to get a simple circle and/or ellipse?

Link to comment
Share on other sites

simpler without Bezier curve : https://www.babylonjs-playground.com/#VHE1AI#5

just change the tesselation (tess) to get more/less points

 

[EDIT] and then starts the fun https://www.babylonjs-playground.com/#VHE1AI#6  :D

[EDIT 2] Mowgli, trussst in me https://www.babylonjs-playground.com/#VHE1AI#7

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...