Skip to content

Commit 2b5de16

Browse files
committed
moar tweaking
1 parent 9c7bef8 commit 2b5de16

File tree

2 files changed

+91
-91
lines changed

2 files changed

+91
-91
lines changed

src/compas/datastructures/__init__.py

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -134,68 +134,95 @@
134134
BaseNetwork, # NOTE: this class being in the stable API is something we should deprecate before 2.x release
135135
Graph,
136136
Network,
137-
network_join_edges,
138-
network_polylines,
139-
network_split_edge,
140-
network_is_connected,
141137
network_complement,
142-
network_find_cycles,
143-
network_disconnected_nodes,
138+
network_count_crossings,
144139
network_disconnected_edges,
140+
network_disconnected_nodes,
141+
network_embed_in_plane_proxy,
142+
network_embed_in_plane,
145143
network_explode,
146-
network_is_crossed,
147-
network_count_crossings,
148144
network_find_crossings,
149-
network_is_xy,
150-
network_is_planar,
145+
network_find_cycles,
146+
network_is_connected,
147+
network_is_crossed,
151148
network_is_planar_embedding,
152-
network_embed_in_plane,
153-
network_embed_in_plane_proxy,
149+
network_is_planar,
150+
network_is_xy,
151+
network_join_edges,
152+
network_polylines,
153+
network_shortest_path,
154154
network_smooth_centroid,
155+
network_split_edge,
155156
network_transform,
156157
network_transformed,
157-
network_shortest_path
158158
)
159159
from .mesh import (
160160
BaseMesh, # NOTE: this class being in the stable API is something we should deprecate before 2.x release
161161
HalfEdge,
162162
Mesh,
163-
trimesh_collapse_edge,
164163
mesh_add_vertex_to_face_edge,
165-
mesh_insert_vertex_on_edge,
166-
mesh_merge_faces,
167-
trimesh_split_edge,
168-
mesh_substitute_vertex_in_faces,
169-
trimesh_swap_edge,
170-
mesh_unweld_vertices,
171-
mesh_unweld_edges,
164+
mesh_bounding_box_xy,
165+
mesh_bounding_box,
166+
mesh_collapse_edge,
167+
mesh_connected_components,
168+
mesh_conway_ambo,
169+
mesh_conway_bevel,
172170
mesh_conway_dual,
171+
mesh_conway_expand,
172+
mesh_conway_gyro,
173173
mesh_conway_join,
174-
mesh_conway_ambo,
175174
mesh_conway_kis,
175+
mesh_conway_meta,
176176
mesh_conway_needle,
177-
mesh_conway_zip,
178-
mesh_conway_truncate,
179177
mesh_conway_ortho,
180-
mesh_conway_expand,
181-
mesh_conway_gyro,
182178
mesh_conway_snub,
183-
mesh_conway_meta,
184-
mesh_conway_bevel,
185-
trimesh_mean_curvature,
186-
trimesh_gaussian_curvature,
187-
mesh_disconnected_vertices,
179+
mesh_conway_truncate,
180+
mesh_conway_zip,
181+
mesh_delete_duplicate_vertices,
188182
mesh_disconnected_faces,
183+
mesh_disconnected_vertices,
184+
mesh_dual,
189185
mesh_explode,
190-
trimesh_face_circle,
191-
mesh_weld,
192-
meshes_join,
193-
meshes_join_and_weld,
194-
mesh_offset,
195-
mesh_thicken,
186+
mesh_face_adjacency,
196187
mesh_flatness,
188+
mesh_flip_cycles,
189+
mesh_insert_vertex_on_edge,
190+
mesh_is_connected,
191+
mesh_merge_faces,
192+
mesh_offset,
197193
mesh_planarize_faces,
198-
trimesh_remesh
194+
mesh_quads_to_triangles,
195+
mesh_slice_plane,
196+
mesh_smooth_area,
197+
mesh_smooth_centerofmass,
198+
mesh_smooth_centroid,
199+
mesh_split_edge,
200+
mesh_split_face,
201+
mesh_subdivide_catmullclark,
202+
mesh_subdivide_corner,
203+
mesh_subdivide_doosabin,
204+
mesh_subdivide_frames,
205+
mesh_subdivide_quad,
206+
mesh_subdivide_tri,
207+
mesh_subdivide,
208+
mesh_substitute_vertex_in_faces,
209+
mesh_thicken,
210+
mesh_transform,
211+
mesh_transformed,
212+
mesh_unify_cycles,
213+
mesh_unweld_edges,
214+
mesh_unweld_vertices,
215+
mesh_weld,
216+
meshes_join_and_weld,
217+
meshes_join,
218+
trimesh_collapse_edge,
219+
trimesh_face_circle,
220+
trimesh_gaussian_curvature,
221+
trimesh_mean_curvature,
222+
trimesh_remesh,
223+
trimesh_split_edge,
224+
trimesh_subdivide_loop,
225+
trimesh_swap_edge,
199226
)
200227
from .volmesh import (
201228
BaseVolMesh, # NOTE: this class being in the stable API is something we should deprecate before 2.x release
@@ -209,55 +236,28 @@
209236
if not compas.IPY:
210237
from .network import (
211238
network_adjacency_matrix,
212-
network_degree_matrix,
213239
network_connectivity_matrix,
240+
network_degree_matrix,
214241
network_laplacian_matrix,
215242
)
216243
from .mesh import (
217244
mesh_adjacency_matrix,
218-
mesh_bounding_box_xy,
219-
mesh_bounding_box,
220-
mesh_collapse_edge,
221-
mesh_connected_components,
222245
mesh_connectivity_matrix,
223246
mesh_contours_numpy,
224247
mesh_degree_matrix,
225-
mesh_delete_duplicate_vertices,
226-
mesh_dual,
227-
mesh_face_adjacency,
228248
mesh_face_matrix,
229-
mesh_flip_cycles,
230249
mesh_geodesic_distances_numpy,
231-
mesh_is_connected,
232250
mesh_isolines_numpy,
233251
mesh_laplacian_matrix,
234252
mesh_oriented_bounding_box_numpy,
235253
mesh_oriented_bounding_box_xy_numpy,
236-
mesh_quads_to_triangles,
237-
mesh_slice_plane,
238-
mesh_smooth_area,
239-
mesh_smooth_centerofmass,
240-
mesh_smooth_centroid,
241-
mesh_split_edge,
242-
mesh_split_face,
243-
mesh_subdivide_catmullclark,
244-
mesh_subdivide_corner,
245-
mesh_subdivide_doosabin,
246-
mesh_subdivide_frames,
247-
mesh_subdivide_quad,
248-
mesh_subdivide_tri,
249-
mesh_subdivide,
250254
mesh_transform_numpy,
251-
mesh_transform,
252255
mesh_transformed_numpy,
253-
mesh_transformed,
254-
mesh_unify_cycles,
255256
trimesh_cotangent_laplacian_matrix,
256257
trimesh_descent,
257258
trimesh_pull_points_numpy,
258259
trimesh_samplepoints_numpy,
259260
trimesh_smooth_laplacian_cotangent,
260-
trimesh_subdivide_loop,
261261
trimesh_vertexarea_matrix,
262262
)
263263

@@ -267,27 +267,27 @@
267267
'BaseNetwork',
268268
'Graph',
269269
'Network',
270-
'network_join_edges',
271-
'network_polylines',
272-
'network_split_edge',
273-
'network_is_connected',
274270
'network_complement',
275-
'network_find_cycles',
276-
'network_disconnected_nodes',
271+
'network_count_crossings',
277272
'network_disconnected_edges',
273+
'network_disconnected_nodes',
274+
'network_embed_in_plane_proxy',
275+
'network_embed_in_plane',
278276
'network_explode',
279-
'network_is_crossed',
280-
'network_count_crossings',
281277
'network_find_crossings',
282-
'network_is_xy',
283-
'network_is_planar',
278+
'network_find_cycles',
279+
'network_is_connected',
280+
'network_is_crossed',
284281
'network_is_planar_embedding',
285-
'network_embed_in_plane',
286-
'network_embed_in_plane_proxy',
282+
'network_is_planar',
283+
'network_is_xy',
284+
'network_join_edges',
285+
'network_polylines',
286+
'network_shortest_path',
287287
'network_smooth_centroid',
288+
'network_split_edge',
288289
'network_transform',
289290
'network_transformed',
290-
'network_shortest_path',
291291
# Meshes
292292
'BaseMesh',
293293
'HalfEdge',
@@ -368,26 +368,26 @@
368368
__all__ += [
369369
# Networks
370370
'network_adjacency_matrix',
371-
'network_degree_matrix',
372371
'network_connectivity_matrix',
372+
'network_degree_matrix',
373373
'network_laplacian_matrix',
374374
# Meshes
375375
'mesh_adjacency_matrix',
376376
'mesh_connectivity_matrix',
377+
'mesh_contours_numpy',
377378
'mesh_degree_matrix',
378379
'mesh_face_matrix',
380+
'mesh_geodesic_distances_numpy',
381+
'mesh_isolines_numpy',
379382
'mesh_laplacian_matrix',
380-
'trimesh_cotangent_laplacian_matrix',
381-
'trimesh_vertexarea_matrix',
382383
'mesh_oriented_bounding_box_numpy',
383384
'mesh_oriented_bounding_box_xy_numpy',
384-
'mesh_isolines_numpy',
385-
'mesh_contours_numpy',
386-
'trimesh_descent',
387-
'mesh_geodesic_distances_numpy',
388-
'trimesh_smooth_laplacian_cotangent',
389-
'trimesh_pull_points_numpy',
390385
'mesh_transform_numpy',
391386
'mesh_transformed_numpy',
387+
'trimesh_cotangent_laplacian_matrix',
388+
'trimesh_descent',
389+
'trimesh_pull_points_numpy',
392390
'trimesh_samplepoints_numpy',
391+
'trimesh_smooth_laplacian_cotangent',
392+
'trimesh_vertexarea_matrix',
393393
]

src/compas/numerical/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,18 @@
135135
from .descent import descent_numpy
136136
from .topop import topop_numpy
137137
from .pca import pca_numpy
138-
from .ga import ga, moga
139138
from .fd import fd_numpy
140139
from .dr import dr_numpy
141140
from .devo import devo_numpy
142141
from .isolines import scalarfield_contours_numpy
143142

144143
from .dr import dr
144+
from .ga import ga, moga
145145

146146
__all__ = [
147147
'dr',
148+
'ga',
149+
'moga',
148150
]
149151

150152
if not compas.IPY:
@@ -183,8 +185,6 @@
183185
'descent_numpy',
184186
'topop_numpy',
185187
'pca_numpy',
186-
'ga',
187-
'moga',
188188
'devo_numpy',
189189
'fd_numpy',
190190
'dr_numpy',

0 commit comments

Comments
 (0)