JuliaGeometry / GeometryBasics.jl

Basic Geometry Types
MIT License
164 stars 54 forks source link

FaceView docstring example does not work #81

Open jw3126 opened 4 years ago

jw3126 commented 4 years ago
julia> using GeometryBasics

julia> FaceView(rand(Point3f0, 10), TriangleFace[(1, 2, 3), (2, 4, 5)])
ERROR: MethodError: no method matching FaceView(::Array{Point{3,Float32},1}, ::Array{NgonFace{3,T} where T,1})

Is this an error in the docstring or a bug? Also whats the recommended way to construct this view?

jw3126 commented 4 years ago
julia> connect(rand(Point3f0, 10), TriangleFace{Int}[(1, 2, 3), (2, 4, 5)])

is a possibility to do this.