Adding mini_nuke to docs

This commit is contained in:
gumyr 2024-04-03 15:27:47 -04:00
parent dbaa68b31a
commit 8865981b1a
4 changed files with 32 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

View file

@ -64,6 +64,11 @@ Most of the examples show the builder and algebra modes.
:link: maker_coin :link: maker_coin
:link-type: ref :link-type: ref
.. grid-item-card:: Mini Nuke |Builder|
:img-top: assets/examples/mini_nuke.png
:link: mini_nuke
:link-type: ref
.. grid-item-card:: Multi-Sketch Loft |Builder| |Algebra| .. grid-item-card:: Multi-Sketch Loft |Builder| |Algebra|
:img-top: assets/examples/loft.png :img-top: assets/examples/loft.png
:link: multi_sketch_loft :link: multi_sketch_loft
@ -363,6 +368,31 @@ YouTube channel. There are two key features:
:start-after: [Code] :start-after: [Code]
:end-before: [End] :end-before: [End]
.. _mini_nuke:
Mini Nuke
---------
.. image:: assets/examples/mini_nuke.png
:align: center
This example demonstrates the creation of a container featuring a screw top designed
after the "Mini Nuke" from the Fallout video game series. It showcases the process
of constructing intricate non-planar objects and leverages the bd_warehouse thread
and fastener library to create customize threads and Clearance Holes to match a variety
of fasteners. The holes are positioned in locations that do not align with any primary
axes, illustrating advanced techniques in 3D object design.
.. dropdown:: Gallery
.. image:: assets/examples/mini_nuke_cutaway.png
:align: center
.. dropdown:: |Builder| Reference Implementation (Builder Mode)
.. literalinclude:: ../examples/mini_nuke.py
:start-after: [Code]
:end-before: [End]
.. _multi_sketch_loft: .. _multi_sketch_loft:
Multi-Sketch Loft Multi-Sketch Loft

View file

@ -31,6 +31,7 @@ license:
""" """
# [Code]
import copy import copy
import random import random
from airfoils import Airfoil from airfoils import Airfoil
@ -364,3 +365,4 @@ if MULTIPART_FINS:
nuke_assembly = Compound(children=components) nuke_assembly = Compound(children=components)
show(nuke_assembly, center_grid=True, names=["nuke_assembly"]) show(nuke_assembly, center_grid=True, names=["nuke_assembly"])
# [End]