*/}}
YimingWu 5 months ago
parent
commit
7d12e6c432
1 changed files with 1 additions and 1 deletions
  1. 1 1
      la_tns_kernel.c

+ 1 - 1
la_tns_kernel.c

@@ -5050,7 +5050,7 @@ void tnsMakeCircle2d(real *arr, int slices, real ctrX, real ctrY, real r, int ju
 void tnsMakeArc2d(real *arr, int slices, real ctrX, real ctrY, real r, real rad_begin, real rad_end){
 void tnsMakeArc2d(real *arr, int slices, real ctrX, real ctrY, real r, real rad_begin, real rad_end){
     int i;
     int i;
     real radstep = (rad_end - rad_begin) / (real)slices;
     real radstep = (rad_end - rad_begin) / (real)slices;
-    real rd = rad_begin;
+    real rd = rad_begin + TNS_PI * 2;
     real x, y;
     real x, y;
     for (i = 0; i <= slices; i++){
     for (i = 0; i <= slices; i++){
         x = ctrX + cos(rd) * r;
         x = ctrX + cos(rd) * r;