Skip to content
Permalink
Browse files

Fixes for 0.7

  • Loading branch information...
furio committed Aug 11, 2018
1 parent 1746fcd commit 80982fe32232fd9f085fb293f113490acb133a4f
Showing with 5 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 src/NativeInterface/native_calls.jl
  3. +2 −2 src/Triangulate/triangulate.jl
  4. +1 −1 test/runtests.jl
@@ -55,6 +55,7 @@ dkms.conf
*.jl.cov
*.jl.*.cov
*.jl.mem
deps/*.log
deps/deps.jl
deps/usr/**/*.h
deps/usr/**/*.c
@@ -7,7 +7,7 @@ function ctriangulate(inTri::TriangulateIO, options::String)

ccall(
(:call_triangulate, libtriangle),
Void,
Nothing,
(Ptr{UInt8}, Ref{TriangulateIO}, Ref{TriangulateIO}, Ref{TriangulateIO}),
options, Ref(inTri), Ref(outTri), Ref(voronoiTri)
)
@@ -17,12 +17,12 @@ function constrained_triangulation(vertices::Array{Float64,2}, vertices_map::Arr
end

function constrained_triangulation(vertices::Array{Float64,2}, vertices_map::Array{Int64,1}, edges_list::Array{Int64,2}, edges_boundary::Array{Bool,1})
return constrained_triangulation(vertices, vertices_map, edges_list, edges_boundary, Array{Float64,2}(0,0))
return constrained_triangulation(vertices, vertices_map, edges_list, edges_boundary, Array{Float64,2}(undef, 0,0))
end

function constrained_triangulation(vertices::Array{Float64,2}, vertices_map::Array{Int64,1}, edges_list::Array{Int64,2}, edges_boundary::Array{Bool,1}, holes::Array{Float64,2})
local flatted_vertices = flat_vertices(vertices, vertices_map)
local vector_map = Vector{Cint}(undef, vertices_map)
local vector_map = Vector{Cint}(vertices_map)
local flatted_edges = flat_edges(edges_list)
local flat_triangle_list::Vector{Cdouble}

@@ -1,6 +1,6 @@
module TestTriangle

using Base.Test
using Test
using Triangle

include("test_Triangle_NativeInterface_trioptions.jl")

0 comments on commit 80982fe

Please sign in to comment.
You can’t perform that action at this time.