Skip to content

Commit 20a081d

Browse files
Merge pull request #443 from robbievanleeuwen/cytriangle-docs
Update references to CyTriangle
2 parents 50d8d0d + 862cae3 commit 20a081d

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs/examples/geometry/advanced_geometry.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@
374374
"Here, the ``shapely`` representation may show as green, indicating a \"valid\" ``shapely`` geometry, or red as previous. This \n",
375375
"uncertainty is due to floating point errors originating from the rotation, potentially causing these two polygons no longer share an edge.\n",
376376
"\n",
377-
"If we try to mesh this geometry, we may actually cause a crash with ``triangle``, the meshing tool used behind-the-scenes by ``sectionproperties``."
377+
"If we try to mesh this geometry, we may actually cause a crash with ``CyTriangle``, the meshing tool used behind-the-scenes by ``sectionproperties``."
378378
]
379379
},
380380
{
@@ -461,7 +461,7 @@
461461
"source": [
462462
"## Creating Nested Geometries\n",
463463
"\n",
464-
"This example demonstrates creating nested geometries using two different approaches. These approaches reflect the differences between how ``shapely`` (geometry pre-processor) \"perceives\" geometry, how ``triangle`` (meshing tool) \"perceives\" geometry, and how the modeller might adapt their input style depending on the situation.\n",
464+
"This example demonstrates creating nested geometries using two different approaches. These approaches reflect the differences between how ``shapely`` (geometry pre-processor) \"perceives\" geometry, how ``CyTriangle`` (meshing tool) \"perceives\" geometry, and how the modeller might adapt their input style depending on the situation.\n",
465465
"\n",
466466
"The nested geometry we are trying to create consists of three concentric squares with a hole at it's centre.\n",
467467
"\n",
@@ -490,7 +490,7 @@
490490
"id": "42",
491491
"metadata": {},
492492
"source": [
493-
"- ``triangle`` does not have a concept of \"z-ordering\" so there is only a single plane which may have regions of different materials (specified with control points). When a hole is created in the plane, it \"punches\" through \"all\" polygons in the plane."
493+
"- ``CyTriangle`` does not have a concept of \"z-ordering\" so there is only a single plane which may have regions of different materials (specified with control points). When a hole is created in the plane, it \"punches\" through \"all\" polygons in the plane."
494494
]
495495
},
496496
{
@@ -548,7 +548,7 @@
548548
"id": "46",
549549
"metadata": {},
550550
"source": [
551-
"To create the nested geometry using the ``triangle`` interface, the code would be as follows:"
551+
"To create the nested geometry using the ``CyTriangle`` interface, the code would be as follows:"
552552
]
553553
},
554554
{
@@ -623,7 +623,7 @@
623623
"source": [
624624
"Notice how the ``shapely`` representation shows the squares overlapping each other instead of the squares fitting into the \"hole below\".\n",
625625
"\n",
626-
"Is one of these methods better than the other? Not necessarily. The ``shapely`` approach is suitable for manually creating the geometry, whereas the ``triangle`` approach is suitable for reading in serialised data from a file, for example.\n",
626+
"Is one of these methods better than the other? Not necessarily. The ``shapely`` approach is suitable for manually creating the geometry, whereas the ``CyTriangle`` approach is suitable for reading in serialised data from a file, for example.\n",
627627
"\n",
628628
"And, for either case, when the compound geometry is meshed, we see this:"
629629
]

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Installing ``sectionproperties``
1010
--------------------------------
1111

1212
``sectionproperties`` uses `shapely <https://github.com/shapely/shapely>`_ to prepare
13-
the cross-section geometry and `triangle <https://github.com/drufat/triangle>`_ to
13+
the cross-section geometry and `CyTriangle <https://github.com/m-clare/cytriangle>`_ to
1414
efficiently generate a conforming triangular mesh.
1515
`numpy <https://github.com/numpy/numpy>`_ and `scipy <https://github.com/scipy/scipy>`_
1616
are used to aid finite element computations, while

docs/user_guide/theory.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Mesh Generation
3535
---------------
3636

3737
The cross-section is meshed using quadratic superparametric triangular elements
38-
(``Tri6``) using the `triangle library <https://github.com/drufat/triangle>`__ for
38+
(``Tri6``) using the `CyTriangle library <https://github.com/m-clare/cytriangle>`__ for
3939
Python. Superparametric quadratic elements are defined as having straight edges and
40-
mid-nodes located at the mid-point between adjacent corner nodes. ``triangle``
40+
mid-nodes located at the mid-point between adjacent corner nodes. ``CyTriangle``
4141
implements `Triangle <https://www.cs.cmu.edu/~quake/triangle.html>`__, which is a two
4242
dimensional quality mesh generator and Delaunay triangulator written by Jonathan
4343
Shewchuk in C.

src/sectionproperties/analysis/section.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Section:
4949
material_groups (list[MaterialGroup]): List of
5050
class:`~sectionproperties.pre.pre.MaterialGroup` objects, which contain the
5151
finite elements and stress results (if applicable) for each defined material
52-
mesh (dict[str, Any]): Finite element mesh generated by ``triangle``
52+
mesh (dict[str, Any]): Finite element mesh generated by ``CyTriangle``
5353
num_nodes (int): Number of nodes in the finite element mesh
5454
elements (list[Tri6]): List of finite element objects describing the
5555
cross-section mesh

src/sectionproperties/pre/pre.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def create_mesh(
9090
) -> dict[str, list[list[float]] | list[list[int]]]:
9191
"""Generates a triangular mesh.
9292
93-
Creates a quadratic triangular mesh using the triangle module, which utilises the
94-
code ``Triangle``, by Jonathan Shewchuk.
93+
Creates a quadratic triangular mesh using the ``CyTriangle`` module, which utilises
94+
the code ``Triangle``, by Jonathan Shewchuk.
9595
9696
Args:
9797
points: List of points (``x``, ``y``) defining the vertices of the cross-section

0 commit comments

Comments
 (0)