You can try the following:

View "mesh a" {
 SL(0,0,0,1,0,0){0,0};
 SL(1,0,0,1,1,0){0,0};
 SL(1,1,0,0,1,0){0,0};
 SL(0,1,0,0,0,0){0,0};
 };
View "mesh b" {
 SL(-0.5,-0.5,0, 0.5,-0.5,0){0,0};
 SL( 0.5,-0.5,0, 0.5, 0.5,0){0,0};
 SL( 0.5, 0.5,0,-0.5, 0.5,0){0,0};
 SL(-0.5, 0.5,0,-0.5,-0.5,0){0,0};
 };
View[PostProcessing.NbViews-1].ColorTable = { {255,0,0} }; // Changing color to red

Regards,
Ruth



On 17/09/10 15:34, Wangshiraz wrote:
Hi,

My mesh file is like below:

 View "mesh a" {
 SL(0,0,0,1,0,0){0,0};
 SL(1,0,0,1,1,0){0,0};
 SL(1,1,0,0,1,0){0,0};
 SL(0,1,0,0,0,0){0,0};
 };

It shows a GREEN rectangle on the screen.

I have another mesh which I want it to be created in the same file in another View named "mesh b" in another color, say RED.

Just wondering how do I change the color? Which command?

Regards,

Cean
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh

-- 
Dr. Ir. Ruth V. Sabariego
University of Liege, Dept. of Electrical Engineering & Computer Science, 
Applied & Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/


_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to