Line data Source code
1 : include("obj/objbuffer.jl")
2 : include("obj/objmesh.jl")
3 : include("obj/readobj.jl")
4 : include("obj/writeobj.jl")
5 :
6 : """
7 : Delegate to [`readobjmesh`](@ref)
8 : """
9 6 : function readmesh(io::IO, ::OBJ, template::Mesh;
10 : position=Val(:x),
11 : normal=nothing,
12 : texcoord=Val(:u),
13 : color=Val(:c),
14 : real_type=Float64, index_type=Int32, color_type=RGBA,
15 : kargs...)
16 3 : readobjmesh(io, template;
17 : position, normal, texcoord, color,
18 : real_type, index_type, color_type,
19 : kargs...)
20 : end
21 :
22 : """
23 : Delegate to [`writeobjmesh`](@ref)
24 : """
25 6 : function writemesh(io::IO, ::OBJ, mesh::Mesh;
26 : position=Val(:x),
27 : normal=nothing,
28 : texcoord=Val(:u),
29 : color=Val(:c),
30 : format::String="%g",
31 : kargs...)
32 3 : writeobjmesh(io, mesh;
33 : position, normal, texcoord, color, format, kargs...)
34 : end
|