Change docs examples
This commit is contained in:
@ -2974,8 +2974,9 @@ class Workplane(object):
|
|||||||
Syntactic sugar for union.
|
Syntactic sugar for union.
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False))
|
||||||
r = box(1, 1, 1) + sphere(1)
|
Sphere = Workplane("XY").sphere(1)
|
||||||
|
result = Box + Sphere
|
||||||
"""
|
"""
|
||||||
return self.union(toUnion)
|
return self.union(toUnion)
|
||||||
|
|
||||||
@ -3020,7 +3021,9 @@ class Workplane(object):
|
|||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
r = box(1, 1, 1) - sphere(1)
|
Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False))
|
||||||
|
Sphere = Workplane("XY").sphere(1)
|
||||||
|
result = Box - Sphere
|
||||||
"""
|
"""
|
||||||
return self.cut(toUnion)
|
return self.cut(toUnion)
|
||||||
|
|
||||||
@ -3065,7 +3068,9 @@ class Workplane(object):
|
|||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
r = box(1, 1, 1) * sphere(1)
|
Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False))
|
||||||
|
Sphere = Workplane("XY").sphere(1)
|
||||||
|
result = Box * Sphere
|
||||||
"""
|
"""
|
||||||
return self.intersect(toUnion)
|
return self.intersect(toUnion)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user