Skip to content
Snippets Groups Projects
Commit 1262b5b6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

missing some tests on OCC_Internals

parent d01db068
Branches
Tags
No related merge requests found
...@@ -7495,7 +7495,7 @@ yyreduce: ...@@ -7495,7 +7495,7 @@ yyreduce:
{ {
int num = (int)(yyvsp[(3) - (7)].d); int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags); std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Spline not available with OpenCASCADE factory"); yymsg(0, "Spline not available with OpenCASCADE factory");
} }
else{ else{
...@@ -7626,7 +7626,7 @@ yyreduce: ...@@ -7626,7 +7626,7 @@ yyreduce:
int num = (int)(yyvsp[(3) - (11)].d); int num = (int)(yyvsp[(3) - (11)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (11)].l), tags); std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (11)].l), tags);
std::vector<double> knots; ListOfDouble2Vector((yyvsp[(8) - (11)].l), knots); std::vector<double> knots; ListOfDouble2Vector((yyvsp[(8) - (11)].l), knots);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Nurbs not available yet with OpenCASCADE factory"); yymsg(0, "Nurbs not available yet with OpenCASCADE factory");
} }
else{ else{
...@@ -8223,7 +8223,7 @@ yyreduce: ...@@ -8223,7 +8223,7 @@ yyreduce:
{ {
std::vector<std::pair<int, int> > dimTags; std::vector<std::pair<int, int> > dimTags;
ListOfShapes2VectorOfPairs((yyvsp[(4) - (5)].l), dimTags); ListOfShapes2VectorOfPairs((yyvsp[(4) - (5)].l), dimTags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
Msg::Error("Symmetry not implemented yet with OpenCASCADE factory"); Msg::Error("Symmetry not implemented yet with OpenCASCADE factory");
} }
else{ else{
...@@ -8239,7 +8239,7 @@ yyreduce: ...@@ -8239,7 +8239,7 @@ yyreduce:
{ {
std::vector<std::pair<int, int> > dimTags; std::vector<std::pair<int, int> > dimTags;
ListOfShapes2VectorOfPairs((yyvsp[(8) - (9)].l), dimTags); ListOfShapes2VectorOfPairs((yyvsp[(8) - (9)].l), dimTags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Dilate not implemented yet with OpenCASCADE factory"); yymsg(0, "Dilate not implemented yet with OpenCASCADE factory");
} }
else{ else{
...@@ -8255,7 +8255,7 @@ yyreduce: ...@@ -8255,7 +8255,7 @@ yyreduce:
{ {
std::vector<std::pair<int, int> > dimTags; std::vector<std::pair<int, int> > dimTags;
ListOfShapes2VectorOfPairs((yyvsp[(8) - (9)].l), dimTags); ListOfShapes2VectorOfPairs((yyvsp[(8) - (9)].l), dimTags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Dilate not implemented yet with OpenCASCADE factory"); yymsg(0, "Dilate not implemented yet with OpenCASCADE factory");
} }
else{ else{
...@@ -8306,7 +8306,7 @@ yyreduce: ...@@ -8306,7 +8306,7 @@ yyreduce:
#line 2292 "Gmsh.y" #line 2292 "Gmsh.y"
{ {
(yyval.l) = List_Create(2, 1, sizeof(Shape)); (yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Intersect line not available with OpenCASCADE"); yymsg(0, "Intersect line not available with OpenCASCADE");
} }
else{ else{
...@@ -8328,7 +8328,7 @@ yyreduce: ...@@ -8328,7 +8328,7 @@ yyreduce:
#line 2312 "Gmsh.y" #line 2312 "Gmsh.y"
{ {
(yyval.l) = List_Create(2, 1, sizeof(Shape)); (yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Split Line not available with OpenCASCADE"); yymsg(0, "Split Line not available with OpenCASCADE");
} }
else{ else{
......
...@@ -1599,7 +1599,7 @@ Shape : ...@@ -1599,7 +1599,7 @@ Shape :
{ {
int num = (int)$3; int num = (int)$3;
std::vector<int> tags; ListOfDouble2Vector($6, tags); std::vector<int> tags; ListOfDouble2Vector($6, tags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Spline not available with OpenCASCADE factory"); yymsg(0, "Spline not available with OpenCASCADE factory");
} }
else{ else{
...@@ -1716,7 +1716,7 @@ Shape : ...@@ -1716,7 +1716,7 @@ Shape :
int num = (int)$3; int num = (int)$3;
std::vector<int> tags; ListOfDouble2Vector($6, tags); std::vector<int> tags; ListOfDouble2Vector($6, tags);
std::vector<double> knots; ListOfDouble2Vector($8, knots); std::vector<double> knots; ListOfDouble2Vector($8, knots);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Nurbs not available yet with OpenCASCADE factory"); yymsg(0, "Nurbs not available yet with OpenCASCADE factory");
} }
else{ else{
...@@ -2220,7 +2220,7 @@ Transform : ...@@ -2220,7 +2220,7 @@ Transform :
{ {
std::vector<std::pair<int, int> > dimTags; std::vector<std::pair<int, int> > dimTags;
ListOfShapes2VectorOfPairs($4, dimTags); ListOfShapes2VectorOfPairs($4, dimTags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
Msg::Error("Symmetry not implemented yet with OpenCASCADE factory"); Msg::Error("Symmetry not implemented yet with OpenCASCADE factory");
} }
else{ else{
...@@ -2233,7 +2233,7 @@ Transform : ...@@ -2233,7 +2233,7 @@ Transform :
{ {
std::vector<std::pair<int, int> > dimTags; std::vector<std::pair<int, int> > dimTags;
ListOfShapes2VectorOfPairs($8, dimTags); ListOfShapes2VectorOfPairs($8, dimTags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Dilate not implemented yet with OpenCASCADE factory"); yymsg(0, "Dilate not implemented yet with OpenCASCADE factory");
} }
else{ else{
...@@ -2246,7 +2246,7 @@ Transform : ...@@ -2246,7 +2246,7 @@ Transform :
{ {
std::vector<std::pair<int, int> > dimTags; std::vector<std::pair<int, int> > dimTags;
ListOfShapes2VectorOfPairs($8, dimTags); ListOfShapes2VectorOfPairs($8, dimTags);
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Dilate not implemented yet with OpenCASCADE factory"); yymsg(0, "Dilate not implemented yet with OpenCASCADE factory");
} }
else{ else{
...@@ -2291,7 +2291,7 @@ Transform : ...@@ -2291,7 +2291,7 @@ Transform :
| tIntersect tLine '{' RecursiveListOfDouble '}' tSurface '{' FExpr '}' | tIntersect tLine '{' RecursiveListOfDouble '}' tSurface '{' FExpr '}'
{ {
$$ = List_Create(2, 1, sizeof(Shape)); $$ = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Intersect line not available with OpenCASCADE"); yymsg(0, "Intersect line not available with OpenCASCADE");
} }
else{ else{
...@@ -2311,7 +2311,7 @@ Transform : ...@@ -2311,7 +2311,7 @@ Transform :
| tSplit tLine '(' FExpr ')' '{' RecursiveListOfDouble '}' tEND | tSplit tLine '(' FExpr ')' '{' RecursiveListOfDouble '}' tEND
{ {
$$ = List_Create(2, 1, sizeof(Shape)); $$ = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){ if(factory == "OpenCASCADE" && GModel::current()->getOCCInternals()){
yymsg(0, "Split Line not available with OpenCASCADE"); yymsg(0, "Split Line not available with OpenCASCADE");
} }
else{ else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment