Example #1
0
 public ArtObjectMaterializer(TrixelCluster missingTrixels, List <TrixelSurface> surfaces, Vector3 size)
 {
     this.missingTrixels = missingTrixels;
     ServiceHelper.InjectServices((object)this);
     this.added    = new HashSet <TrixelFace>();
     this.removed  = new HashSet <TrixelFace>();
     this.surfaces = surfaces ?? new List <TrixelSurface>();
     this.size     = size;
 }
Example #2
0
 public ArtObjectMaterializer(ArtObject artObject)
 {
     this.artObject = artObject;
     ServiceHelper.InjectServices((object)this);
     artObject.Materializer = this;
     this.size = artObject.Size;
     if (artObject.MissingTrixels == null)
     {
         return;
     }
     this.added          = new HashSet <TrixelFace>();
     this.removed        = new HashSet <TrixelFace>();
     this.missingTrixels = artObject.MissingTrixels;
     if (artObject.TrixelSurfaces == null)
     {
         artObject.TrixelSurfaces = this.surfaces = new List <TrixelSurface>();
     }
     else
     {
         this.surfaces = artObject.TrixelSurfaces;
     }
 }