Skip to content

Commit

Permalink
make eps a keyword arg
Browse files Browse the repository at this point in the history
  • Loading branch information
sjkelly committed Jul 16, 2014
1 parent 575c85f commit a0a8722
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/MeshSlicer.jl
Expand Up @@ -70,8 +70,7 @@ end
# -------------------- --------------------------------------------------
# `Array{MeshSlice}` An `Array` of `MeshSlice` at the requested height.
# ----------------------------------------------------------------------------
function MeshSlice(mesh::PolygonMesh, heights::Array{Float64})
eps = 0.0001
function MeshSlice(mesh::PolygonMesh, heights::Array{Float64}, eps=0.00001)
slices = [LineSegment[] for i = 1:length(heights)]
bounds = [Bounds2() for i = 1:length(heights)]

Expand Down Expand Up @@ -344,7 +343,6 @@ end
# `LineSegment` A `LineSegment` at the requested height in the slice plane.
# ----------------------------------------------------------------------------
function LineSegment(f::Face, z::Float64)

p0 = f.vertices[1]
p1 = f.vertices[2]
p2 = f.vertices[3]
Expand Down

0 comments on commit a0a8722

Please sign in to comment.