![]() |
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Classes | |
class | MaterialData |
Public Member Functions | |
OBJ () | |
OBJ (TextReader reader) | |
OBJ (TextReader reader, TextReader mtl_reader) | |
OBJ (string path) | |
OBJ (string path, string mtl_path) | |
void | Load () |
Public Attributes | |
string | objPath |
Properties | |
bool | hasMaterials [get] |
Private Member Functions | |
void | SetGeometryData (string data) |
float | cf (string v) |
int | ci (string v) |
void | SetMaterialData (string data) |
Material | GetMaterial (MaterialData md) |
Color | gc (string[] p) |
void | Build () |
Private Attributes | |
TextReader | sr |
TextReader | mtl_reader = null |
int | compteurvertice = 0 |
const string | O = "o" |
const string | G = "g" |
const string | V = "v" |
const string | VT = "vt" |
const string | VN = "vn" |
const string | F = "f" |
const string | MTL = "mtllib" |
const string | UML = "usemtl" |
const string | NML = "newmtl" |
const string | NS = "Ns" |
const string | KA = "Ka" |
const string | KD = "Kd" |
const string | KS = "Ks" |
const string | D = "d" |
const string | TR = "Tr" |
const string | ILLUM = "illum" |
const string | MAP_KD = "map_Kd" |
string | mtllib |
GeometryBuffer | buffer |
List< MaterialData > | materialData |
OBJ.OBJ | ( | TextReader | reader, |
TextReader | mtl_reader | ||
) |
Definition at line 130 of file OBJ.cs.
References mtl_reader.
|
private |
Definition at line 365 of file OBJ.cs.
References SurfaceManager.addSurface(), GetMaterial(), SurfaceManager.getParentGameObject(), UnityMolMain.getSurfaceManager(), hasMaterials, OBJ.MaterialData.name, GeometryBuffer.numObjects, GeometryBuffer.PopulateMeshes(), and SurfaceManager.surfaceInitialized.
Referenced by Load().
|
private |
Definition at line 264 of file OBJ.cs.
Referenced by gc(), SetGeometryData(), and SetMaterialData().
|
private |
Definition at line 268 of file OBJ.cs.
Referenced by SetGeometryData(), and SetMaterialData().
|
private |
Definition at line 361 of file OBJ.cs.
References cf().
Referenced by SetMaterialData().
|
private |
Definition at line 338 of file OBJ.cs.
References OBJ.MaterialData.diffuse, OBJ.MaterialData.diffuseTex, OBJ.MaterialData.illumType, and OBJ.MaterialData.shininess.
Referenced by Build().
void OBJ.Load | ( | ) |
Definition at line 149 of file OBJ.cs.
References Build(), OBJ.MaterialData.diffuseTex, OBJ.MaterialData.diffuseTexPath, hasMaterials, materialData, mtl_reader, SetGeometryData(), SetMaterialData(), and sr.
Referenced by ParsePDB.LoadOBJRequest(), and ParseData.ParsePDB.RequestPDB.LoadOBJWWW().
|
private |
Definition at line 189 of file OBJ.cs.
References cf(), ci(), GeometryBuffer.PushFace(), GeometryBuffer.PushGroup(), GeometryBuffer.PushMaterialName(), GeometryBuffer.PushNormal(), GeometryBuffer.PushObject(), GeometryBuffer.PushUV(), GeometryBuffer.PushVertex(), FaceIndices.vi, FaceIndices.vn, and FaceIndices.vu.
Referenced by Load().
|
private |
|
private |
|
private |
|
private |
|
getprivate |