{ "cells": [ { "cell_type": "markdown", "id": "9c17250b", "metadata": {}, "source": [ "# Modeling: Chamfer edges and faces\n", "A chamfer is an angled cut on an edge. Chamfers can be created using the ``Modeler.geometry_commands`` module." ] }, { "cell_type": "markdown", "id": "6b9001ac", "metadata": {}, "source": [ "## Create a block\n", "Launch the modeler and create a block." ] }, { "cell_type": "code", "execution_count": 1, "id": "a36cad26", "metadata": { "execution": { "iopub.execute_input": "2025-04-16T10:59:10.381178Z", "iopub.status.busy": "2025-04-16T10:59:10.381002Z", "iopub.status.idle": "2025-04-16T10:59:12.047959Z", "shell.execute_reply": "2025-04-16T10:59:12.047309Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Ansys Geometry Modeler (0x7f4736be4bf0)\n", "\n", "Ansys Geometry Modeler Client (0x7f4734d7f2c0)\n", " Target: localhost:700\n", " Connection: Healthy\n" ] } ], "source": [ "from ansys.geometry.core import launch_modeler, Modeler\n", "\n", "modeler = launch_modeler()\n", "print(modeler)" ] }, { "cell_type": "code", "execution_count": 2, "id": "a9641128", "metadata": { "execution": { "iopub.execute_input": "2025-04-16T10:59:12.050268Z", "iopub.status.busy": "2025-04-16T10:59:12.049654Z", "iopub.status.idle": "2025-04-16T10:59:12.670860Z", "shell.execute_reply": "2025-04-16T10:59:12.670222Z" } }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "a486311d76c84f99bdd3c2f583ff8d2f", "version_major": 2, "version_minor": 0 }, "text/plain": [ "EmbeddableWidget(value='" } }, "6b716681bdaa499b9876b5b4bf65141f": { "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": "" } }, "71a2981bcca24ef78db147b53b6df253": { "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 } }, "93a68d7e287e47f5a112cbfbc81c2372": { "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_1d195198ef624c63b658d02ce353c32c", "placeholder": "​", "style": "IPY_MODEL_51c4edc9171f4a6f9e149a47f4ea5b8e", "value": "" } }, "a131129bd4c549458012c50bb8757672": { "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": "" } }, "a3baf3cf7bc148b8bdcf75805d8737ff": { "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": "" } }, "a486311d76c84f99bdd3c2f583ff8d2f": { "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_2d2fdba345884ca69b541844e5efc994", "placeholder": "​", "style": "IPY_MODEL_a131129bd4c549458012c50bb8757672", "value": "" } }, "ab6788da212048c58c2b2e8d5df10166": { "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 } }, "d556d117a0a74e1b9e8c19f932ba7e33": { "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_71a2981bcca24ef78db147b53b6df253", "placeholder": "​", "style": "IPY_MODEL_a3baf3cf7bc148b8bdcf75805d8737ff", "value": "" } } }, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }