The Skung Cave commit
This commit is contained in:
@ -1,15 +1,18 @@
|
||||
import Foundation
|
||||
import OrderedCollections
|
||||
|
||||
|
||||
public struct ObjModel
|
||||
{
|
||||
public var positions = [Vec3f]()
|
||||
public var colours = [Vec3f]()
|
||||
public var normals = [Vec3f]()
|
||||
public var texCoords = [Vec2f]()
|
||||
public var objects = Dictionary<String, Object>()
|
||||
|
||||
public struct Object { public var faces = [Face]() }
|
||||
public var objects = OrderedDictionary<String, Object>()
|
||||
public var materials = Dictionary<String, ObjMaterial>()
|
||||
|
||||
public struct Object { public var meshes = [Mesh]() }
|
||||
public struct Mesh { public var material = "", faces = [Face]() }
|
||||
public struct Index { public let p: Int, n: Int, t: Int }
|
||||
public enum Face
|
||||
{
|
||||
|
Reference in New Issue
Block a user