-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add materials property to Bonds and Isosurface #222
base: main
Are you sure you want to change the base?
Add materials property to Bonds and Isosurface #222
Conversation
Just a few further comments to discuss:
|
…gs to set_material
Hi @elinscott , Thanks for the PR. In Limited SupportThe simplest solution would be to add some common material parameters, such as Benefits:
Full SupportFull support would involve users interacting directly with the materials. Users would draw the objects (bond, isosurface), then create and set the materials to these objects. This approach would require refactoring the code to handle this interaction. For now, I recommend the Limited Support approach. Responses to Your Comments:
There are no materials data directly in
You can set the
All classes share the same pattern and have a I hope this answers your concerns. |
Hi @superstar54 -- thanks for the feedback. However, I don't actually think that these objects follow a similar design. For this reason it was possible for me to add
|
I see. I would suggest to merge your PR first, and then we can try to refactor the code later. |
This PR starts to address #211 by making
materials
a settable property of theBond
andIsosurface
classes.The syntax is:
for
Bond
andfor
Isosurface
.If you only want to set the material of a particular bond type you can use
set_material()
.To do
atoms.isosurface.draw()
has not been called beforeba.isosurface.materials = ...
set_material
for bonds more flexible (i.e. allow user to set for a particular order, etc)ba.bond.materials
rather thanba.bond.settings.materials