{
"cells": [
{
"cell_type": "markdown",
"id": "24ec53d9",
"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": "fbf53a1d",
"metadata": {},
"source": [
"## Perform required imports\n",
"\n",
"Perform the required imports."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "1192a5f6",
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-16T10:59:15.885827Z",
"iopub.status.busy": "2025-04-16T10:59:15.885626Z",
"iopub.status.idle": "2025-04-16T10:59:17.473369Z",
"shell.execute_reply": "2025-04-16T10:59:17.472699Z"
}
},
"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": "b78c7b59",
"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": "55a6059c",
"metadata": {
"execution": {
"iopub.execute_input": "2025-04-16T10:59:17.475937Z",
"iopub.status.busy": "2025-04-16T10:59:17.475434Z",
"iopub.status.idle": "2025-04-16T10:59:18.142885Z",
"shell.execute_reply": "2025-04-16T10:59:18.142230Z"
}
},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "56f998acd558410d84f66366a6eaec76",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"EmbeddableWidget(value='"
}
},
"5813bab1af194696836a599c78e9d76d": {
"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
}
},
"a710d58439d643f9b35ade949cff7ef3": {
"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": ""
}
},
"ce5057660f0a426e96213be1902e3556": {
"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_ce8321a459654241a8380347c5dc811c",
"placeholder": "",
"style": "IPY_MODEL_a710d58439d643f9b35ade949cff7ef3",
"value": ""
}
},
"ce8321a459654241a8380347c5dc811c": {
"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
}
}
},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
"nbformat_minor": 5
}