Skip to content

Commit b3392ec

Browse files
committed
Merge remote-tracking branch 'origin/main' into sceneobjects
2 parents 03d2352 + 18c1b46 commit b3392ec

File tree

192 files changed

+15796
-16586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+15796
-16586
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.0.0-beta.1
2+
current_version = 2.0.0-beta.2
33
message = Bump version to {new_version}
44
commit = True
55
tag = True

CHANGELOG.md

Lines changed: 101 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,34 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Unreleased
99

1010
### Added
11+
12+
* Added `compas.dtastructures.Network` as alias of `compas.datastructures.Graph`.
13+
* Added `compas.data.Data.name` and included it in serialisation in case `compas.data.Data._name is not None`.
14+
15+
### Changed
16+
17+
* Merged `compas.datastructures.Halfedge` into `compas.datastructures.Mesh`.
18+
* Merged `compas.datastructures.Network` into `compas.datastructures.Graph`.
19+
* Merged `compas.datastructures.Halfface` into `compas.datastructures.VolMesh`.
20+
21+
### Removed
22+
23+
* Removed `compas.datastructures.Network`.
24+
* Removed `compas.datastructures.Halfedge`.
25+
* Removed `compas.datastructures.Halfface`.
26+
* Removed `compas.data.Data.attributes`.
27+
* Removed `compas.data.Datastructure.attributes`.
28+
* Removed `attributes` from `compas.datastructures.Assembly.data`.
29+
* Removed `attributes` from `compas.datastructures.CellNetwork.data`.
30+
* Removed `attributes` from `compas.datastructures.Graph.data`.
31+
* Removed `attributes` from `compas.datastructures.Mesh.data`.
32+
* Removed `attributes` from `compas.datastructures.Tree.data`.
33+
* Removed `attributes` from `compas.datastructures.VolMesh.data`.
34+
35+
## [2.0.0-beta.2] 2024-01-12
36+
37+
### Added
38+
1139
* Added `viewerinstance` in `compas.scene.Scene` to support viewers context detection.
1240
* Added `compas_rhino8` as starting point for Rhino8 support.
1341
* Added `compas.scene.SceneObjectNode`.
@@ -33,21 +61,92 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3361
* Added `show_edges` flag to `compas.scene.VolMeshObject`.
3462
* Added `show_faces` flag to `compas.scene.VolMeshObject`.
3563
* Added `show_cells` flag to `compas.scene.VolMeshObject`.
64+
* Added `compas.data.Data.to_jsonstring` and `compas.data.Data.from_jsonstring`.
65+
* Added `compas.data.Data.attributes`.
66+
* Added optional param `working_directory` to `compas.rpc.Proxy` to be able to start services defined in random locations.
67+
* Added `compas.datastructures.Datastructure.transform` and `compas.datastructures.Datastructure.transformed`.
68+
* Added `compas.datastructures.Datastructure.transform_numpy` and `compas.datastructures.Datastructure.transformed_numpy`.
69+
* Added `compas.datastructures.Halfedge.flip_cycles`.
70+
* Added `compas.datastructures.Halfedge.is_connected`, `compas.datastructures.Halfedge.connected_vertices`, `compas.datastructures.Halfedge.connected_faces`.
71+
* Added `compas.datastructures.Mesh.join`.
72+
* Added `compas.datastructures.Mesh.weld` and `compas.datastructures.Mesh.remove_duplicate_vertices`.
73+
* Added `compas.datastructures.Mesh.quads_to_triangles`.
74+
* Added `compas.datastructures.Mesh.unify_cycles`.
75+
* Added `compas.datastructures.Mesh.aabb` and `compas.datastructures.Mesh.obb`.
76+
* Added `compas.datastructures.Mesh.offset` and `compas.datastructures.Mesh.thickened`.
77+
* Added `compas.datastructures.Mesh.exploded`.
78+
* Added `compas.datastructures.Mesh.adjacency_matrix`, `compas.datastructures.Mesh.connectivity_matrix`, `compas.datastructures.Mesh.degree_matrix`, `compas.datastructures.Mesh.laplacian_matrix`.
79+
* Added `compas.topology.vertex_adjacency_from_edges`, `compas.topology.vertex_adjacency_from_faces`, `compas.topology.edges_from_faces`, `compas.topology.faces_from_edges`.
80+
* Added `compas.datastructures.Network.split_edge`, `compas.datastructures.Network.join_edges`.
81+
* Added `compas.datastructures.Network.smooth`.
82+
* Added `compas.datastructures.Network.is_crossed`, `compas.datastructures.Network.is_xy`, `compas.datastructures.Network.is_planar`, `compas.datastructures.Network.is_planar_embedding`, `compas.datastructures.Network.count_crossings`, `compas.datastructures.Network.find_crossings`, `compas.datastructures.Network.embed_in_plane`.
83+
* Added `compas.datastructures.Network.find_cycles`.
84+
* Added `compas.datastructures.Network.shortest_path`.
85+
* Added `compas.datastructures.Network.transform`.
86+
* Added `compas.datastructures.Graph.is_connected`.
87+
* Added `compas.datastructures.Graph.adjacency_matrix`, `compas.datastructures.Graph.connectivity_matrix`, `compas.datastructures.Graph.degree_matrix`, `compas.datastructures.Graph.laplacian_matrix`.
3688

