Compas-model

Latest version: v0.6.1

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.6.1

Added

Changed

* Fixed bug in `compas_model.models.Model.transformation`.

Removed

0.6.0

Added

Changed

* Changed `compas_model.elements.Element.compute_modeltransformation` to use only the stack of transformations of its ancestors. Each transformation in the stack defines the change from local to world coordinates of the corresponding element.

Removed

* Removed `compas_model.models.Model.frame`.

0.5.1

Added

Changed

* Fixed bug in `compas_model.models.Model.compute_contacts` resulting from completely skipping existing edges.
* Fixed bug in import of `boolean_difference_mesh_mesh`.

Removed

0.5.0

Added

* Added reference to model `Element.model` to `Element`.
* Added `Element.modelgeometry` as the cached geometry of an element in model coordinates, taking into account the modifying effect of interactions with other elements.
* Added `Element.modeltransformation` as the cached transformation from element to model coordinates.
* Added `Element.compute_elementgeometry()`.
* Added `Element.compute_modelgeometry()` to replace `Element.compute_geometry()`.
* Added `Element.compute_modeltransformation()` to replace `Element.compute_worldtransformation()`.
* Added `Element.is_dirty`.
* Added `compas_model.geometry.minkowski_sum_xy` to compute the Minkowski sum A + B of two convex polygons in the XY plane.
* Added `compas_model.geometry.minkowski_difference_xy` as a convenience method to compute A + -B.
* Added `compas_model.geometry.is_collision_poly_poly_xy` to check for collisions between convex polygons in the XY plane.
* Added `compas_model.geometry.intersection_ray_triangle`.
* Added `compas_model.geometry.intersections_line_aabb`.
* Added `compas_model.geometry.intersections_line_box`.
* Added `compas_model.geometry.intersections_ray_aabb`.
* Added `compas_model.geometry.intersections_ray_box`.
* Added `compas_model.geometry.is_intersection_box_box`.
* Added `compas_model.geometry.is_intersection_line_aabb`.
* Added `compas_model.geometry.is_intersection_line_box`.
* Added `compas_model.geometry.is_intersection_ray_aabb`.
* Added `compas_model.geometry.is_intersection_ray_box`.
* Added `compas_model.geometry.is_intersection_segment_aabb`.
* Added `compas_model.geometry.is_intersection_segment_box`.
* Added `compas_model.geometry.pca_box` for fast OBB calculation.
* Added `compas_model.algorithms.mesh_mesh_contacts`.
* Added `compas_model.datastructures.BVH` extending the base compas tree data structure into a bounding volume hierarchy.
* Added `compas_model.datastructures.AABBNode` representing a node of the BVH using an axis-aligned bounding box.
* Added `compas_model.datastructures.OBBNode` representing a node of the BVH using an oriented bounding box.
* Added `compas_model.datastructures.KDTree` for nearest neighbour search among elements.
* Added `compas_model.models.bvh.ElementBVH`.
* Added `compas_model.models.bvh.ElementAABBNode`.
* Added `compas_model.models.bvh.ElementOBBNode`.
* Added `compas_model.elements.BeamElement`.
* Added `compas_model.elements.ColumnElement`.
* Added `compas_model.elements.PlateElement`.
* Added `compas_model.models.Model.collisions` iterator.
* Added `compas_model.models.graph.InteractionGraph.clear_edges`.

Changed

* Changed `Element.graph_node` to `Element.graphnode`.
* Changed `Element.tree_node` to `Element.treenode`.
* Fixed bug in deserialisation (`element.model` was not set properly).

Removed

* Removed model reference `ElementTree.model` from `ElementTree`.
* Removed `InterfaceElement` from elements.
* Removed `BlockModel`.
* Removed `BlockElement`.
* Removed `model_interfaces`.
* Removed `model_overlaps`.

0.4.5

Added

* Added `compas_model.elements.Element.parent` as alias for `compas_model.elements.Element.tree_node.parent`.
* Added missing graph node reference to elements during deserialisation process.

Changed

* Moved method parameter to element atribute `compas_model.elements.Element.include_features`.
* Moved method parameter to element atribute `compas_model.elements.Element.inflate_aabb`.
* Moved method parameter to element atribute `compas_model.elements.Element.inflate_obb`.
* Changed `compas_model.elements.Element.compute_worldtransformation` to include frame of model.
* Changed `compas_model.models.elementnode.ElementNode` to include children (previous functionality of `GroupNode`).
* Changed root of element tree to element node instead of group node.
* Changed deserialisation process of model according to removal of group node.

Removed

* Removed `compas_model.models.groupnode.GroupNode`.

0.4.4

Added

Changed

* Restored backwards compatibility with Python2.7 in core modules.

Removed

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.