File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
src/compas/datastructures Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 149149 network_is_planar ,
150150 network_is_planar_embedding ,
151151 network_embed_in_plane ,
152+ network_embed_in_plane_proxy ,
152153 network_smooth_centroid ,
153154 network_transform ,
154155 network_transformed ,
231232
232233__all__ = [
233234 'Datastructure' ,
234-
235+ # Networks
235236 'Graph' ,
236237 'Network' ,
237238 'network_join_edges' ,
250251 'network_is_planar' ,
251252 'network_is_planar_embedding' ,
252253 'network_embed_in_plane' ,
254+ 'network_embed_in_plane_proxy' ,
253255 'network_smooth_centroid' ,
254256 'network_transform' ,
255257 'network_transformed' ,
256258 'network_shortest_path' ,
257-
259+ # Meshes
258260 'HalfEdge' ,
259261 'Mesh' ,
260262 'trimesh_collapse_edge' ,
293295 'mesh_flatness' ,
294296 'mesh_planarize_faces' ,
295297 'trimesh_remesh' ,
296-
298+ # Volumetric Meshes
297299 'VolMesh' ,
298300 'volmesh_bounding_box' ,
299301 'volmesh_transform' ,
Original file line number Diff line number Diff line change 2727 'network_is_planar' ,
2828 'network_is_planar_embedding' ,
2929 'network_embed_in_plane' ,
30+ 'network_embed_in_plane_proxy'
3031]
3132
3233
34+ def network_embed_in_plane_proxy (data , fixed = None , straightline = True ):
35+ from compas .datastructures import Network
36+ network = Network .from_data (data )
37+ network_embed_in_plane (network , fixed = fixed , straightline = straightline )
38+ return network .to_data ()
39+
40+
3341def network_is_crossed (network ):
3442 """Verify if a network has crossing edges.
3543
You can’t perform that action at this time.
0 commit comments