This is the first video in a 2 part exercise for Blender Python beginners.
We will write a Python script that will provide a list of coordinates for the vertices of a circle mesh.
Final Code:
https://gist.github.com/CGArtPython/6e98beb424b6c58bbda0469b2c0434a9
Parametric Circle equation on Wikipedia
https://en.wikipedia.org/wiki/Parametric_equation#Circle
[Graph] Just the circle function
https://www.desmos.com/calculator/l6pxb3j24h
[Graph] Moving point on the circle function
https://www.desmos.com/calculator/debxsbusxp
Great explanation of the math behind this
“Parametrizing a Circle” by @JCCCmath
Blender: How to set up Python console output on Linux
Blender: How to set up Python console output on macOS
00:00 – Intro
00:42 – Show end goal
01:45 – Go over the circle equation
04:24 – Write down the steps
05:20 – Import bpy and math
05:48 – Write down the circle equation
08:21 – Visualize the coordinate
10:23 – Repeat code with a for loop
14:29 – Calculate circle segments
18:30 – Create a list of coordinates
21:20 – Pretty-print coordinates
22:33 – Exercise #1
22:13 – Exercise #2
25:54 – Outro
Beginner Blender Python Exercise: Circle mesh from scratch (Part 1)
- Price type: Free