File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11"""Polyline utilities using CGAL."""
22
3- from typing import TYPE_CHECKING
43from typing import List
54from typing import Union
65
1110from compas_cgal ._polylines import closest_points_on_polyline as _closest_points
1211from compas_cgal ._polylines import simplify_polylines as _simplify
1312
14- if TYPE_CHECKING :
15- PointsList = Union [List [List [float ]], NDArray ]
13+ PointsList = Union [List [List [float ]], NDArray ]
1614
1715
1816__all__ = ["simplify_polylines" , "simplify_polyline" , "closest_points_on_polyline" ]
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ static void rdp_simplify(
7878
7979std::vector<compas::RowMatrixXd>
8080pmp_simplify_polylines (
81- std::vector<compas::RowMatrixXd> polylines,
81+ const std::vector<compas::RowMatrixXd>& polylines,
8282 double threshold)
8383{
8484 std::vector<compas::RowMatrixXd> results;
@@ -127,8 +127,8 @@ pmp_simplify_polylines(
127127
128128compas::RowMatrixXd
129129pmp_closest_points_on_polyline (
130- compas::RowMatrixXd query_points,
131- compas::RowMatrixXd polyline)
130+ const compas::RowMatrixXd& query_points,
131+ const compas::RowMatrixXd& polyline)
132132{
133133 int n_queries = query_points.rows ();
134134 int q_cols = query_points.cols ();
Original file line number Diff line number Diff line change 1919 */
2020std::vector<compas::RowMatrixXd>
2121pmp_simplify_polylines (
22- std::vector<compas::RowMatrixXd> polylines,
22+ const std::vector<compas::RowMatrixXd>& polylines,
2323 double threshold);
2424
2525/* *
@@ -31,5 +31,5 @@ pmp_simplify_polylines(
3131 */
3232compas::RowMatrixXd
3333pmp_closest_points_on_polyline (
34- compas::RowMatrixXd query_points,
35- compas::RowMatrixXd polyline);
34+ const compas::RowMatrixXd& query_points,
35+ const compas::RowMatrixXd& polyline);
You can’t perform that action at this time.
0 commit comments