コード例 #1
0
ファイル: SculptMesh.cs プロジェクト: VirtualReality/Universe
 public SculptMesh SculptMeshFromFile (string fileName, SculptType sculptType, int lod, bool viewerMode)
 {
     Bitmap bitmap = (Bitmap)Image.FromFile (fileName);
     SculptMesh sculptMesh = new SculptMesh (bitmap, sculptType, lod, viewerMode);
     bitmap.Dispose ();
     return sculptMesh;
 }
コード例 #2
0
        public SculptMesh SculptMeshFromFile(string fileName, SculptType sculptType, int lod, bool viewerMode)
        {
            Bitmap     bitmap     = (Bitmap)Image.FromFile(fileName);
            SculptMesh sculptMesh = new SculptMesh(bitmap, sculptType, lod, viewerMode);

            bitmap.Dispose();
            return(sculptMesh);
        }
コード例 #3
0
 public SculptMesh(SculptMesh sm)
 {
     coords      = new List <Coord> (sm.coords);
     faces       = new List <Face> (sm.faces);
     viewerFaces = new List <ViewerFace> (sm.viewerFaces);
     normals     = new List <Coord> (sm.normals);
     uvs         = new List <UVCoord> (sm.uvs);
 }
コード例 #4
0
ファイル: SculptMesh.cs プロジェクト: VirtualReality/Universe
 public SculptMesh (SculptMesh sm)
 {
     coords = new List<Coord> (sm.coords);
     faces = new List<Face> (sm.faces);
     viewerFaces = new List<ViewerFace> (sm.viewerFaces);
     normals = new List<Coord> (sm.normals);
     uvs = new List<UVCoord> (sm.uvs);
 }