Skip to content

Commit 07fb100

Browse files
committed
remove numpy dependency
1 parent 8f62c5f commit 07fb100

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def run(self):
4848
"GitPython==3.1.*",
4949
"asgiref==3.8.*",
5050
"uvicorn==0.30.*",
51-
"numpy<2",
5251
],
5352
license="GNU Affero General Public License v3",
5453
include_package_data=True,

solid_node/node/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import logging
66
import importlib
77
import trimesh
8-
import numpy as np
98
from decimal import Decimal
109
from subprocess import Popen
1110
from solid2 import (scad_render, import_scad, import_stl,

solid_node/node/operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import numpy as np
1+
import math
22
import trimesh
33
from solid2 import (
44
rotate as scad_rotate,
@@ -32,7 +32,7 @@ def scad(self, scad_object):
3232

3333
def mesh(self, mesh):
3434
matrix = trimesh.transformations.rotation_matrix(
35-
np.radians(self.angle),
35+
math.radians(self.angle),
3636
self.axis,
3737
)
3838
mesh.apply_transform(matrix)

0 commit comments

Comments
 (0)