Skip to content

Commit c00e7be

Browse files
committed
Merge branch 'feat/chamfer' of https://github.com/ansys/pyansys-geometry into feat/chamfer
2 parents 7b4c94c + 359cf8e commit c00e7be

File tree

18 files changed

+139
-150
lines changed

18 files changed

+139
-150
lines changed

.github/workflows/docker_cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
with:
2727
package-name: 'geometry'
2828
token: ${{ secrets.GITHUB_TOKEN }}
29-
tags-kept: 'windows-latest, windows-latest-unstable, linux-latest, linux-latest-unstable, 24.1, 24.2, 25.1, windows-24.1, windows-24.2, windows-25.1, linux-24.1, linux-24.2, linux-25.1'
29+
tags-kept: 'windows-latest, windows-latest-unstable, windows-coreservice, windows-coreservice-unstable, linux-latest, linux-latest-unstable, 24.1, 24.2, 25.1, windows-24.1, windows-24.2, windows-25.1, linux-24.1, linux-24.2, linux-25.1'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude: "tests/integration/files"
77
repos:
88

99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.6.9
10+
rev: v0.7.0
1111
hooks:
1212
- id: ruff
1313
- id: ruff-format
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bump ansys-sphinx-theme[autoapi] from 1.1.5 to 1.1.6 in the docs-deps group
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bump trame-vtk from 2.8.10 to 2.8.11

doc/changelog.d/1496.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
performance enhancements to plotter
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
allowing new tags for Windows Core Service
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add example file to download in the test
-59.3 KB
Binary file not shown.

doc/source/examples/01_getting_started/05_plotter_picker.mystnb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ the ``plot()`` method.
176176

177177
In the following cell we will create a new design and plot a prism and a cylinder in different colors.
178178

179-
```python
179+
```{code-cell} ipython
180180
design = modeler.create_design("MultiColors")
181181

182182
# Create a sketch of a box
@@ -193,8 +193,6 @@ design.extrude_sketch("Cylinder", sketch_circle, 50 * UNITS.m)
193193
design.plot(multi_colors=True)
194194
```
195195

196-
![](../../_static/assets/multicolors.png)
197-
198196
## Clip objects
199197

200198
You can clip any object represented in the plotter by defining a ``Plane`` object that

doc/source/examples/03_modeling/tessellation_usage.mystnb

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,18 @@ combines all the faces of each individual body into a single dataset without
7676
separating faces.
7777

7878
```{code-cell} ipython3
79-
dataset = comp.tessellate(merge_bodies=True)
79+
dataset = comp.tessellate()
8080
dataset
8181
```
82-
If you want to tessellate the body and return the geometry as triangles, single body tessellation
83-
is possible. If you want to merge the individual faces of the tessellation, enable the
84-
``merge`` option so that the body is rendered into a single mesh. This preserves the number of
85-
triangles and only merges the topology.
8682

87-
**Code without merging the body**
83+
Single body tessellation is possible. In that case, users can request the body-level tessellation
84+
method to tessellate the body and merge all the faces into a single dataset.
8885

8986
```{code-cell} ipython3
90-
dataset = body.tessellate()
87+
dataset = comp.bodies[0].tessellate()
9188
dataset
9289
```
93-
**Code with merging the body**
9490

95-
```{code-cell} ipython3
96-
mesh = body.tessellate(merge=True)
97-
mesh
98-
```
9991
## Plot design
10092

10193
Plot the design.

0 commit comments

Comments
 (0)