How to make certain faces of a 3D Plot transparent?

1 vue (au cours des 30 derniers jours)
Hayden Bland
Hayden Bland le 19 Oct 2020
I have a model (shown below) that represents a ball lying within a parallel plate capacitor. I wish to be able to view solely the ball, but the colored surfaces of the parallel plate prevent me from seeing the accurate color shift in the ball. I was wondering if there was a way that I could make only the faces of the plates transparent so I could only see the ball.
I have attempted to make the node values for everything but the ball nodes NaN, but that prevents the 3D plot from being created in the first place. This is based off a model imported from MatLab, so the code inputted is as follows.
importGeometry(model,'One-Ball System.STL')
figure(1)
pdegplot(model,'FaceLabels','on','FaceAlpha',0.2)

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by