• R/O
  • SSH
  • HTTPS

ongeo: Commit


Commit MetaInfo

Revisão62 (tree)
Hora2020-10-25 13:18:35
Autormocchi_2012

Mensagem de Log

・点列からNurbs曲線求める関数 終端点を使わない不具合の修正

Mudança Sumário

Diff

--- trunk/FitNurbsToPoints.cpp (revision 61)
+++ trunk/FitNurbsToPoints.cpp (revision 62)
@@ -404,6 +404,9 @@
404404 if (ki_inv < 0 || ki_inv == ki_cnt_search) return -1;
405405 if (ki_inv > 0) ki_cursor += ki_inv, pt_indices_selected[n++] = ki_cursor;
406406 }
407+ if (pt_indices_selected[n-1] != pt_cnt - 1){
408+ pt_indices_selected[n-1] = pt_cnt - 1;
409+ }
407410 return n;
408411 }
409412
Show on old repository browser