Skip to content

Commit 512db97

Browse files
committed
reref linalg
1 parent ebc54e0 commit 512db97

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

src/compas/geometry/icp_numpy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
from scipy.linalg import norm
88

99
from compas.tolerance import TOL
10-
1110
from compas.geometry import pca_numpy
1211
from compas.geometry import transform_points_numpy
13-
14-
from .linalg import normrow
12+
from compas.linalg import normrow
1513

1614

1715
def bestfit_transform(A, B):

src/compas/geometry/trimesh_curvature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def trimesh_gaussian_curvature(M):
2222
list[float]
2323
The discrete gaussian curvature per vertex.
2424
25-
Warning
26-
-------
25+
Warnings
26+
--------
2727
The default implementation willnot check if the mesh is a triangle mesh.
2828
It will simpliy compute the curvature at every vertex as if it were surrounded by triangles.
2929
This requires the faces of the mesh to be at least convex polygons.

src/compas/geometry/trimesh_gradient_numpy.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import numpy as np
2-
32
from scipy.sparse import coo_matrix # type: ignore
43

5-
from .linalg import normrow
6-
from .linalg import normalizerow
7-
from .linalg import rot90
4+
from compas.linalg import normrow
5+
from compas.linalg import normalizerow
6+
from compas.linalg import rot90
87

98

109
def trimesh_gradient_numpy(M, rtype="array"):

src/compas/geometry/trimesh_matrices_numpy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
from numpy import zeros
33
from numpy import cross
44
from numpy import bincount
5-
65
from scipy.sparse import coo_matrix
76
from scipy.sparse import spdiags
87

98
from compas.geometry import dot_vectors
109
from compas.geometry import length_vector
1110
from compas.geometry import cross_vectors
12-
13-
from .linalg import normrow
11+
from compas.linalg import normrow
1412

1513

1614
def trimesh_edge_cotangent(mesh, edge):

src/compas/geometry/trimesh_pull_points_numpy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
from scipy.linalg import solve
33
from scipy.spatial import distance_matrix
44

5-
from .linalg import normalizerow
6-
75
from compas.geometry import cross_vectors
86
from compas.geometry import is_ccw_xy
97
from compas.geometry import is_point_in_triangle
8+
from compas.linalg import normalizerow
109

1110

1211
def trimesh_pull_points_numpy(M, points):

src/compas/geometry/trimesh_smoothing_numpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from numpy import array
22

3-
from .matrices import trimesh_cotangent_laplacian_matrix
3+
from ._algebra import trimesh_cotangent_laplacian_matrix
44

55

66
def trimesh_smooth_laplacian_cotangent(trimesh, fixed, kmax=10):

0 commit comments

Comments
 (0)