[Gmsh] In Sphere bug with translate?

Antoine Dechaume boolegue at gmail.com
Mon Nov 17 21:11:23 CET 2008


Hello,

just try this and see the result, it seems In Sphere did not get the  
update centre p1.

char_len = 0.1;

p1 = newp; Point(p1) = { 0, 0, 0, char_len };
p2 = newp; Point(p2) = { 1, 0, 0, char_len };
p3 = newp; Point(p3) = { 0, 1, 0, char_len };
p4 = newp; Point(p4) = { 0, 0, 1, char_len };

c1  = newl; Circle(c1) = {p4,p1,p2};
c2  = newl; Circle(c2) = {p2,p1,p3};
c3  = newl; Circle(c3) = {p3,p1,p4};

l1 = newll; Line Loop(l1) = {c1,c2,c3};
s = news; Ruled Surface(s) = {l1} In Sphere {p1};

Translate {3, 3, 3} {
   Surface{5};
}


Antoine.