It is not clear to me what you are doing.
Are you using https://github.com/JuliaIO/MeshIO.jl and 
https://github.com/JuliaGeometry/Meshes.jl ? (If not, start there).

On Tuesday, March 8, 2016 at 8:18:04 AM UTC-5, kleinsplash wrote:
>
> Hi,
>
> I want to just load a mesh and plot it along with a bunch of other data on 
> one plot. Just simple plotting. I have a way that's working but it's just 
> wrong: 
>
>
> mesh = load(obj)
>
> #mesh = HomogenousMesh(normals: 420xGeometryTypes.Normal{3,Float32},     
> vertices: 420xFixedSizeArrays.Point{3,Float32},     faces: 
> 840xGeometryTypes.Face{3,UInt32,-1}, )
> #typeof(mesh) = 
> GeometryTypes.HomogenousMesh{FixedSizeArrays.Point{3,Float32},GeometryTypes.Face{3,UInt32,-1},GeometryTypes.Normal{3,Float32},Void,Void,Void,Void}
>
> # inefficient way of finding the number
> x=0
> for v in mesh.vertices
>     x+=1
> end 
> # set up array with verticies 
> vert = Array{Float32}(x,3)
> # map to new array 
> for i = 1:x
>     vert[i,:] = [mesh.vertices[i][1], mesh.vertices[i][2], mesh.vertices[i
> ][3]]
> end 
> #plot with PyPlot
> plot_wireframe(vert[:,1], vert[:,2], vert[:,3])
>
> length(mesh.verticies) doesn't work, and I haven't figured out how to 
> instantiate an empty Array without having the dimensions. 
>
>
> Any help would be much appreciated. 
>
> Thx
>

Reply via email to