Ticket #6131 - Can't save color

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
bernd
Veteran
Posts: 12536
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Can't save color

Post by bernd »

would you try the method setElementColor ?
User avatar
johnwang
Veteran
Posts: 1098
Joined: Sun Jan 27, 2019 12:41 am

Re: Can't save color

Post by johnwang »

Don't know how.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Kunda1
Veteran
Posts: 12709
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4499 - Can't save color

Post by Kunda1 »

bump

Added ticket number to thread title
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Veteran
Posts: 12709
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #6131 - Can't save color

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Veteran
Posts: 12709
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #6131 - Can't save color

Post by Kunda1 »

Bump. Can someone fix this before v0.20 release?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Veteran
Posts: 12709
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #6131 - Can't save color

Post by Kunda1 »

jnxd wrote: pinged by pinger macro
@jnxd could you take a look at this? issue #6131

I can still reproduce. Notated on ticket.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
jnxd
Posts: 582
Joined: Mon Mar 30, 2015 2:30 pm

Re: Ticket #6131 - Can't save color

Post by jnxd »

Kunda1 wrote: Tue May 03, 2022 3:20 pm
jnxd wrote: pinged by pinger macro
@jnxd could you take a look at this? issue #6131

I can still reproduce. Notated on ticket.
I'll take a look. Thanks for tagging.
jnxd
Posts: 582
Joined: Mon Mar 30, 2015 2:30 pm

Re: Ticket #6131 - Can't save color

Post by jnxd »

Some notes:

1. The color data is not stored in the mesh file (its a .unv file)
2. If I right click and select "random color" on the mesh, only one triangle's color is updated.

All in all I am slightly suspicious of giving individual mesh entities different colors, since there can be millions and even billions of them. There may be some algorithmic uses for this, but I don't know of them. If we do want them to have individually defined colors it might also be useful to make a way to group them, which definitely has some uses for parallel computing.

Either way I suspect any color saving will come in "feature" territory rather than bug.
Last edited by jnxd on Sat May 07, 2022 8:47 am, edited 1 time in total.
User avatar
johnwang
Veteran
Posts: 1098
Joined: Sun Jan 27, 2019 12:41 am

Re: Ticket #6131 - Can't save color

Post by johnwang »

jnxd wrote: Fri May 06, 2022 9:09 pm
1. The color data is not stored in the mesh file (its a.unv file)
It is not a file yet. Here just trying to save the info into a file. A freecad file I think.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
jnxd
Posts: 582
Joined: Mon Mar 30, 2015 2:30 pm

Re: Ticket #6131 - Can't save color

Post by jnxd »

johnwang wrote: Sat May 07, 2022 1:12 am
jnxd wrote: Fri May 06, 2022 9:09 pm
1. The color data is not stored in the mesh file (its a.unv file)
It is not a file yet. Here just trying to save the info into a file. A freecad file I think.
The .FCStd file is a zip folder (just open with your archive software like winzip, or change the filename to .zip). In that you can see the .UNV file. This as far as I can tell comes from https://www.ceas3.uc.edu/sdrluff/, but I am yet to find out which structure it is.
Post Reply