File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ def _isCoPlanar(f0, f1):
570
570
return False
571
571
572
572
# test if p1 is on the plane of f0 (offset of planes)
573
- return abs (n0 .dot (p0 .sub (p1 )) < self .ctx .tolerance )
573
+ return abs (n0 .dot (p0 .sub (p1 ))) < self .ctx .tolerance
574
574
575
575
def _computeXdir (normal ):
576
576
"""
Original file line number Diff line number Diff line change @@ -1613,6 +1613,10 @@ def testMultiFaceWorkplane(self):
1613
1613
self .assertAlmostEqual (o .y , 0.0 , 3 )
1614
1614
self .assertAlmostEqual (o .z , 0.5 , 3 )
1615
1615
1616
+ # Test creation with non-co-planar faces fails
1617
+ with raises (ValueError ):
1618
+ w = s .faces ("+Y" ).workplane ()
1619
+
1616
1620
def testTriangularPrism (self ):
1617
1621
s = Workplane ("XY" ).lineTo (1 , 0 ).lineTo (1 , 1 ).close ().extrude (0.2 )
1618
1622
self .saveModel (s )
You can’t perform that action at this time.
0 commit comments