mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Updated Examples
This commit is contained in:
parent
78a73a9963
commit
f43dac38e2
56 changed files with 677 additions and 574 deletions
|
|
@ -27,7 +27,9 @@ license:
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
from build123d import *
|
||||
from ocp_vscode import show
|
||||
|
||||
|
||||
class Club(BaseSketchObject):
|
||||
|
|
@ -169,6 +171,4 @@ with BuildPart() as lid_builder:
|
|||
extrude(amount=-wall_t, mode=Mode.SUBTRACT)
|
||||
lid = lid_builder.part.moved(Location((0, 0, (wall_t + pocket_t) / 2)))
|
||||
|
||||
if "show_object" in locals():
|
||||
show_object(box, name="box")
|
||||
show_object(lid, name="lid", options={"alpha": 0.6})
|
||||
show(box, lid, names=["box", "lid"], alphas=[1.0, 0.6])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue