- Home /
Generate a circle mesh?
Are there any algorithm that can be used to generate a circle mesh (I have the value of the center point and the radius).
Answer by robertbu · May 13, 2014 at 05:52 AM
First, usually a circle mesh would be build in a 3D modeling program like Blender and then imported into Unity. You would then scale and position the mesh. If you really want to build on at runtime, you can generate an array of points around the circumference of the circle and use the Triangular script from the Unity Wiki to change the points into a mesh. Note rather than use an arbitrary center, use Vector3.zero for the center, then once the mesh is attached to a game object, you can move the game object to the center position.
Your answer
Follow this Question
Related Questions
Procedural Mesh 1 Answer
Catmull-clark algorithm, can anyone explain me how to implement? 0 Answers
Get connected vertices 0 Answers