KonstantinosKr / solfec

Automatically exported from code.google.com/p/solfec
0 stars 0 forks source link

Allow setting/viewing arbitrary body colours #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Allow the colour of a body to be set to an arbitrary value after creation, e.g 
by:
- Adding a read/write "color" attribute to BODY objects which takes an 
int/constant/string defining the colour for this body.
- Adding a menu entry "kinds of / color" to the viewer, which shows the 
selected colors.

This would assist quite a lot with debugging complex models.

Original issue reported on code.google.com by steve.br...@atkinsglobal.com on 7 Aug 2013 at 12:43

GoogleCodeExporter commented 9 years ago
Steve, can you not use "volume kinds" for this instead? They are not used for 
anything at the moment and I am not foreseeing any real use for them in the 
future. Let me know.

Original comment by t.kozi...@gmail.com on 7 Sep 2013 at 11:31

GoogleCodeExporter commented 9 years ago
I had forgotten about this functionality. The problem is that it applies to 
MESH objects, which are generated by our pre-processor, whereas I would like to 
be able to set them when creating BODY objects. Is it posssible to expose 
MESH.volid and make it read/write? That would work fine.

Original comment by steve.br...@atkinsglobal.com on 9 Sep 2013 at 10:24

GoogleCodeExporter commented 9 years ago
Easily done. Will get sorted soon.

Original comment by t.kozi...@gmail.com on 9 Sep 2013 at 11:16

GoogleCodeExporter commented 9 years ago
I notice that MESH(nodes, elements, surfids) will actually take different 
volids for each element so that you can set different materials using 
MATERIAL(solfec, body, volid, material). However for our purposes it'd be 
enough for MESH.volid to set a single mesh-wide volid - it could always just 
return the volid for the 1st element for simplicity.

Original comment by steve.br...@atkinsglobal.com on 9 Sep 2013 at 3:22

GoogleCodeExporter commented 9 years ago
Now have mesh.set_volid(v) so we can do this.

Original comment by steve.br...@atkinsglobal.com on 22 Oct 2013 at 3:45