@@ -3245,9 +3245,10 @@ def union(
3245
3245
def __or__ (self : T , toUnion : Union ["Workplane" , Solid , Compound ]) -> T :
3246
3246
"""
3247
3247
Syntactic sugar for union.
3248
- Notice that `r = a | b` is equivalent to `r = a.union(b)` and `r = a + b`.
3248
+ Notice that :code: `r = a | b` is equivalent to :code: `r = a.union(b)` and :code: `r = a + b`.
3249
3249
3250
3250
Example::
3251
+
3251
3252
Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False))
3252
3253
Sphere = Workplane("XY").sphere(1)
3253
3254
result = Box | Sphere
@@ -3257,7 +3258,7 @@ def __or__(self: T, toUnion: Union["Workplane", Solid, Compound]) -> T:
3257
3258
def __add__ (self : T , toUnion : Union ["Workplane" , Solid , Compound ]) -> T :
3258
3259
"""
3259
3260
Syntactic sugar for union.
3260
- Notice that `r = a + b` is equivalent to `r = a.union(b)` and `r = a | b`.
3261
+ Notice that :code: `r = a + b` is equivalent to :code: `r = a.union(b)` and :code: `r = a | b`.
3261
3262
"""
3262
3263
return self .union (toUnion )
3263
3264
@@ -3296,7 +3297,7 @@ def cut(
3296
3297
def __sub__ (self : T , toUnion : Union ["Workplane" , Solid , Compound ]) -> T :
3297
3298
"""
3298
3299
Syntactic sugar for cut.
3299
- Notice that `r = a - b` is equivalent to `r = a.cut(b)`.
3300
+ Notice that :code: `r = a - b` is equivalent to :code: `r = a.cut(b)`.
3300
3301
3301
3302
Example::
3302
3303
@@ -3341,7 +3342,7 @@ def intersect(
3341
3342
def __and__ (self : T , toUnion : Union ["Workplane" , Solid , Compound ]) -> T :
3342
3343
"""
3343
3344
Syntactic sugar for intersect.
3344
- Notice that `r = a & b` is equivalent to `r = a.intersect(b)`.
3345
+ Notice that :code: `r = a & b` is equivalent to :code: `r = a.intersect(b)`.
3345
3346
3346
3347
Example::
3347
3348
0 commit comments