diff --git a/docs/reference/compas.data.rst b/docs/reference/compas.data.rst index b47d32af201..d38b721942f 100644 --- a/docs/reference/compas.data.rst +++ b/docs/reference/compas.data.rst @@ -49,7 +49,6 @@ Validators is_float3 is_float4x4 is_item_iterable - validate_data Exceptions diff --git a/docs/reference/compas.rst b/docs/reference/compas.rst index 19a672197a4..dab91862796 100644 --- a/docs/reference/compas.rst +++ b/docs/reference/compas.rst @@ -26,9 +26,7 @@ Modules compas.geometry compas.numerical compas.plugins - compas.robots compas.rpc compas.topology - compas.utilities diff --git a/docs/reference/compas.utilities.rst b/docs/reference/compas.utilities.rst deleted file mode 100644 index b5f5604bbfd..00000000000 --- a/docs/reference/compas.utilities.rst +++ /dev/null @@ -1,69 +0,0 @@ -******************************************************************************** -compas.utilities -******************************************************************************** - -.. currentmodule:: compas.utilities - -.. rst-class:: lead - -This package collects miscellaneous functionality with the common characteristic -that it simply did not really fit anywhere else. - - -async -===== - -.. autosummary:: - :toctree: generated/ - :nosignatures: - - await_callback - - -colors -====== - -.. autosummary:: - :toctree: generated/ - :nosignatures: - - i_to_rgb - i_to_red - i_to_green - i_to_blue - i_to_white - i_to_black - rgb_to_hex - color_to_colordict - color_to_rgb - - -itertools -========= - -.. autosummary:: - :toctree: generated/ - :nosignatures: - - flatten - linspace - meshgrid - pairwise - window - iterable_like - normalize_values - remap_values - - -maps -==== - -.. autosummary:: - :toctree: generated/ - :nosignatures: - - geometric_key - reverse_geometric_key - geometric_key_xy - - diff --git a/docs/reference/compas_blender.artists.rst b/docs/reference/compas_blender.artists.rst index fb412fd533b..e75bb7ed2b8 100644 --- a/docs/reference/compas_blender.artists.rst +++ b/docs/reference/compas_blender.artists.rst @@ -26,7 +26,6 @@ Geometry Artists CylinderArtist FrameArtist LineArtist - PlaneArtist PointArtist PointcloudArtist PolygonArtist diff --git a/docs/reference/compas_blender.rst b/docs/reference/compas_blender.rst index cffd988ff35..e1ec0e76577 100644 --- a/docs/reference/compas_blender.rst +++ b/docs/reference/compas_blender.rst @@ -19,6 +19,5 @@ Modules compas_blender.artists compas_blender.conversions compas_blender.geometry - compas_blender.utilities diff --git a/docs/reference/compas_blender.utilities.rst b/docs/reference/compas_blender.utilities.rst deleted file mode 100644 index 5863d52ffaf..00000000000 --- a/docs/reference/compas_blender.utilities.rst +++ /dev/null @@ -1,5 +0,0 @@ -******************************************************************************** -compas_blender.utilities -******************************************************************************** - -.. currentmodule:: compas_blender.utilities diff --git a/docs/reference/compas_ghpython.artists.rst b/docs/reference/compas_ghpython.artists.rst index 99204ba9255..26077f6c5ae 100644 --- a/docs/reference/compas_ghpython.artists.rst +++ b/docs/reference/compas_ghpython.artists.rst @@ -27,7 +27,6 @@ Geometry Artists CylinderArtist FrameArtist LineArtist - PlaneArtist PointArtist PolygonArtist PolyhedronArtist diff --git a/docs/reference/compas_rhino.geometry.rst b/docs/reference/compas_rhino.geometry.rst index e1fb5b57e5b..9fb0f2f3afa 100644 --- a/docs/reference/compas_rhino.geometry.rst +++ b/docs/reference/compas_rhino.geometry.rst @@ -11,7 +11,6 @@ Classes :toctree: generated/ :nosignatures: - RhinoCurve RhinoNurbsCurve RhinoNurbsSurface diff --git a/src/compas/datastructures/halfface/halfface.py b/src/compas/datastructures/halfface/halfface.py index 15a6f52839e..8878c154598 100644 --- a/src/compas/datastructures/halfface/halfface.py +++ b/src/compas/datastructures/halfface/halfface.py @@ -2519,8 +2519,8 @@ def is_edge_on_boundary(self, edge): -------- :meth:`is_vertex_on_boundary`, :meth:`is_face_on_boundary`, :meth:`is_cell_on_boundary` - Note - ---- + Notes + ----- This method simply checks if u-v or v-u is on the edge of the volmesh. The direction u-v does not matter. diff --git a/src/compas/files/ply.py b/src/compas/files/ply.py index 450180e70ae..e8b14ecefc1 100644 --- a/src/compas/files/ply.py +++ b/src/compas/files/ply.py @@ -144,21 +144,6 @@ class PLYReader(object): The faces found in the file. Each face is a dictionary of property names and property values. - Class Attributes - ---------------- - keywords : list[str] - Reserved keywords in PLY format language. - property_types : dict[str, object] - Mapping between PLY property types and Python types. - binary_property_types : dict[str, str] - Mapping between PLY property types and binary type strings. - number_of_bytes_per_type : dict[str, int] - Mapping between PLY property types and number of bytes. - struct_format_per_type : dict[str, str] - Mapping between PLY property types and struct formats. - binary_byte_order : dict[str, str] - Mapping between endian type and endian symbol. - """ keywords = ["ply", "format", "comment", "element", "property", "end_header"] diff --git a/src/compas/geometry/brep/brep.py b/src/compas/geometry/brep/brep.py index aea8e0c2e6b..b824e17c5a7 100644 --- a/src/compas/geometry/brep/brep.py +++ b/src/compas/geometry/brep/brep.py @@ -168,15 +168,6 @@ class Brep(Geometry): is_surface : bool, read-only True if this brep is a surface, False otherwise. - Other Attributes - ---------------- - native_brep - The underlying instance of the backend brep. - type : :class:`~compas.geometry.BrepType`, read-only - The type of Brep shape. - orientation : :class:`~compas.geometry.BrepOrientation`, read-obly - Orientation of the shape. - """ def __new__(cls, *args, **kwargs): diff --git a/src/compas/geometry/surfaces/conical.py b/src/compas/geometry/surfaces/conical.py index 2def358d447..2b8dea3b1c4 100644 --- a/src/compas/geometry/surfaces/conical.py +++ b/src/compas/geometry/surfaces/conical.py @@ -21,12 +21,6 @@ class ConicalSurface(Surface): frame : :class:`Frame` The local coordinate system of the cone. - Attributes - ---------- - - Examples - -------- - """ DATASCHEMA = { diff --git a/src/compas/geometry/surfaces/cylindrical.py b/src/compas/geometry/surfaces/cylindrical.py index c6bdb4f60b7..c7d3200c38c 100644 --- a/src/compas/geometry/surfaces/cylindrical.py +++ b/src/compas/geometry/surfaces/cylindrical.py @@ -23,12 +23,6 @@ class CylindricalSurface(Surface): frame : :class:`Frame` The local coordinate system of the cylinder. - Attributes - ---------- - - Examples - -------- - """ DATASCHEMA = { diff --git a/src/compas/geometry/surfaces/planar.py b/src/compas/geometry/surfaces/planar.py index be14cc22e3f..e8cae9b2870 100644 --- a/src/compas/geometry/surfaces/planar.py +++ b/src/compas/geometry/surfaces/planar.py @@ -22,9 +22,6 @@ class PlanarSurface(Surface): ysize : float, optional The size of the surface in the local Y-direction. - Attributes - ---------- - """ DATASCHEMA = { diff --git a/src/compas_blender/conversions/meshes.py b/src/compas_blender/conversions/meshes.py index 8f86a77de00..47eba65b562 100644 --- a/src/compas_blender/conversions/meshes.py +++ b/src/compas_blender/conversions/meshes.py @@ -5,6 +5,11 @@ from compas.geometry import Translation from compas.datastructures import Mesh +# To Do +# ----- +# - [ ] Write COMPAS Mesh attributes to Blender +# - [ ] Read Mesh attributes from Blender to COMPAS +# - [ ] Include results of modifiers in VOMPAS Mesh # ============================================================================= # To Blender diff --git a/src/compas_rhino/conversions/meshes.py b/src/compas_rhino/conversions/meshes.py index 9d3284cd12c..545adf9ef93 100644 --- a/src/compas_rhino/conversions/meshes.py +++ b/src/compas_rhino/conversions/meshes.py @@ -2,7 +2,10 @@ from __future__ import division from __future__ import print_function -from itertools import izip_longest # type: ignore +try: + from itertools import zip_longest +except ImportError: + from itertools import izip_longest as zip_longest # type: ignore from System.Drawing import Color as SystemColor # type: ignore from System.Array import CreateInstance # type: ignore @@ -158,7 +161,7 @@ def vertices_and_faces_to_rhino( if disjoint: vertexcolors = [] - for face, facecolor in izip_longest(faces, facecolors or []): + for face, facecolor in zip_longest(faces, facecolors or []): f = len(face) if f < 3: diff --git a/src/compas_rhino/geometry/brep/brep.py b/src/compas_rhino/geometry/brep/brep.py index 2e6382d5f83..fbb9238abd2 100644 --- a/src/compas_rhino/geometry/brep/brep.py +++ b/src/compas_rhino/geometry/brep/brep.py @@ -4,7 +4,7 @@ from compas.geometry import Plane from compas_rhino.conversions import box_to_rhino -from compas_rhino.conversions import xform_to_rhino +from compas_rhino.conversions import transformation_to_rhino from compas_rhino.conversions import frame_to_rhino from compas_rhino.conversions import cylinder_to_rhino from compas_rhino.conversions import sphere_to_rhino @@ -260,7 +260,7 @@ def transform(self, matrix): None """ - self._brep.Transform(xform_to_rhino(matrix)) + self._brep.Transform(transformation_to_rhino(matrix)) def trim(self, trimming_plane, tolerance=TOLERANCE): """Trim this brep by the given trimming plane diff --git a/src/compas_rhino/geometry/trimesh/curvature.py b/src/compas_rhino/geometry/trimesh/curvature.py index 5767eb3c2d6..a248c6d8888 100644 --- a/src/compas_rhino/geometry/trimesh/curvature.py +++ b/src/compas_rhino/geometry/trimesh/curvature.py @@ -216,6 +216,7 @@ def trimesh_mean_curvature(M): @plugin(category="trimesh", requires=["Rhino"]) def trimesh_principal_curvature(M): r"""Compute the principal curvature of a triangle mesh. + Parameters ---------- M : tuple[sequence[[float, float, float] | :class:`~compas.geometry.Point`], sequence[[int, int, int]]]