Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Changed `angle_vectors_projected` to raise `ValueError` when an input vector is parallel to projection normal.
* Changed `angle_vectors` to raise `ValueError` when one of the input vectors is a zero-length vector instead of returning 0.
* Changed `transformation_to_rhino` and `transformation_matrix_to_rhino` to assign the matrix components directly to the fields of `Rhino.Geometry.Transform` instead of looping over its indexer. About 11x faster per conversion, noticable when used inside an animation loop.
* Fixed the parameter names in the docstrings of `Shear.from_entries`, `Polyline.split_by_length` and `trimesh_gradient_numpy`.

### Removed

Expand Down
2 changes: 0 additions & 2 deletions src/compas/geometry/curves/polyline.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,6 @@ def split_by_length(self, length, strict=True):
Length of the segments.
strict : bool, optional
If False, the remainder segment will be added even if it is smaller than the desired length
tol : float, optional
Floating point error tolerance.

Returns
-------
Expand Down
2 changes: 1 addition & 1 deletion src/compas/geometry/shear.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def from_entries(cls, shear_entries):

Parameters
----------
shear_factors : [float, float, float]
shear_entries : [float, float, float]
The 3 shear factors for x-y, x-z, and y-z axes.

Returns
Expand Down
6 changes: 2 additions & 4 deletions src/compas/geometry/trimesh_gradient_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ def trimesh_gradient_numpy(M, rtype="array"):

Parameters
----------
V : array
Vertex coordinates of the mesh.
F : array
Face vertex indices of the mesh.
M : tuple[array, array]
A mesh represented by an array of vertex coordinates and an array of face vertex indices.
rtype : {'array', 'csc', 'csr', 'coo', 'list'}
Format of the result.

Expand Down