Hello,
As far as i understand you have lines inside of your triangle mesh and want
to view them when you are doing a Contour Fill, and, by now, these lines are
hidden, i.e. you can not distinguish them because they are drawn with the
same colour as the areas of the contour fill.
No, you can not create to colour maps for the different element sets.
If you select de ‘body lines’ display style you’ll see the line elements,
the problem is that you’ll see also de edges of the triangles.
And using the ‘body boundaries’ as display style, together with the line
elements you’ll also get the boundaries of the triangle mesh.
(one idea we want to implement is the independent selection of the ‘display
style’ property for each separated element set, and in this way you can
visualize de ‘lines’ of the line-set and the ‘body’ of the triangle-set)
You can also play with the line options which appear in the window
‘Options–Geometry–Line options’. If you select the nice radiobutton,
choose a line size of 2, 3, 4 or greter, and press de apply button, you will
see your lines drawn as thick ‘tubes’ (don’t forget to select a
‘Render–Flat’ or ‘Render–Smooth’ visualization).
Another way is this:
- switch off your triangle-set and let only your line-set on.
- select the ‘lines’, ‘boundaries’ or ‘body with lines’ display style for
the lines (if you want to see the black lines)
- Open the Window–‘View results’ window and select the ‘reference mesh’
panel
- select the ‘Original’ radiobutton
- if you are not happy with the colour of your line-set (for instance, the
colour is one of the colour map used to draw the contour fill and so it can
be difficult to distinguish the lines) check the ‘Use this colour’
checkbutton and choose a colour pressing the coloured button
- press Apply and close the window
With this, what you have done is to create a copy of the lines which will
not be affected by the contour fill.
Now you can:
6. switch the triangle mesh on
7. do your contour fill
There is another way, but a bit complicated:
If you know the maximum/minimum value of the result ( for instance
temperature values never can be below 0 (don’t laugh)), you can write a
result value for the nodes of the lines out of the scale of the normal
values you have for your triangles (for instance, 10e+38 or -10e+38 for all
line nodes). Then set de maximum/minimum limit of the colour scale with
Options-contour-‘max/min options’-‘set value’ (or the appropriate icon)
to the known maximum/minimum. With Options-contour-‘max/min options’-‘out
max/min colour’ you can select how these values, which will lie outside the
scale, will be drawn, for instance black. And now you can do the contour
fill. You’ll get black lines over the contour fill of your triangles,
because as the node values of the lines are out of scale, they will be drawn
black.
miguel
-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.edu
[mailto:gidlist-admin at gatxan.cimne.upc.edu] En nombre de Aldo Ghisi
Enviado el: jueves, 14 de septiembre de 2006 16:38
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] fixed color lines in postprocess
Hello all,
we need to visualize internal grain boundaries in a 2D-solid mesh. These
lines are necessary only to divide the domains, each domain is made up with
a lot of elements.
At the present, we use six-noded triangles mixed with three-noded lines
(just dummy elements).
When countour fill is required, the lines assume the color of nodes: even
if we split the nodes at the interface, then we impose a constant value,
the color is always linked to the current color bar (legend), so basically
the lines become indistinguishable from the bulk.
Mind that the mesh is moving and deforming, so each time step this
background mesh has to move.
So, the question is: can we create (at least) two different color bars for
(at least) two different element sets in the same plot?
Or are there different strategies to solve the problem?
Thank you in advance and best regards.
Aldo Ghisi and Fabrizio Cacchione
GiDlist mailing list
GiDlist at gid.cimne.upc.es
http://gid.cimne.upc.es/mailman/listinfo/gidlist