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

18 次查看(过去 30 天)
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)

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometry and Mesh 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by