This is the best GLVisualize can do for you right meow:

<https://lh3.googleusercontent.com/-F3zwOjXImQc/VlRP0Xt6P2I/AAAAAAAALMs/5hcFMkQdGiU/s1600/Selection_023.png>


You get this with:


using GLVisualize, FileIO, Colors, GeometryTypes, GLAbstractionwindow, 
renderloop = glscreen()obj = load("cat.obj")obj_vizz = visualize(obj, color=
RGBA{Float32}(0,0,0,0.1))point3d_vizz = visualize(vertices(obj), scale=
Vec3f0(0.01))axis = visualize(boundingbox(point3d_vizz).value, :grid)view
(obj_vizz)view(point3d_vizz)view(axis)renderloop()
A lot of improvements are on its way (like better camera, more consistent 
API and better axis), but this is still not out yet.

I'm not sure what would be possible with a combination of MeshIO and e.g. 
PyPlot, but I guess it could be better axis/labels + print quality, while 
being slower ;)
You quite likely need to do something like:

points = vertices(obj) #GeometryTypes exports vertices(...)
x,y,z = [p[1] for p in points], map(p->p[2], points), map(last, points) # 
three different ways of getting the x,y,z coordinates

and then go from there with the PyPlot/matplotlib docs.


Am Montag, 9. November 2015 15:55:57 UTC+1 schrieb kleinsplash:


Am Montag, 9. November 2015 15:55:57 UTC+1 schrieb kleinsplash:
>
> Hi,
>
> I am new at this - but have decided that Julia is my language of choice. 
> So I begin silly question stage: 
>
> Could someone talk me through how to access and display an .obj file? 
>
> I have gotten so far:
>
> using Meshes
> using PyPlot
> using FileIO
> using MeshIO
>
> obj = load(filename)
> vts = obj.vertices 
>
>
> Which gives me: 
>
> 502-element Array{FixedSizeArrays.Point{3,Float32},1}:
>
>
>
> One example point being: 
>
> Point(0.00117,-0.02631,0.03907)    
>
>                                                                               
>  
>
>   
>
> How do I access the verticies to use them with plot? 
>
> -A
>
>
>

Reply via email to