diff --git a/docs/examples/b3d_profile.py b/docs/examples/b3d_profile.py new file mode 100644 index 0000000..d809821 --- /dev/null +++ b/docs/examples/b3d_profile.py @@ -0,0 +1,13 @@ +from build123d import Axis, Box, BuildPart + +from ocp_freecad_cam import Endmill, Job + +with BuildPart() as part: + Box(5, 5, 2) + +z_faces = part.faces().sort_by(Axis.Z) +top = z_faces[-1] +bottom = z_faces[0] + +tool = Endmill(diameter=1) +job = Job(top, part.solids()).profile(bottom, tool) diff --git a/docs/examples/examples.rst b/docs/examples/examples.rst index 862cb94..240be3b 100644 --- a/docs/examples/examples.rst +++ b/docs/examples/examples.rst @@ -13,7 +13,9 @@ Profiling .. literalinclude :: cq_profile.py :language: python - .. tab:: Build123d (todo) + .. tab:: Build123d + .. literalinclude :: b3d_profile.py + :language: python .. image:: images/cq_profile.png