Differential D10878 Diff 35834 source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc
| Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Lines | static Mesh *create_circle_mesh(const float radius, | ||||
| } | } | ||||
| /* Create triangle fan edges. */ | /* Create triangle fan edges. */ | ||||
| if (fill_type == GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN) { | if (fill_type == GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN) { | ||||
| for (const int i : IndexRange(verts_num)) { | for (const int i : IndexRange(verts_num)) { | ||||
| MEdge &edge = edges[verts_num + i]; | MEdge &edge = edges[verts_num + i]; | ||||
| edge.v1 = verts_num; | edge.v1 = verts_num; | ||||
| edge.v2 = i; | edge.v2 = i; | ||||
| edge.flag = ME_EDGEDRAW | ME_EDGERENDER; | |||||
| } | } | ||||
| } | } | ||||
| /* Create corners and faces. */ | /* Create corners and faces. */ | ||||
| if (fill_type == GEO_NODE_MESH_CIRCLE_FILL_NGON) { | if (fill_type == GEO_NODE_MESH_CIRCLE_FILL_NGON) { | ||||
| MPoly &poly = polys[0]; | MPoly &poly = polys[0]; | ||||
| poly.loopstart = 0; | poly.loopstart = 0; | ||||
| poly.totloop = loops.size(); | poly.totloop = loops.size(); | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||