3789
### Changed
3890

3991
* Changed the `__str__` of `compas.geometry.Point` and `compas.geometry.Vector` to use a limited number of decimals (determined by `Tolerance.PRECISION`). Note: `__repr__` will instead maintain full precision.
40-
* In pull requests, `docs` Workflow are now only triggered on review approval.
41-
* The `draw` implementations of `compas.scene.SceneObject` will now always use the `worldtransformation` of the `SceneObject`.
92+
* Changed `docs` Workflow to only be triggered on review approval in pull requests.
93+
* Changed `draw` implementations of `compas.scene.SceneObject` to always use the `worldtransformation` of the `SceneObject`.
4294
* Fixed typo in name `Rhino.Geometry.MeshingParameters` in `compas_rhino.geometry.RhinoBrep.to_meshes()`.
4395
* Fixed `TypeErrorException` when serializing a `Mesh` which has been converted from Rhino.
4496
* Fixed color conversions in `compas_rhion.conversions.mesh_to_compas`.
4597
* Allowed `SceneObject` registration for `None` context.
98+
* Changed `compas.data.Data.name` to be stored in `compas.data.Data.attributes`.
99+
* Changed `compas.data.Data.__jsondump__` to include `compas.data.Data.attributes` if the dict is not empty.
100+
* Changed `compas.data.Data.__jsonload__` to update `compas.data.Data.attributes` if the attribute dict is provided.
101+
* Changed `compas.datastructures.Graph` to take additional `**kwargs`, instead of only `name=None` specifically.
102+
* Changed `compas.datastructures.Network` to take additional `**kwargs`, instead of only `name=None` specifically.
103+
* Changed `compas.datastructures.Halfedge` to take additional `**kwargs`, instead of only `name=None` specifically.
104+
* Changed `compas.datastructures.Mesh` to take additional `**kwargs`, instead of only `name=None` specifically.
105+
* Moved registration of `ping` and `remote_shutdown` of the RPC server to `compas.rpc.Server.__init__()`.
106+
* Moved `FileWatcherService` to `compas.rpc.services.watcher` so it can be reused.
107+
* Changed `compas.datastructures.Mesh.subdivide` to `compas.datastructures.Mesh.subdivided`.
108+
* Moved `compas.numerical.pca_numpy` to `compas.geometry.pca_numpy`.
109+
* Moved `compas.numerical.scalafield_contours` to `compas.geometry.scalarfield_contours`.
110+
* Moved `compas.numerical.matrices` to `compas.topology.matrices`.
111+
* Moved `compas.numerical.linalg` to `compas.geometry.linalg`.
112+
* Changed `watchdog` dependency to be only required for platforms other than `emscripten`.
113+
* Changed `compas.geometry.earclip_polygon` algorithm because the current one does not handle several cases.
46114

47115
### Removed
48116

