From 86ea7521e9dd58ffc2690450a639d9a256d1ae16 Mon Sep 17 00:00:00 2001 From: Jonathan Tran Date: Mon, 30 Nov 2015 18:32:44 -0500 Subject: [PATCH] Change to use common function --- src/slice.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/slice.jl b/src/slice.jl index 9238f25..5401998 100644 --- a/src/slice.jl +++ b/src/slice.jl @@ -10,9 +10,7 @@ function Base.slice{VT<:AbstractFloat,FT<:Integer,O}(mesh::AbstractMesh{Point{3, slice = Simplex{2,Point{2,VT}}[] for face in mesh.faces - v1 = mesh.vertices[face[1]-O] - v2 = mesh.vertices[face[2]-O] - v3 = mesh.vertices[face[3]-O] + v1,v2,v3 = mesh.vertices[face] zmax = max(v1[3], v2[3], v3[3]) zmin = min(v1[3], v2[3], v3[3]) if height > zmax