mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 07:10:25 -08:00
Updated Examples
This commit is contained in:
parent
78a73a9963
commit
f43dac38e2
56 changed files with 677 additions and 574 deletions
|
|
@ -25,8 +25,12 @@ license:
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
# [Code]
|
||||
|
||||
from math import pi, sin
|
||||
from build123d import *
|
||||
from ocp_vscode import show
|
||||
|
||||
with BuildPart() as art:
|
||||
slice_count = 10
|
||||
|
|
@ -39,5 +43,5 @@ with BuildPart() as art:
|
|||
|
||||
assert abs(art.part.volume - 1306.3405290344635) < 1e-3
|
||||
|
||||
if "show_object" in locals():
|
||||
show_object(art.part.wrapped, name="art")
|
||||
show(art, names=["art"])
|
||||
# [End]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue