[Gmsh] In Sphere bug with translate?

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Nov 17 21:54:22 CET 2008


Antoine Dechaume wrote:
> Hello,
> 
> just try this and see the result, it seems In Sphere did not get the  
> update centre p1.
> 

Indeed, good catch! It's fixed in CVS.

Thanks for the report,

Christophe


> 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.
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine