There it goes! Thank you Ruth, both suggestions worked. -- jeremy
On Wednesday 24 April 2013 02:12:00 Ruth V. Sabariego wrote: > Hi Jeremy, > > It looks like the normal of your surfaces is different. I mean the > rectangle on the left has an outward normal, the one on the right, an > inward one. For seen the same colors, you can do two things: > - modifying the geometry for having all normals oriented in the same sense; > - turning off the lighting: Tools->Options->Mesh->Enable lighting, or add > "Mesh.Light = 0;" at the beginning of your file. > > Ruth > > On 24 Apr 2013, at 00:38, jeremy theler <[email protected]> wrote: > > Dear all, > > > > Find attached a simple geometry 2D file with a central square surronded > > by two symmetrical rectangles. Assume the central square is made of one > > material and the two rectangles are made of another one. Hence, I have > > two physical entities, one with the central square and other with the > > two rectangles. > > > > Now, for the automatic preparation of figures for a report by means of a > > bash script, I would like to have gmsh to paint the meshes of the > > rectangles in one color (say red) and the central square in another one > > (say green). > > > > By entering > > > > Color Green {Surface {12};} > > Color Red {Surface {14, 16};} > > > > I get the two rectangles in different kinds of red (see attached png). I > > have tried to reference the physical entity with no luck. > > > > Moreover, I did not get how the property Mesh.ColorCarousel works. > > > > > > BTW, the geo file is just and example I made up in order to ask the > > question. What I want to accomplish involves more surfaces and physical > > entities, but the geo files are also only two-dimensional geometries. > > > > Any help would be appreciated. > > Thanks in advance. > > -- > > jeremy > > > > <color.geo><color.png>_______________________________________________ > > gmsh mailing list > > [email protected] > > http://www.geuz.org/mailman/listinfo/gmsh > > — > Dr. Ir. Ruth V. Sabariego > University of Liege, Electrical Engineering and Computer Science > http://ace.montefiore.ulg.ac.be/ _______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
