HelixToolkit を使用して、以下に示す 3D モデルを表示しようとしています。(次のスナップショットは SolidWorks から取得したものです。)
DiffuseMaterial
使用済みMaterial
とBackMaterial
私のブラシの色を透明色に設定しGeometryModel3D
ました。
Model3DGroup faceVisualEntity = ModelFaces.First(modelFace => modelFace.Content.GetName() == faceName).Content as Model3DGroup;
// Breaking the 3D-model down to the constituting mesh..
//
foreach (var child in faceVisualEntity.Children)
{
if (child is GeometryModel3D)
{
GeometryModel3D body = child as GeometryModel3D;
body.Material = new DiffuseMaterial(new SolidColorBrush("#40FF0000"));
body.BackMaterial = new DiffuseMaterial(new SolidColorBrush("#40FF0000"));
}
}
しかし、私が見ることができるのはHelixViewport3D
以下のようなものです。
箱の側面は透明に見えるのに、なぜ箱の中のパイプが見えないのだろう。パイプの壁の色も不透明な値に変更しましたが、まだ見えません。