8000 GitHub - alexneufeld/fidgetpy at dev
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

alexneufeld/fidgetpy

 
 

Repository files navigation

FidgetPy

Python bindings and high-level API for Fidget.

Usage

import fidgetpy as fp

# create a torus
p = fp.axes()
q = fp.Vec2(p.xy.length() - 0.6, p.z)
torus = q.length() - 0.15
# convert to a triangle mesh
mesh = torus.mesh(5)
print(f"torus mesh has {len(mesh.vertices)} vertices and {len(mesh.triangles)} faces")
# write to an stl file
with open("./torus.stl", "wb") as f:
    f.write(mesh.to_stl())

Refer to the examples folder for additonal usage details.

About

Python bingings for Fidget

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0