You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@testvalues(ns)[1:15] ≈ v_ns[16:30] # repeated via FaceView in ns
360
370
361
-
# Planar QuadFace with colinear edge
362
-
v = [Point{3,Float64}(0.0,0.0,0.0),Point{3,Float64}(1.0,0.0,0.0),Point{3,Float64}(2.0,0.0,0.0),Point{3,Float64}(2.0,1.0,0.0)]
371
+
# Planar QuadFace with colinear edge
372
+
v = [Point3d(0,0,0),Point3d(1,0,0),Point3d(2,0,0),Point3d(2,1,0)]
363
373
f = [QuadFace{Int}(1,2,3,4)]
364
374
n =normals(v,f)
365
375
@testall(n_i -> n_i ≈ [0.0,0.0,1.0], n)
366
376
367
-
# Planar NgonFace (5-sided) with colinear edge
368
-
v = [Point{3,Float64}(0.0,0.0,0.0),Point{3,Float64}(1.0,0.0,0.0),Point{3,Float64}(2.0,0.0,0.0),Point{3,Float64}(2.0,1.0,0.0),Point{3,Float64}(2.0,0.5,0.0)]
377
+
# Planar NgonFace (5-sided) with colinear edge
378
+
v = [Point3d(0,0,0),Point3d(1,0,0),Point3d(2,0,0),Point3d(2,1,0),Point3d(2,0.5,0)]
369
379
f = [NgonFace{5,Int}(1,2,3,4,5)]
370
380
n =normals(v,f)
371
381
@testall(n_i -> n_i ≈ [0.0,0.0,1.0], n)
372
382
373
-
# Non-planar NgonFace (6 sided), features equal up and down variations resulting in z-dir average face_normal
383
+
# Non-planar NgonFace (6 sided), features equal up and down variations resulting in z-dir average face_normal
374
384
t =range(0.0,2*pi-(2*pi)/6,6)
375
385
v = [Point{3,Float64}(cos(t[i]),sin(t[i]),iseven(i)) for i ineachindex(t)]
0 commit comments