Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 19, 2022
1 parent 2acad9e commit 66f0065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions python/taichi/lang/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def build(self, metadata: MeshMetadata):
Args:
metadata : model meta data.
Returns:
The mesh instance class.
"""
Expand Down Expand Up @@ -483,8 +483,8 @@ def build(self, metadata: MeshMetadata):
class Mesh:
"""The Mesh type class.
ti.Mesh offers first-class support for triangular/tetrahedral meshes
and allows efficient computation on these irregular data structures,
ti.Mesh offers first-class support for triangular/tetrahedral meshes
and allows efficient computation on these irregular data structures,
only available for backends supporting `ti.extension.mesh`.
Related to https://github.com/taichi-dev/taichi/issues/3608
Expand Down
6 changes: 3 additions & 3 deletions python/taichi/lang/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,17 +492,17 @@ def block_local(*args):


def mesh_local(*args):
"""Hints the compiler to cache the mesh attributes
"""Hints the compiler to cache the mesh attributes
and to enable the mesh BLS optimization,
only available for backends supporting `ti.extension.mesh` and to use with mesh-for loop.
Related to https://github.com/taichi-dev/taichi/issues/3608
Args:
*args (List[Attribute]): A list of mesh attributes or fields accessed as attributes.
Examples::
# instantiate model
mesh_builder = ti.Mesh.tri()
mesh_builder.verts.place({
Expand Down

0 comments on commit 66f0065

Please sign in to comment.