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

Commit

Permalink
Cylinder test with isapprox for win32 II
Browse files Browse the repository at this point in the history
  • Loading branch information
edljk committed Apr 13, 2017
1 parent 6299c90 commit 6d4fff2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions test/cylinder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@
Face(3,6,5)]
v1 = Float64[1,2,3]; v2 = Float64[4,5,6]; R = Float64(5)
s = Cylinder(Point(v1),Point(v2),R)
println(decompose(Point3{Float64},s,8))
@test decompose(Point3{Float64},s,8) == [Point{3,Float64}(4.535533905932738,-1.5355339059327373,3.0),
Point{3,Float64}(7.535533905932738,1.4644660940672627,6.0),
Point{3,Float64}(3.0412414523193148,4.041241452319315,-1.0824829046386295),
Point{3,Float64}(6.041241452319315,7.041241452319315,1.9175170953613705),
Point{3,Float64}(-2.535533905932737,5.535533905932738,2.9999999999999996),
Point{3,Float64}(0.46446609406726314,8.535533905932738,6.0),
Point{3,Float64}(-1.0412414523193152,-0.04124145231931431,7.0824829046386295),
Point{3,Float64}(1.9587585476806848,2.9587585476806857,10.08248290463863)]
@test decompose(Point3{Float64},s,8) == [Point{3,Float64}(4.535533905932738,-1.5355339059327373,3.0),
Point{3,Float64}(7.535533905932738,1.4644660940672627,6.0),
Point{3,Float64}(3.0412414523193148,4.041241452319315,-1.0824829046386295),
Point{3,Float64}(6.041241452319315,7.041241452319315,1.9175170953613705),
Point{3,Float64}(-2.535533905932737,5.535533905932738,2.9999999999999996),
Point{3,Float64}(0.46446609406726314,8.535533905932738,6.0),
Point{3,Float64}(-1.0412414523193152,-0.04124145231931431,7.0824829046386295),
Point{3,Float64}(1.9587585476806848,2.9587585476806857,10.08248290463863)]
@test decompose(Face{3,Int,0},s,6) == [Face(1,2,3),
Face(3,2,4),
Face(3,4,5),
Expand Down

0 comments on commit 6d4fff2

Please sign in to comment.