@cpinter this is very useful advice.
My only comment would be that @aleesdesigner probably needs to design something around the patient’s bone/tissue geometry so would need to export the file at step 2 in order to load it into Solidworks.
If I am interpreting your need correctly, my suggestion would be:
- Import DICOM data from a patient CT scan into Slicer.
- Export patient 3D volume to STL file.
- Import patient STL into Solidworks and create a 3D component in SolidWorks WITHOUT moving the location of the patient STL file in 3D space in Solidworks.
- Export 3D component from SolidWorks to STL file.
- Import the 3D component STL from Solidworks into Slicer. As long as you have not changed the coordinate system in Solidworks then it should appear in exactly the right place on the patient’s bone/tissue in slicer.
- Go to Segmentations module (not segment editor). Select the segmentation node which you used to originally segment the patient’s bone/tissue. Go to Import/Export models and labelmaps area and import the model into the segmentation node.
- Go to segment editor, click on you original patient bone/tissue segment and then click the logical operators effect. Select Add and add the solidworks model segment to the original segment. (Instead of using meshmixer)
- Go back to the segmentations module, click on the newly combined segment and using the same Import/Export area export the segment as a label map.
- Go to the volumes module and convert the new label map to a scalar volume.
- Go to data module and right click on the new volume and select export to DICOM.
- Open and review DICOM files in a piece of equipment designed to open and review standard CT/MRI scan DICOM files.
Note that the dicom file is just a completely black and white image. All the bone contrast is lost. You might have to do something a bit more fancy to combine your model volume on top of the original volume if you still want the original bone contrast but I am pretty sure it would be possible.
I tried this out and it worked well for me. Thanks to @cpinter for the extra tips about converting back to a scalar volume etc.