Skip to content

Commit

Permalink
one more isone(-s)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed Mar 7, 2024
1 parent 41a8352 commit 4fc72bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1698,7 +1698,6 @@ latter, triangles are formed by slashing the quads.
"""
function loftlinear(V1,V2;num_steps=2,close_loop=true,face_type=:tri)


num_loop = length(V1)
T = eltype(V1)
# Linearly blending points from first to last
Expand Down Expand Up @@ -2042,7 +2041,7 @@ function extrudecurve(V1,d; s=1, n=Point{3, Float64}(0.0,0.0,1.0),num_steps=miss
end
if isone(s) # Allong n from V1
p = d.*n
elseif s==-1 # Against n from V1
elseif isone(-s) # Against n from V1
p = -d.*n
elseif iszero(s) # Extrude both ways from V1
p = d.*n
Expand Down

0 comments on commit 4fc72bf

Please sign in to comment.