49117
* Removed `compas_rhino.forms`. Forms will be moved to `compas_ui`.
50118
* Removed `compas.scene.NoSceneObjectContextError`.
119+
* Removed `compas.datastructures.Datastructure.attributes` and `compas.datastructures.Datastructure.name` (moved to `compas.data.Data`).
120+
* Removed `attributes` from `compas.datastructures.Graph.data`.
121+
* Removed `attributes` from `compas.datastructures.Network.data`.
122+
* Removed `attributes` from `compas.datastructures.Halfedge.data`.
123+
* Removed `attributes` from `compas.datastructures.Mesh.data`.
124+
* Removed `compas.datastructures.mesh_bounding_box` and `compas.datastructures.mesh_bounding_box_xy`.
125+
* Removed `compas.datastructures.mesh_oriented_bounding_box_numpy` and `compas.datastructures.mesh_oriented_bounding_box_xy_numpy`.
126+
* Removed `compas.datastructures.mesh_delete_duplicate_vertices`.
127+
* Removed `compas.datastructures.mesh_is_connected` and `compas.datastructures.mesh_connected_components`.
128+
* Removed `compas.datastructures.mesh_isolines_numpy` and `compas.datastructures.mesh_contours_numpy`.
129+
* Removed `compas.datastructures.trimesh_gaussian_curvature`.
130+
* Removed `compas.datastructures.trimesh_descent`.
131+
* Removed `compas.datastructures.mesh_disconnected_vertices`, `compas.datastructures.mesh_disconnected_faces` and `compas.datastructures.mesh_explode`.
132+
* Removed `compas.datastructures.mesh_geodesic_distances_numpy`.
133+
* Removed `compas.datastructures.trimesh_face_circle`.
134+
* Removed `compas.datastructures.mesh_weld`, `compas.datastructures.meshes_join`, `compas.datastructures.meshes_join_and_weld`.
135+
* Removed `compas.datastructures.mesh_offset` and `compas.datastructures.mesh_thicken`.
136+
* Removed `compas.datastructures.mesh_face_adjacency` and `compas.datastructures.mesh_unify_cycles`.
137+
* Removed `compas.datastructures.mesh_transform`, `compas.datastructures.mesh_transformed`, `compas.datastructures.mesh_transform_numpy`, `compas.datastructures.mesh_transformed_numpy`.
138+
* Removed `compas.datastructures.mesh_quads_to_triangles`.
139+
* Removed `compas.datastructures.volmesh_bounding_box`.
140+
* Removed `compas.datastructures.volmesh_transform` and `compas.datastructures.volmesh_transformed`.
141+
* Removed `compas.topology.unify_cycles_numpy` and `compas.topology.face_adjacency_numpy`.
142+
* Removed `compas.topology.unify_cycles_rhino` and `compas.topology.face_adjacency_rhino`.
143+
* Removed `compas.datastructures.network_is_connected`.
144+
* Removed `compas.datastructures.network_complement`.
145+
* Removed `compas.datastructures.network_disconnected_nodes`, `compas.datastructures.network_disconnected_edges`, `compas.datastructures.network_explode`.
146+
* Removed `compas.datastructures.network_adjacency_matrix`, `compas.datastructures.network_connectivity_matrix`, `compas.datastructures.network_degree_matrix`, `compas.datastructures.network_laplacian_matrix`.
147+
* Removed `compas.datastructures.network_transform`, `compas.datastructures.network_transformed`.
148+
* Removed `compas.datastructures.network_shortest_path`.
149+
* Removed `compas.numerical`.
51150

52151
## [2.0.0-beta.1] 2023-12-20
53152

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
******************************************************************************
2+
Assembly
3+
******************************************************************************
4+
5+
.. currentmodule:: compas.datastructures
6+
7+
.. autoclass:: Assembly
8+
9+
Methods
10+
=======
11+
12+
Constructors
13+
------------
14+
15+
.. autosummary::
16+
:toctree: generated/
17+
:nosignatures:
18+
19+
~Assembly.from_json
20+
21+
22+
Conversions
23+
-----------
24+
25+
.. autosummary::
26+
:toctree: generated/
27+
:nosignatures:
28+
29+
~Assembly.to_json
30+
31+
32+
Builders and Modifiers
33+
----------------------
34+
35+
.. autosummary::
36+
:toctree: generated/
37+
:nosignatures:
38+
39+
40+
Accessors
41+
---------
42+
43+
.. autosummary::
44+
:toctree: generated/
45+
:nosignatures:
46+
47+
48+
Attributes
49+
----------
50+
51+
.. autosummary::
52+
:toctree: generated/
53+
:nosignatures:
54+
55+
Topology
56+
--------
57+
58+
.. autosummary::
59+
:toctree: generated/
60+
:nosignatures:
61+
62+
63+
Geometry
64+
--------
65+
66+
.. autosummary::
67+
:toctree: generated/
68+
:nosignatures:
69+
70+
71+
Paths
72+
-----
73+
74+
.. autosummary::
75+
:toctree: generated/
76+
:nosignatures:
77+
78+
79+
Matrices
80+
--------
81+
82+
.. autosummary::
83+
:toctree: generated/
84+
:nosignatures:
85+
86+
87+
Mappings
88+
--------
89+
90+
.. autosummary::
91+
:toctree: generated/
92+
:nosignatures:
93+
94+
95+
Utilities
96+
---------
97+
98+
.. autosummary::
99+
:toctree: generated/
100+
:nosignatures:
101+
102+
103+
Other
104+
-----
105+
106+
.. autosummary::
107+
:toctree: generated/
108+
:nosignatures:
109+

0 commit comments

Comments
 (0)