Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
Change to use common function
Browse files Browse the repository at this point in the history
  • Loading branch information
jonvoxel8 committed Nov 30, 2015
1 parent 7852610 commit 86ea752
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/slice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86ea752

Please sign in to comment.