Repository navigation
Enable multi-color output for 3D printed protein structures - #4877
Conversation
| // | ||
| // Use the colorSel variable to restrict rendered objects by assigned color, | ||
| and thereby separate STL files for a multi-material printer. | ||
|
|
There was a problem hiding this comment.
Leading // to match local style
|
Can you suggest another person to review this if @JoaoRodrigues is unavailable? |
|
Does anyone in the review community have any knowledge of 3d printing? Not entirely clear if @JoaoRodrigues has background here either. |
JoaoRodrigues
left a comment
There was a problem hiding this comment.
I missed this review, sorry Rob. I did use to 3D print models, but never CPK so I'm not a big help here. Colors usually worked fine for me in STL. I assume you've tested this? Otherwise one way is to e.g. upload an STL file to the Shapeways platform and see if the colors show up. I guess you could also use Meshlab or some other open-source tool, but in my experience uploading to a printing service and previewing was the surest way to know things were working..
Rebase failed
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4877 +/- ##
==========================================
+ Coverage 85.44% 86.33% +0.89%
==========================================
Files 282 282
Lines 59443 59443
==========================================
+ Hits 50789 51323 +534
+ Misses 8654 8120 -534 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'll rebase this manually... |
d66f461 to
0ec0872
Compare
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runpre-commitlocally, and understand that continuous integration checks will be used to
confirm the Biopython unit tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)
This supplies some small modifications to the SCADIO OpenSCAD output code file to enable selecting
portions of a model based on assigned color. The impact is that each portion can be
saved to a separate file, which can be recombined by a "slicer" application that assigns a different
3D printer extruder to each file. The result of this that the structure can be printed using as many
colors as the available printer will support.
There's no obvious testing as the change is not in Python code, however under the previous version
the structure in the attached screenshot could only be rendered in a single color.