[Paraview] Color surface by normal direction (inwards or outwards)

2012-05-29 Thread Lorenzo
Hi all;
I was wondering if there's a way in paraview to color surfaces (ie triangles in 
a stl file) by the direction of their normals (inwards or outwards).

Meaning, if you pick a triangle, one side of it will be of one color while the 
other side will be of a different color, depending on whether that triangle 
normal is point towards the triangle of away from it.


Thank you

Lorenzo

   
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Color surface by normal direction (inwards or outwards)

2012-05-29 Thread Cory Quammen
Lorenzo,

Yes, you can do this.

Under the Display tab, choose the color of the front face in the
Color control panel. Set the Color by option to Solid Color, then
pick the color you want with the Set Solid Color... button. Then
scroll down almost to the bottom of the Display tab. There is a
Backface Style panel. If you set the representation to Surface, you
can then pick the color of the backface.

You can do other things, to, such as turn on front face or back face
culling, which you might find useful.

Hope that helps,
Cory

On Tue, May 29, 2012 at 10:33 AM, Lorenzo lovecraf...@gmail.com wrote:
 Hi all;
 I was wondering if there's a way in paraview to color surfaces (ie triangles 
 in a stl file) by the direction of their normals (inwards or outwards).

 Meaning, if you pick a triangle, one side of it will be of one color while 
 the other side will be of a different color, depending on whether that 
 triangle normal is point towards the triangle of away from it.


 Thank you

 Lorenzo


 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at: 
 http://paraview.org/Wiki/ParaView

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/mailman/listinfo/paraview



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Color surface by normal direction (inwards or outwards)

2012-05-29 Thread Cory Quammen
Lorenzo,

Please don't forget to CC the list so that others may benefit from the
discussion now and in the future through the list archives.

As I mentioned in my previous email, using the Surface representation lets
you pick the color. I just mentioned the culling options as potentially
useful ways to see some things on your geometry. I didn't mean to lead you
astray from your goal.

Cory

On Tue, May 29, 2012 at 11:28 AM, Lorenzo lovecraf...@gmail.com wrote:

 Thank you for your help Cory, that helps a lot.
 Anyway, I cannot select a color for the Cull FrontFace/BackFace options
 (see pic attached)… If I select one of each, the back/front face simply
 disappears and it comes back if I pan the stl the other way… that's quite
 confusing if you have a complex geometry… Now, I could load my geometry
 twice and enable backface for one and front face for the other and assign
 different colors for each model but I kind of hoped there was an easier way…


 Thank you!

 Lorenzo





 Il giorno 29/mag/2012, alle ore 17:16, Cory Quammen ha scritto:

 Lorenzo,

 Yes, you can do this.

 Under the Display tab, choose the color of the front face in the
 Color control panel. Set the Color by option to Solid Color, then
 pick the color you want with the Set Solid Color... button. Then
 scroll down almost to the bottom of the Display tab. There is a
 Backface Style panel. If you set the representation to Surface, you
 can then pick the color of the backface.

 You can do other things, to, such as turn on front face or back face
 culling, which you might find useful.

 Hope that helps,
 Cory

 On Tue, May 29, 2012 at 10:33 AM, Lorenzo lovecraf...@gmail.com wrote:

 Hi all;

 I was wondering if there's a way in paraview to color surfaces (ie
 triangles in a stl file) by the direction of their normals (inwards or
 outwards).


 Meaning, if you pick a triangle, one side of it will be of one color while
 the other side will be of a different color, depending on whether that
 triangle normal is point towards the triangle of away from it.



 Thank you


 Lorenzo



 ___

 Powered by www.kitware.com


 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html


 Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView


 Follow this link to subscribe/unsubscribe:

 http://www.paraview.org/mailman/listinfo/paraview




 --
 Cory Quammen
 Research Associate
 Department of Computer Science
 The University of North Carolina at Chapel Hill





-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
Schermata 05-2456077 alle 17.23.17.png___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview