Skip to content

Commit b9f82a5

Browse files
authored
Merge pull request #2169 from mikedh/fix/thint
Release: Hint Fixes
2 parents 3966450 + d1cdc44 commit b9f82a5

58 files changed

Lines changed: 97 additions & 22 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/sinter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A demo for packing a volume with multiple meshes as you
33
might for a powder volume in a sintered printing process.
44
"""
5+
56
import os
67

78
import numpy as np

examples/widget.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def create_scene():
6767

6868

6969
class Application:
70-
7170
"""
7271
Example application that includes moving camera, scene and image update.
7372
"""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = ["setuptools >= 61.0", "wheel"]
55
[project]
66
name = "trimesh"
77
requires-python = ">=3.7"
8-
version = "4.1.6"
8+
version = "4.1.7"
99
authors = [{name = "Michael Dawson-Haggerty", email = "mikedh@kerfed.com"}]
1010
license = {file = "LICENSE.md"}
1111
description = "Import, export, process, analyze and view triangular meshes."

tests/corpus.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Test loaders against large corpuses of test data from github:
66
will download more than a gigabyte to your home directory!
77
"""
8+
89
import numpy as np
910
from pyinstrument import Profiler
1011

tests/generic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Module which contains most imports and data unit tests
44
might need, to reduce the amount of boilerplate.
55
"""
6+
67
import os
78
import sys
89
import json

tests/test_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Test the base trimesh.Trimesh object.
33
"""
4+
45
try:
56
from . import generic as g
67
except BaseException:

tests/test_copy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Copy meshes and make sure they do what we expect.
33
"""
4+
45
try:
56
from . import generic as g
67
except BaseException:

tests/test_geom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Load all the meshes we can get our hands on and check things, stuff.
33
"""
4+
45
try:
56
from . import generic as g
67
except BaseException:

tests/test_gmsh.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ def test_generate(self):
1919
result = g.trimesh.interfaces.gmsh.to_volume(m)
2020
assert len(result) > 0
2121

22+
def test_load(self):
23+
if gmsh is None:
24+
return
25+
r = g.trimesh.interfaces.gmsh.load_gmsh(
26+
g.os.path.join(g.dir_models, "wrench.STEP")
27+
)
28+
assert isinstance(r, dict)
29+
assert len(g.trimesh.Trimesh(**r).faces) > 0
30+
2231

2332
if __name__ == "__main__":
2433
g.trimesh.util.attach_to_log()

tests/test_import.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
Make sure trimesh is importing right.
66
"""
7+
78
import unittest
89

910

0 commit comments

Comments
 (0)