@@ -379,6 +379,7 @@ void Basic_generator_plugin::generateCube()
379379
380380 for (int i=0 ; i<8 ; ++i)
381381 {
382+ point_texts[i].replace (' ,' ,' ' );
382383 QStringList list = point_texts[i].split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
383384 if (list.isEmpty ()) return ;
384385 if (list.size ()!=3 ){
@@ -420,6 +421,7 @@ void Basic_generator_plugin::generateCube()
420421 else
421422 {
422423 QString text = dock_widget->extremaEdit ->text ();
424+ text.replace (' ,' ,' ' );
423425 QStringList list = text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
424426 if (list.isEmpty ()) return ;
425427 if (list.size ()!=6 ){
@@ -471,6 +473,7 @@ void Basic_generator_plugin::generatePrism()
471473 bool is_closed = dock_widget->prismCheckBox ->isChecked ();
472474
473475 QString text = dock_widget->prism_lineEdit ->text ();
476+ text.replace (' ,' ,' ' );
474477 QStringList list = text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
475478 if (list.isEmpty ()) return ;
476479 if (list.size ()!=3 ){
@@ -518,6 +521,7 @@ void Basic_generator_plugin::generatePyramid()
518521 bool is_closed = dock_widget->pyramidCheckBox ->isChecked ();
519522
520523 QString text = dock_widget->pyramid_lineEdit ->text ();
524+ text.replace (' ,' ,' ' );
521525 QStringList list = text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
522526 if (list.isEmpty ()) return ;
523527 if (list.size ()!=3 ){
@@ -561,6 +565,7 @@ void Basic_generator_plugin::generateSphere()
561565{
562566 int precision = dock_widget->SphereSpinBox ->value ();
563567 QString text = dock_widget->center_radius_lineEdit ->text ();
568+ text.replace (' ,' ,' ' );
564569 QStringList list = text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
565570 if (list.isEmpty ()) return ;
566571 if (list.size ()!=4 ){
@@ -611,6 +616,7 @@ void Basic_generator_plugin::generateTetrahedron()
611616
612617 for (int i = 0 ; i < 4 ; ++i)
613618 {
619+ point_texts[i].replace (' ,' ,' ' );
614620 QStringList list = point_texts[i].split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
615621 if (list.isEmpty ()) return ;
616622 if (list.size () != 3 ) {
@@ -645,6 +651,7 @@ void Basic_generator_plugin::generateTetrahedron()
645651 else
646652 {
647653 QString text = dock_widget->point_textEdit_2 ->toPlainText ();
654+ text.replace (' ,' ,' ' );
648655 QStringList list = text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
649656 if (list.isEmpty ()) return ;
650657 if (list.size () != 12 ) {
@@ -685,6 +692,7 @@ void Basic_generator_plugin::generateTetrahedron()
685692void Basic_generator_plugin::generatePoints ()
686693{
687694 QString text = dock_widget->point_textEdit ->toPlainText ();
695+ text.replace (' ,' ,' ' );
688696 Scene_points_with_normal_item* item = new Scene_points_with_normal_item ();
689697 QStringList list = text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
690698 int counter = 0 ;
@@ -740,6 +748,7 @@ void Basic_generator_plugin::generatePoints()
740748void Basic_generator_plugin::generateLines ()
741749{
742750 QString text = dock_widget->line_textEdit ->toPlainText ();
751+ text.replace (' ,' ,' ' );
743752 std::list<std::vector<Scene_polylines_item::Point_3> > polylines;
744753
745754 auto read_polyline = [&polylines](const QStringList& list, bool is_2d, bool is_closed)
@@ -915,6 +924,7 @@ void Basic_generator_plugin::generateGrid()
915924 size_type nb_cells[2 ];
916925 bool triangulated = dock_widget->grid_checkBox ->isChecked ();
917926 points_text= dock_widget->grid_lineEdit ->text ();
927+ points_text.replace (' ,' ,' ' );
918928
919929 QStringList list = points_text.split (QRegularExpression (" \\ s+" ), CGAL_QT_SKIP_EMPTY_PARTS);
920930 if (list.isEmpty ()) return ;
0 commit comments