{ "cells": [ { "cell_type": "markdown", "id": "3907e5ce", "metadata": {}, "source": [ "# Modeling: Extruded plate with cut operations\n", "\n", "As seen in the [Rectangular plate with multiple bodies](./plate_with_hole.mystnb) example,\n", "you can create a complex sketch with holes and extrude it to create a body. However, you can also\n", "perform cut operations on the extruded body to achieve similar results." ] }, { "cell_type": "markdown", "id": "ed1a735f", "metadata": {}, "source": [ "## Perform required imports\n", "\n", "Perform the required imports." ] }, { "cell_type": "code", "execution_count": 1, "id": "19a73f0c", "metadata": { "execution": { "iopub.execute_input": "2024-10-31T14:36:06.132351Z", "iopub.status.busy": "2024-10-31T14:36:06.132351Z", "iopub.status.idle": "2024-10-31T14:36:08.561971Z", "shell.execute_reply": "2024-10-31T14:36:08.561971Z" } }, "outputs": [], "source": [ "from pint import Quantity\n", "\n", "from ansys.geometry.core import launch_modeler\n", "from ansys.geometry.core.math import Plane, Point3D, Point2D\n", "from ansys.geometry.core.misc import UNITS\n", "from ansys.geometry.core.sketch import Sketch" ] }, { "cell_type": "markdown", "id": "153a32d3", "metadata": {}, "source": [ "## Define sketch profile without holes\n", "\n", "Create a sketch profile for the proposed design. The sketch is the same as the\n", "[Rectangular plate with multiple bodies](./plate_with_hole.mystnb) example, but without the holes.\n", "\n", "These holes are created by performing cut operations on the extruded body in the next steps." ] }, { "cell_type": "code", "execution_count": 2, "id": "4810b07c", "metadata": { "execution": { "iopub.execute_input": "2024-10-31T14:36:08.561971Z", "iopub.status.busy": "2024-10-31T14:36:08.561971Z", "iopub.status.idle": "2024-10-31T14:36:11.265811Z", "shell.execute_reply": "2024-10-31T14:36:11.265811Z" } }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "024cc49fc808485bb33d0bdc0e41a450", "version_major": 2, "version_minor": 0 }, "text/plain": [ "EmbeddableWidget(value='" } }, "117a4463867b4f0d815e2ded7b429c32": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "32a3d5197fb849f5a32085341349a274": { "model_module": "@jupyter-widgets/base", "model_module_version": "1.2.0", "model_name": "LayoutModel", "state": { "_model_module": "@jupyter-widgets/base", "_model_module_version": "1.2.0", "_model_name": "LayoutModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "LayoutView", "align_content": null, "align_items": null, "align_self": null, "border": null, "bottom": null, "display": null, "flex": null, "flex_flow": null, "grid_area": null, "grid_auto_columns": null, "grid_auto_flow": null, "grid_auto_rows": null, "grid_column": null, "grid_gap": null, "grid_row": null, "grid_template_areas": null, "grid_template_columns": null, "grid_template_rows": null, "height": null, "justify_content": null, "justify_items": null, "left": null, "margin": null, "max_height": null, "max_width": null, "min_height": null, "min_width": null, "object_fit": null, "object_position": null, "order": null, "overflow": null, "overflow_x": null, "overflow_y": null, "padding": null, "right": null, "top": null, "visibility": null, "width": null } }, "75989adc60e94becbd1dbf26779de75e": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "DescriptionStyleModel", "state": { "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "DescriptionStyleModel", "_view_count": null, "_view_module": "@jupyter-widgets/base", "_view_module_version": "1.2.0", "_view_name": "StyleView", "description_width": "" } }, "d2e7d3b669594625a74c07d15327301c": { "model_module": "@jupyter-widgets/controls", "model_module_version": "1.5.0", "model_name": "HTMLModel", "state": { "_dom_classes": [], "_model_module": "@jupyter-widgets/controls", "_model_module_version": "1.5.0", "_model_name": "HTMLModel", "_view_count": null, "_view_module": "@jupyter-widgets/controls", "_view_module_version": "1.5.0", "_view_name": "HTMLView", "description": "", "description_tooltip": null, "layout": "IPY_MODEL_32a3d5197fb849f5a32085341349a274", "placeholder": "​", "style": "IPY_MODEL_75989adc60e94becbd1dbf26779de75e", "value": "" } } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }