|
126 | 126 |
|
127 | 127 |
|
128 | 128 | """ |
129 | | - |
130 | 129 | from __future__ import absolute_import |
131 | | - |
132 | | - |
133 | | -from .datastructure import * # noqa: F401 E402 F403 |
134 | | - |
135 | | -from .network import * # noqa: F401 E402 F403 |
136 | | -from .mesh import * # noqa: F401 E402 F403 |
137 | | -from .volmesh import * # noqa: F401 E402 F403 |
138 | | - |
139 | | - |
140 | | -__all__ = [name for name in dir() if not name.startswith('_')] |
| 130 | +import compas |
| 131 | + |
| 132 | +from .datastructure import Datastructure |
| 133 | +from .network import ( |
| 134 | + Graph, |
| 135 | + Network, |
| 136 | + network_join_edges, |
| 137 | + network_polylines, |
| 138 | + network_split_edge, |
| 139 | + network_is_connected, |
| 140 | + network_complement, |
| 141 | + network_find_cycles, |
| 142 | + network_disconnected_nodes, |
| 143 | + network_disconnected_edges, |
| 144 | + network_explode, |
| 145 | + network_is_crossed, |
| 146 | + network_count_crossings, |
| 147 | + network_find_crossings, |
| 148 | + network_is_xy, |
| 149 | + network_is_planar, |
| 150 | + network_is_planar_embedding, |
| 151 | + network_embed_in_plane, |
| 152 | + network_embed_in_plane_proxy, |
| 153 | + network_smooth_centroid, |
| 154 | + network_transform, |
| 155 | + network_transformed, |
| 156 | + network_shortest_path |
| 157 | +) |
| 158 | +from .mesh import ( |
| 159 | + HalfEdge, |
| 160 | + Mesh, |
| 161 | + trimesh_collapse_edge, |
| 162 | + mesh_add_vertex_to_face_edge, |
| 163 | + mesh_insert_vertex_on_edge, |
| 164 | + mesh_merge_faces, |
| 165 | + trimesh_split_edge, |
| 166 | + mesh_substitute_vertex_in_faces, |
| 167 | + trimesh_swap_edge, |
| 168 | + mesh_unweld_vertices, |
| 169 | + mesh_unweld_edges, |
| 170 | + mesh_conway_dual, |
| 171 | + mesh_conway_join, |
| 172 | + mesh_conway_ambo, |
| 173 | + mesh_conway_kis, |
| 174 | + mesh_conway_needle, |
| 175 | + mesh_conway_zip, |
| 176 | + mesh_conway_truncate, |
| 177 | + mesh_conway_ortho, |
| 178 | + mesh_conway_expand, |
| 179 | + mesh_conway_gyro, |
| 180 | + mesh_conway_snub, |
| 181 | + mesh_conway_meta, |
| 182 | + mesh_conway_bevel, |
| 183 | + trimesh_mean_curvature, |
| 184 | + trimesh_gaussian_curvature, |
| 185 | + mesh_disconnected_vertices, |
| 186 | + mesh_disconnected_faces, |
| 187 | + mesh_explode, |
| 188 | + trimesh_face_circle, |
| 189 | + mesh_weld, |
| 190 | + meshes_join, |
| 191 | + meshes_join_and_weld, |
| 192 | + mesh_offset, |
| 193 | + mesh_thicken, |
| 194 | + mesh_flatness, |
| 195 | + mesh_planarize_faces, |
| 196 | + trimesh_remesh |
| 197 | +) |
| 198 | +from .volmesh import ( |
| 199 | + VolMesh, |
| 200 | + volmesh_bounding_box, |
| 201 | + volmesh_transform, |
| 202 | + volmesh_transformed |
| 203 | +) |
| 204 | + |
| 205 | +if not compas.IPY: |
| 206 | + from .network import ( |
| 207 | + network_adjacency_matrix, |
| 208 | + network_degree_matrix, |
| 209 | + network_connectivity_matrix, |
| 210 | + network_laplacian_matrix, |
| 211 | + ) |
| 212 | + from .mesh import ( |
| 213 | + mesh_adjacency_matrix, |
| 214 | + mesh_connectivity_matrix, |
| 215 | + mesh_degree_matrix, |
| 216 | + mesh_face_matrix, |
| 217 | + mesh_laplacian_matrix, |
| 218 | + trimesh_cotangent_laplacian_matrix, |
| 219 | + trimesh_vertexarea_matrix, |
| 220 | + mesh_oriented_bounding_box_numpy, |
| 221 | + mesh_oriented_bounding_box_xy_numpy, |
| 222 | + mesh_isolines_numpy, |
| 223 | + mesh_contours_numpy, |
| 224 | + trimesh_descent, |
| 225 | + mesh_geodesic_distances_numpy, |
| 226 | + trimesh_smooth_laplacian_cotangent, |
| 227 | + trimesh_pull_points_numpy, |
| 228 | + mesh_transform_numpy, |
| 229 | + mesh_transformed_numpy, |
| 230 | + trimesh_samplepoints_numpy, |
| 231 | + ) |
| 232 | + |
| 233 | +__all__ = [ |
| 234 | + 'Datastructure', |
| 235 | + # Networks |
| 236 | + 'Graph', |
| 237 | + 'Network', |
| 238 | + 'network_join_edges', |
| 239 | + 'network_polylines', |
| 240 | + 'network_split_edge', |
| 241 | + 'network_is_connected', |
| 242 | + 'network_complement', |
| 243 | + 'network_find_cycles', |
| 244 | + 'network_disconnected_nodes', |
| 245 | + 'network_disconnected_edges', |
| 246 | + 'network_explode', |
| 247 | + 'network_is_crossed', |
| 248 | + 'network_count_crossings', |
| 249 | + 'network_find_crossings', |
| 250 | + 'network_is_xy', |
| 251 | + 'network_is_planar', |
| 252 | + 'network_is_planar_embedding', |
| 253 | + 'network_embed_in_plane', |
| 254 | + 'network_embed_in_plane_proxy', |
| 255 | + 'network_smooth_centroid', |
| 256 | + 'network_transform', |
| 257 | + 'network_transformed', |
| 258 | + 'network_shortest_path', |
| 259 | + # Meshes |
| 260 | + 'HalfEdge', |
| 261 | + 'Mesh', |
| 262 | + 'trimesh_collapse_edge', |
| 263 | + 'mesh_add_vertex_to_face_edge', |
| 264 | + 'mesh_insert_vertex_on_edge', |
| 265 | + 'mesh_merge_faces', |
| 266 | + 'trimesh_split_edge', |
| 267 | + 'mesh_substitute_vertex_in_faces', |
| 268 | + 'trimesh_swap_edge', |
| 269 | + 'mesh_unweld_vertices', |
| 270 | + 'mesh_unweld_edges', |
| 271 | + 'mesh_conway_dual', |
| 272 | + 'mesh_conway_join', |
| 273 | + 'mesh_conway_ambo', |
| 274 | + 'mesh_conway_kis', |
| 275 | + 'mesh_conway_needle', |
| 276 | + 'mesh_conway_zip', |
| 277 | + 'mesh_conway_truncate', |
| 278 | + 'mesh_conway_ortho', |
| 279 | + 'mesh_conway_expand', |
| 280 | + 'mesh_conway_gyro', |
| 281 | + 'mesh_conway_snub', |
| 282 | + 'mesh_conway_meta', |
| 283 | + 'mesh_conway_bevel', |
| 284 | + 'trimesh_mean_curvature', |
| 285 | + 'trimesh_gaussian_curvature', |
| 286 | + 'mesh_disconnected_vertices', |
| 287 | + 'mesh_disconnected_faces', |
| 288 | + 'mesh_explode', |
| 289 | + 'trimesh_face_circle', |
| 290 | + 'mesh_weld', |
| 291 | + 'meshes_join', |
| 292 | + 'meshes_join_and_weld', |
| 293 | + 'mesh_offset', |
| 294 | + 'mesh_thicken', |
| 295 | + 'mesh_flatness', |
| 296 | + 'mesh_planarize_faces', |
| 297 | + 'trimesh_remesh', |
| 298 | + # Volumetric Meshes |
| 299 | + 'VolMesh', |
| 300 | + 'volmesh_bounding_box', |
| 301 | + 'volmesh_transform', |
| 302 | + 'volmesh_transformed', |
| 303 | +] |
| 304 | + |
| 305 | +if not compas.IPY: |
| 306 | + __all__ += [ |
| 307 | + # Networks |
| 308 | + 'network_adjacency_matrix', |
| 309 | + 'network_degree_matrix', |
| 310 | + 'network_connectivity_matrix', |
| 311 | + 'network_laplacian_matrix', |
| 312 | + # Meshes |
| 313 | + 'mesh_adjacency_matrix', |
| 314 | + 'mesh_connectivity_matrix', |
| 315 | + 'mesh_degree_matrix', |
| 316 | + 'mesh_face_matrix', |
| 317 | + 'mesh_laplacian_matrix', |
| 318 | + 'trimesh_cotangent_laplacian_matrix', |
| 319 | + 'trimesh_vertexarea_matrix', |
| 320 | + 'mesh_oriented_bounding_box_numpy', |
| 321 | + 'mesh_oriented_bounding_box_xy_numpy', |
| 322 | + 'mesh_isolines_numpy', |
| 323 | + 'mesh_contours_numpy', |
| 324 | + 'trimesh_descent', |
| 325 | + 'mesh_geodesic_distances_numpy', |
| 326 | + 'trimesh_smooth_laplacian_cotangent', |
| 327 | + 'trimesh_pull_points_numpy', |
| 328 | + 'mesh_transform_numpy', |
| 329 | + 'mesh_transformed_numpy', |
| 330 | + 'trimesh_samplepoints_numpy', |
| 331 | + ] |
0 commit comments