{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import cadquery as cq\n", "\n", "# 1. Establishes a workplane that an object can be built on.\n", "# 1a. Uses the named plane orientation \"front\" to define the workplane, meaning\n", "# that the positive Z direction is \"up\", and the negative Z direction\n", "# is \"down\".\n", "# 2. Creates a 3D box that will have a hole placed in it later.\n", "result = cq.Workplane(\"front\").box(3, 2, 0.5)\n", "\n", "# 3. Select the lower left vertex and make a workplane.\n", "# 3a. The top-most Z face is selected using the >Z selector.\n", "# 3b. The lower-left vertex of the faces is selected with the Z\").vertices(\"