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

copy InSphereCenter when copying surfaces

parent 9f93b591
No related branches found
No related tags found
No related merge requests found
...@@ -1025,6 +1025,7 @@ static void CopySurface(Surface *s, Surface *ss, bool copyMeshingMethod) ...@@ -1025,6 +1025,7 @@ static void CopySurface(Surface *s, Surface *ss, bool copyMeshingMethod)
Msg::Warning("Only automatic transfinite surface specifications can be copied"); Msg::Warning("Only automatic transfinite surface specifications can be copied");
} }
ss->Generatrices = List_Create(List_Nbr(s->Generatrices), 1, sizeof(Curve *)); ss->Generatrices = List_Create(List_Nbr(s->Generatrices), 1, sizeof(Curve *));
ss->InSphereCenter = s->InSphereCenter; // FIXME: hack...
List_Copy(s->Generatrices, ss->Generatrices); List_Copy(s->Generatrices, ss->Generatrices);
End_Surface(ss); End_Surface(ss);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment