simple mesh

This commit is contained in:
Lars Brubaker 2019-01-11 16:49:34 -08:00
parent d095171a01
commit e1ce3419f2
55 changed files with 713 additions and 698 deletions

View file

@ -157,7 +157,7 @@ namespace MatterHackers.MatterControl.DesignTools
{
if (!string.IsNullOrWhiteSpace(this.AssetPath)
// TODO: Remove this hack needed to work around Persistable = false
&& (base.Mesh == null || base.Mesh.FaceTexture.Count <= 0))
&& (base.Mesh == null || base.Mesh.FaceTextures.Count <= 0))
{
using (this.RebuildLock())
{
@ -186,7 +186,7 @@ namespace MatterHackers.MatterControl.DesignTools
double height = ScaleMmPerPixels * imageBuffer.Height;
Mesh textureMesh = PlatonicSolids.CreateCube(width, height, 0.2);
MeshHelper.PlaceTextureOnFace(textureMesh.Faces[0], imageBuffer);
textureMesh.PlaceTextureOnFace(0, imageBuffer);
return textureMesh;
}