var searchIndex = {}; searchIndex["obj"] = {"doc":"[Wavefront OBJ][obj] parser for Rust. It handles both `.obj` and `.mtl` formats. [GitHub][]","items":[[3,"Obj","obj","3D model object loaded from wavefront OBJ.",null,null],[12,"name","","Object's name.",0,null],[12,"vertices","","Vertex buffer.",0,null],[12,"indices","","Index buffer.",0,null],[3,"Vertex","","Vertex data type of `Obj` which contains position and normal data of a vertex.",null,null],[12,"position","","Position vector of a vertex.",1,null],[12,"normal","","Normal vertor of a vertex.",1,null],[3,"Position","","Vertex data type of `Obj` which contains only position data of a vertex.",null,null],[12,"position","","Position vector of a vertex.",2,null],[4,"ObjError","","The error type for loading of the `obj` file.",null,null],[13,"Io","","IO error has been occurred during opening the `obj` file.",3,null],[13,"ParseInt","","Tried to parse integer frome the `obj` file, but failed.",3,null],[13,"ParseFloat","","Tried to parse floating point number frome the `obj` file, but failed.",3,null],[13,"Load","","`LoadError` has been occurred during parseing the `obj` file.",3,null],[5,"load_obj","","Load a wavefront OBJ file into Rust & OpenGL friendly format.",null,{"inputs":[{"name":"t"}],"output":{"name":"objresult"}}],[11,"fmt","","",3,null],[11,"fmt","","",3,null],[11,"from","","",3,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[11,"from","","",3,{"inputs":[{"name":"parseinterror"}],"output":{"name":"self"}}],[11,"from","","",3,{"inputs":[{"name":"parsefloaterror"}],"output":{"name":"self"}}],[11,"from","","",3,{"inputs":[{"name":"loaderror"}],"output":{"name":"self"}}],[0,"raw","","Provides low-level API for Wavefront OBJ format.",null,null],[0,"object","obj::raw","Parses `.obj` format which stores 3D mesh data",null,null],[3,"RawObj","obj::raw::object","Low-level Rust binding for `.obj` format.",null,null],[12,"name","","Name of the object.",4,null],[12,"material_libraries","","`.mtl` files which required by this object.",4,null],[12,"positions","","Position vectors of each vertex.",4,null],[12,"tex_coords","","Texture coordinates of each vertex.",4,null],[12,"normals","","Normal vectors of each vertex.",4,null],[12,"param_vertices","","Parametric vertices.",4,null],[12,"points","","Points which stores the index data of position vectors.",4,null],[12,"lines","","Lines which store the index data of vectors.",4,null],[12,"polygons","","Polygons which store the index data of vectors.",4,null],[12,"groups","","Groups of multiple geometries.",4,null],[12,"meshes","","Geometries which consist in a same material.",4,null],[12,"smoothing_groups","","Smoothing groups.",4,null],[12,"merging_groups","","Merging groups.",4,null],[3,"Group","","A group which contains ranges of points, lines and polygons",null,null],[12,"points","","Multiple range of points",5,null],[12,"lines","","Multiple range of lines",5,null],[12,"polygons","","Multiple range of polygons",5,null],[3,"Range","","A struct which represent `[start, end)` range.",null,null],[12,"start","","The lower bound of the range (inclusive).",6,null],[12,"end","","The upper bound of the range (exclusive).",6,null],[4,"Line","","The `Line` type.",null,null],[13,"P","","A series of line segments which contain only the position data of each vertex",7,null],[13,"PT","","A series of line segments which contain both position and texture coordinate\ndata of each vertex",7,null],[4,"Polygon","","The `Polygon` type.",null,null],[13,"P","","A polygon which contains only the position data of each vertex.",8,null],[13,"PT","","A polygon which contains both position and texture coordinate data of each vertex.",8,null],[13,"PN","","A polygon which contains both position and normal data of each vertex.",8,null],[13,"PTN","","A polygon which contains all position, texture coordinate and normal data of each vertex.",8,null],[5,"parse_obj","","Parses a wavefront `.obj` format.",null,{"inputs":[{"name":"t"}],"output":{"name":"objresult"}}],[6,"Point","","The `Point` type which stores the index of the position vector.",null,null],[11,"fmt","","",7,null],[11,"clone","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"fmt","","",8,null],[11,"clone","","",8,null],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[0,"material","obj::raw","Parses `.mtl` format which stores material data",null,null],[3,"RawMtl","obj::raw::material","Low-level Rust binding for `.mtl` format *(incomplete)*.",null,null],[5,"parse_mtl","","Parses a wavefront `.mtl` format *(incomplete)*",null,{"inputs":[{"name":"t"}],"output":{"name":"objresult"}}],[11,"clone","","",9,null],[6,"ObjResult","obj","A type for results generated by `load_obj` and `load_mtl` where the `Err` type is hard-wired to\n`ObjError`",null,null],[8,"FromRawVertex","","Conversion from `RawObj`'s raw data.",null,null],[10,"process","","Build vertex and index buffer from raw object data.",10,{"inputs":[{"name":"vec"},{"name":"vec"},{"name":"vec"}],"output":{"name":"objresult"}}],[11,"decode","","",0,{"inputs":[{"name":"__dv"}],"output":{"name":"result"}}],[11,"encode","","",0,null],[11,"new","","Create `Obj` from `RawObj` object.",0,{"inputs":[{"name":"rawobj"}],"output":{"name":"objresult"}}],[11,"decode","","",1,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"encode","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"process","","",1,{"inputs":[{"name":"vec"},{"name":"vec"},{"name":"vec"}],"output":{"name":"objresult"}}],[11,"decode","","",2,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"encode","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"process","","",2,{"inputs":[{"name":"vec"},{"name":"vec"},{"name":"vec"}],"output":{"name":"objresult"}}]],"paths":[[3,"Obj"],[3,"Vertex"],[3,"Position"],[4,"ObjError"],[3,"RawObj"],[3,"Group"],[3,"Range"],[4,"Line"],[4,"Polygon"],[3,"RawMtl"],[8,"FromRawVertex"]]}; initSearch(searchIndex);