Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] - Material assignment by colour #227

Open
alexvalentine94 opened this issue Jun 14, 2024 · 4 comments
Open

[Feature request] - Material assignment by colour #227

alexvalentine94 opened this issue Jun 14, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@alexvalentine94
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Enabling different workflows whereby the CAD is coloured according to differnt materials.

Describe the solution you'd like

Currently the materials are assigned based on the naming in the structure tree. In the part of the code where the materials are assigned we can simply use the rgb values from the step files.

Describe alternatives you've considered

Keep as present.

Additional context

@KBGrammer
Copy link
Contributor

The step file standard allows for a material specification, including a density. Is this something that can be easily pulled from meta data?

@shimwell
Copy link
Collaborator

one option for this would be to add a script to the recently created https://github.com/GEOUNED-org/utilities repositories

@psauvan
Copy link
Member

psauvan commented Jun 18, 2024

The step file standard allows for a material specification, including a density. Is this something that can be easily pulled from meta data?

What do you mean by meta data?
The information on the density scaling factor is available in the output file "(geometryName)_Summary.txt". In this file the density value is the nominal density written in the materials.txt file multiplied by the scaling factor introduced in the CAD file for each solid.

@KBGrammer
Copy link
Contributor

The step file standard supports a material name and density for each part, which I thought that GEOUNED doesn't currently use. The problem is that it's often omitted by CAD software during export. I don't have an example file that contains that information to play around with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants