From 6ca4cc5fd140191bb155361058a3e72232b40370 Mon Sep 17 00:00:00 2001 From: luz paz Date: Fri, 12 Aug 2022 19:36:58 -0400 Subject: [PATCH 1/2] Fix typos Found via `codespell -q 3 -S ./docs/old,./old_nodes -L indicies,nd,nin,pullrequest,ro,vertexes` --- core/group_update_system.py | 2 +- core/update_system.py | 6 +++--- docs/contributing/node_api.rst | 10 +++++----- docs/nodes/analyzer/select_similar.rst | 2 +- docs/nodes/analyzer/wave_paint.rst | 2 +- docs/nodes/curve/curve_formula.rst | 6 +++--- docs/nodes/curve/curve_frame.rst | 2 +- docs/nodes/curve/fillet_polyline.rst | 2 +- docs/nodes/exchange/FCStd_read_mod.rst | 2 +- docs/nodes/exchange/bezier_in.rst | 2 +- docs/nodes/exchange/export_rw3dm_json.rst | 2 +- docs/nodes/exchange/nurbs_in.rst | 2 +- docs/nodes/field/compose_vector_field.rst | 2 +- docs/nodes/field/coordinate_scalar_field.rst | 8 ++++---- docs/nodes/field/decompose_vector_field.rst | 4 ++-- docs/nodes/field/scalar_field_formula.rst | 4 ++-- docs/nodes/field/vector_field_formula.rst | 6 +++--- docs/nodes/field/vector_field_graph.rst | 6 +++--- docs/nodes/list_struct/start_end.rst | 2 +- docs/nodes/logic/loop_out.rst | 4 ++-- docs/nodes/modifier_make/clip_verts.rst | 2 +- docs/nodes/modifier_make/diamond_mesh.rst | 2 +- docs/nodes/solid/solid_to_mesh_mk2.rst | 2 +- docs/nodes/spatial/field_random_probe.rst | 2 +- docs/nodes/surface/adaptive_tessellate.rst | 2 +- docs/nodes/surface/evaluate_surface.rst | 10 +++++----- docs/nodes/surface/intersect_curve_surface.rst | 2 +- docs/nodes/surface/nearest_point.rst | 2 +- docs/nodes/surface/raycast.rst | 2 +- docs/nodes/surface/surface_formula.rst | 4 ++-- docs/nodes/surface/tessellate_trim.rst | 2 +- docs/nodes/transforms/transform_select.rst | 2 +- docs/nodes/vector/interpolation_stripes.rst | 2 +- docs/nodes/vector/vertices_sort.rst | 2 +- docs/nodes/viz/instancer.rst | 2 +- docs/user_interface/panels.rst | 2 +- .../Advanced/Genetic_algorithm_scripted_node.json | 2 +- menu.py | 2 +- .../SNLite_templates/demo/Genetic_algorithm.py | 2 +- node_scripts/SNLite_templates/demo/petal_sine.py | 2 +- node_scripts/SNLite_templates/demo/petal_sine_numpy.py | 2 +- node_scripts/SNLite_templates/templates/caching.py | 2 +- node_tree.py | 2 +- nodes/analyzer/nearest_point_on_mesh.py | 2 +- nodes/analyzer/object_insolation.py | 2 +- nodes/curve/interpolate_frame.py | 2 +- nodes/exchange/FCStd_write.py | 2 +- nodes/generators_extended/pentagon_tiler.py | 2 +- nodes/generators_extended/polygon_grid.py | 2 +- nodes/generators_extended/torus_knot_mk2.py | 2 +- nodes/logic/custom_switcher.py | 2 +- nodes/logic/range_switch.py | 2 +- nodes/modifier_make/adaptive_polygons_mk3.py | 2 +- nodes/scene/timer.py | 2 +- nodes/vector/vertices_sort.py | 2 +- nodes/viz/light_viewer.py | 2 +- old_nodes/adaptive_polygons_mk2.py | 2 +- old_nodes/lamp_out.py | 2 +- old_nodes/quaternion_out.py | 2 +- ui/presets.py | 2 +- ui/sv_IO_panel.py | 2 +- utils/curve/algorithms.py | 4 ++-- utils/geom.py | 6 +++--- utils/geom_2d/dcel.py | 2 +- utils/intersect_edges.py | 2 +- utils/modules/profile_mk3/interpreter.py | 6 +++--- utils/modules/triangle_utils.py | 2 +- utils/rigid_origami_utils.py | 4 ++-- utils/sv_script.py | 2 +- utils/testing.py | 4 ++-- 70 files changed, 100 insertions(+), 100 deletions(-) diff --git a/core/group_update_system.py b/core/group_update_system.py index 5bf89a0033..51fcdc7970 100644 --- a/core/group_update_system.py +++ b/core/group_update_system.py @@ -58,7 +58,7 @@ def control_center(event): class GroupUpdateTree(us.UpdateTree): """Group trees has their own update method separate from main tree to have - more nice profiling statistics. Also, it keeps some specific to grop trees + more nice profiling statistics. Also, it keeps some specific to group trees statuses.""" get: Callable[['GrTree'], 'GroupUpdateTree'] # type hinting does not work grate :/ diff --git a/core/update_system.py b/core/update_system.py index e9c230b3ff..fc05e06d50 100644 --- a/core/update_system.py +++ b/core/update_system.py @@ -425,8 +425,8 @@ def update_animation(cls, event: ev.AnimationEvent): def main_update(cls, tree: NodeTree, update_nodes=True, update_interface=True) -> Generator['SvNode', None, None]: """Thi generator is for the triggers. It can update outdated nodes and update UI. Should be used only with main trees, the group trees should - use different method to separate profiling statistics. Whe it called the - tree should have information of what is outdated""" + use different method to separate profiling statistics. When it's called + the tree should have information of what is outdated""" # print(f"UPDATE NODES {event.type=}, {event.tree.name=}") up_tree = cls.get(tree, refresh_tree=True) @@ -552,7 +552,7 @@ def __sort_nodes(self, from_nodes: frozenset['SvNode'] = None, to_nodes: frozenset['SvNode'] = None)\ -> list[tuple['SvNode', list[NodeSocket]]]: - """Sort nodes of the tree in proper execution order. Whe all given + """Sort nodes of the tree in proper execution order. When all given parameters are None it uses all tree nodes :from_nodes: if given it sorts only next nodes from given ones :to_nodes: if given it sorts only previous nodes from given diff --git a/docs/contributing/node_api.rst b/docs/contributing/node_api.rst index 759e9d2b87..246b3e1f7c 100644 --- a/docs/contributing/node_api.rst +++ b/docs/contributing/node_api.rst @@ -331,7 +331,7 @@ idea. Now it's only used in Dictionary output node. The problem is that this can easily lead to losses of user connections what breaks node setups. For example in Geometry Nodes project there was a decision that sockets should be independent to data layer. So to generate such nodes is not recommended now. -If there is now way but to have this functionality possible solution could be +If there is no way but to have this functionality possible solution could be to add a button to a node which would recreate sockets explicitly. .. code-block:: python @@ -555,7 +555,7 @@ There are helping functions / generators to perform data matching in .. _experimental_vectorization: .. note:: - There are two experimental approaches to automatize data matching. One can + There are two experimental approaches to automate data matching. One can be found in ``utils.nodes_mixins.recursive_nodes`` and another in ``utils.vectorize`` modules. Both of them can handle not only list of objects but and nested to each other lists of objects with arbitrary @@ -575,7 +575,7 @@ There are helping functions / generators to perform data matching in .. note:: In future vectorization should leve the nodes area and arrive to execution system. In this case nodes only have to add information to sockets to give to - execution system to now how to match data. + execution system to know how to match data. Data structure ^^^^^^^^^^^^^^ @@ -696,7 +696,7 @@ from ``utils.logging`` module or by using ``node.debug``, ``node.info`` and other aliases. If a node rises an error it will appear in console in next format: ``data and -time [loging level] module name:line number : error name`` +time [logging level] module name:line number : error name`` Traceback is switch off for all logging levels except debug one. If you need it make sure that you have appropriate logging level in the settings. @@ -886,7 +886,7 @@ Improve existing node ^^^^^^^^^^^^^^^^^^^^^ First is when you add extra functionality to some node. It's possible by adding -extra buttons, sockets, modes. Whe you add something like this you should ensure +extra buttons, sockets, modes. When you add something like this you should ensure that default behaviour will be unchanged. New socket, in most cases, can be placed anywhere among existing ones but it diff --git a/docs/nodes/analyzer/select_similar.rst b/docs/nodes/analyzer/select_similar.rst index def880e273..203b7ece28 100644 --- a/docs/nodes/analyzer/select_similar.rst +++ b/docs/nodes/analyzer/select_similar.rst @@ -44,7 +44,7 @@ This node has the following parameters: * **Perimeter**. Faces with similar perimeter. * **Normal**. Faces with similar normal vector. * **CoPlanar**. Faces nearly coplanar to selected. -- **Compare by**. Comparasion operator to use. Available values are **=**, **>=**, **<=**. +- **Compare by**. Comparison operator to use. Available values are **=**, **>=**, **<=**. - **Threshold**. Similarity threshold. This parameter can be also provided as input. Outputs diff --git a/docs/nodes/analyzer/wave_paint.rst b/docs/nodes/analyzer/wave_paint.rst index 22a677250a..e15fa55151 100644 --- a/docs/nodes/analyzer/wave_paint.rst +++ b/docs/nodes/analyzer/wave_paint.rst @@ -50,7 +50,7 @@ This node has the following parameters: - **Neighbour faces**. Visible only if **Mode** parameter is set to **Faces**. This defines which faces are considered to be neighbour. The available modes are: - **By Edge**. Faces that share an edge are considered to be neighbour. - - **By Vertex**. Faces that share a vertex are considered to be neigbhour. + - **By Vertex**. Faces that share a vertex are considered to be neighbour. Outputs ------- diff --git a/docs/nodes/curve/curve_formula.rst b/docs/nodes/curve/curve_formula.rst index 8a10a0d13d..927125b2c1 100644 --- a/docs/nodes/curve/curve_formula.rst +++ b/docs/nodes/curve/curve_formula.rst @@ -62,15 +62,15 @@ This node has the following parameters: * **Formula 1**, **Formula 2**, **Formula 3**. Formulas for 3 components defining curve points in the used coordinate system. Default values define - simple helix curve in the carthesian coordinates. + simple helix curve in the cartesian coordinates. * **Output**. This defined the coordinate system being used, and thus it defines the exact meaning of formula parameters. The available modes are: - * **Carthesian**. Three formulas will define correspondingly X, Y and Z coordinates. + * **Cartesian**. Three formulas will define correspondingly X, Y and Z coordinates. * **Cylindrical**. Three formulas will define correspondingly Rho, Phi and Z coordinates. * **Spherical**. Three formulas will define correspondingly Rho, Phi and Theta coordinates. - The default mode is **Carthesian**. + The default mode is **Cartesian**. * **Vectorize**. This parameter is available in the N panel only. If enabled, then to evaluate formulas for a series of input values, the node will use diff --git a/docs/nodes/curve/curve_frame.rst b/docs/nodes/curve/curve_frame.rst index 945835b386..aebd0269f2 100644 --- a/docs/nodes/curve/curve_frame.rst +++ b/docs/nodes/curve/curve_frame.rst @@ -5,7 +5,7 @@ Functionality ------------- This node calculates a reference frame of a curve (also known as Frenet_ frame) -for the given value of curve's T parameter. Basically, the node allowes one to +for the given value of curve's T parameter. Basically, the node allows one to place some object at the curve, by aligning the object with curve's "natural" orientation. diff --git a/docs/nodes/curve/fillet_polyline.rst b/docs/nodes/curve/fillet_polyline.rst index 551a6d4f77..2ff8803bec 100644 --- a/docs/nodes/curve/fillet_polyline.rst +++ b/docs/nodes/curve/fillet_polyline.rst @@ -11,7 +11,7 @@ closed or not. The curve is generated by plotting a polyline through the points, and then rounding all corners by replacing them with circular arc. -Instead of circluar arcs, the node can generate segments of quadratic Bezier +Instead of circular arcs, the node can generate segments of quadratic Bezier curves. This option can be useful, for example, if one of nodes applied later can not handle rational NURBS curves. diff --git a/docs/nodes/exchange/FCStd_read_mod.rst b/docs/nodes/exchange/FCStd_read_mod.rst index 140658d711..28c3dec7e8 100644 --- a/docs/nodes/exchange/FCStd_read_mod.rst +++ b/docs/nodes/exchange/FCStd_read_mod.rst @@ -7,7 +7,7 @@ Functionality This node is an experimental modification of the original FCStd Read node. This node reads one or more FCStd files, and -- intputs: Labels can be used to narrow down which objects you wish retrieve from the files. +- inputs: Labels can be used to narrow down which objects you wish retrieve from the files. - outputs: the `obj.Shape` as a Solid socket, it also - outputs: `obj.FullName, obj.Name, obj.Label` in the Names socket. diff --git a/docs/nodes/exchange/bezier_in.rst b/docs/nodes/exchange/bezier_in.rst index c946554c54..447f64d748 100644 --- a/docs/nodes/exchange/bezier_in.rst +++ b/docs/nodes/exchange/bezier_in.rst @@ -28,7 +28,7 @@ Parameters This node has the following parameters: * **Sort**. If checked, the node will sort selected objects by name. Checked by default. -* **Apply matricess**. If checked, the node will apply all transforms to +* **Apply matrices**. If checked, the node will apply all transforms to Blender's objects before bringing the coordinates into Sverchok. Checked by default. * **Concatenate segments**. If checked, join Bezier segments of the curve into diff --git a/docs/nodes/exchange/export_rw3dm_json.rst b/docs/nodes/exchange/export_rw3dm_json.rst index 9c738abd41..e2953450fa 100644 --- a/docs/nodes/exchange/export_rw3dm_json.rst +++ b/docs/nodes/exchange/export_rw3dm_json.rst @@ -13,7 +13,7 @@ Functionality This node allows to export a set of NURBS_ Curve or Surface objects to a JSON format, supported by rw3dm_ utility; that utility can be used to convert -such JSON formath to Rhinoceros ® 3D format. +such JSON format to Rhinoceros ® 3D format. .. _rw3dm: https://github.com/orbingol/rw3dm .. _NURBS: https://en.wikipedia.org/wiki/Non-uniform_rational_B-spline diff --git a/docs/nodes/exchange/nurbs_in.rst b/docs/nodes/exchange/nurbs_in.rst index 8a830f07b8..8dfe5fc90f 100644 --- a/docs/nodes/exchange/nurbs_in.rst +++ b/docs/nodes/exchange/nurbs_in.rst @@ -44,7 +44,7 @@ This node has the following parameters: The default option is **Geomdl**, when it is available; otherwise, built-in implementation is used. * **Sort**. If checked, the node will sort selected objects by name. Checked by default. -* **Apply matricess**. If checked, the node will apply all transforms to +* **Apply matrices**. If checked, the node will apply all transforms to Blender's objects before bringing the coordinates into Sverchok. Checked by default. diff --git a/docs/nodes/field/compose_vector_field.rst b/docs/nodes/field/compose_vector_field.rst index 66001b1ce0..c112b3b853 100644 --- a/docs/nodes/field/compose_vector_field.rst +++ b/docs/nodes/field/compose_vector_field.rst @@ -22,7 +22,7 @@ This node has the following parameter: * **Coordinates**. This defines the coordinate system being used. The available modes are: - * **Carthesian**. Compose the vector field from X, Y and Z fields. + * **Cartesian**. Compose the vector field from X, Y and Z fields. * **Cylindrical**. Compose the vector field from Rho, Phi and Z fields. * **Spherical**. Compose the vector field from Rho, Phi and Theta fields. diff --git a/docs/nodes/field/coordinate_scalar_field.rst b/docs/nodes/field/coordinate_scalar_field.rst index 47885904e0..4096da4f5e 100644 --- a/docs/nodes/field/coordinate_scalar_field.rst +++ b/docs/nodes/field/coordinate_scalar_field.rst @@ -8,7 +8,7 @@ This node generates a Scalar Field, the value of which at each point equals to one of coordinates of that point. For example, this node can generate a scalar field generated by function `S(x,y,z) = x`. -Carthesian, cylindrical and spherical coordinates are supported. +Cartesian, cylindrical and spherical coordinates are supported. Inputs ------ @@ -22,9 +22,9 @@ This node has the following parameter: * **Coordinate**. The coordinate to use. The available values are: - * **X**. Carthesian X coordinate. This option is the default one. - * **Y**. Carthesian Y coordinate. - * **Z**. Carthesian Z coordinate, or cylindrical Z coordinate - they are identical. + * **X**. Cartesian X coordinate. This option is the default one. + * **Y**. Cartesian Y coordinate. + * **Z**. Cartesian Z coordinate, or cylindrical Z coordinate - they are identical. * **Rho - Cylindrical**. Cylindrical Rho coordinate. * **Phi**. Cylindrical or spherical Phi coordinate - they are identical. * **Rho - Spherical**. Spherical Rho coordinate. diff --git a/docs/nodes/field/decompose_vector_field.rst b/docs/nodes/field/decompose_vector_field.rst index bac6895de8..882cee4567 100644 --- a/docs/nodes/field/decompose_vector_field.rst +++ b/docs/nodes/field/decompose_vector_field.rst @@ -20,11 +20,11 @@ This node has the following parameter: * **Coordinates**. This defines the coordinate system to be used. The available options are: - * **Carthesian**. The vector field is decomposed into X, Y and Z fields. + * **Cartesian**. The vector field is decomposed into X, Y and Z fields. * **Cylindrical**. The vector field is decomposed into Rho, Phi and Z fields. * **Spherical**. The vector field is decomposed into Rho, Phi and Theta fields. - The default mode is **Carthesian**. + The default mode is **Cartesian**. Outputs ------- diff --git a/docs/nodes/field/scalar_field_formula.rst b/docs/nodes/field/scalar_field_formula.rst index 8b3738c76f..0adb5b95c0 100644 --- a/docs/nodes/field/scalar_field_formula.rst +++ b/docs/nodes/field/scalar_field_formula.rst @@ -56,7 +56,7 @@ Each variable used in the formula, except for `V` and the coordinate variables, The following variables are considered to be point coordinates: -* For Carthesian mode: `x`, `y` and `z`; +* For Cartesian mode: `x`, `y` and `z`; * For Cylindrical mode: `rho`, `phi` and `z`; * For Spherical mode: `rho`, `phi` and `theta`. @@ -67,7 +67,7 @@ This node has the following parameters: * **Input**. This defines the coordinate system being used. The available values are **Carhtesian**, **Cylindrical** and **Spherical**. The default - value is **Carthesian**. + value is **Cartesian**. * **Formula**. The formula which defines the scalar field. The default formula is `x*x + y*y + z*z`. * **Vectorize**. This parameter is available in the N panel only. If enabled, diff --git a/docs/nodes/field/vector_field_formula.rst b/docs/nodes/field/vector_field_formula.rst index 37727f252d..a5c2393d59 100644 --- a/docs/nodes/field/vector_field_formula.rst +++ b/docs/nodes/field/vector_field_formula.rst @@ -58,7 +58,7 @@ also becomes additional input. The following variables are considered to be point coordinates: -* For Carthesian input mode: `x`, `y` and `z`; +* For Cartesian input mode: `x`, `y` and `z`; * For Cylindrical input mode: `rho`, `phi` and `z`; * For Spherical input mode: `rho`, `phi` and `theta`. @@ -74,7 +74,7 @@ This node has the following parameters: * **Input**. This defines the coordinate system being used for the input points. The available values are **Carhtesian**, **Cylindrical** and - **Spherical**. The default value is **Carthesian**. + **Spherical**. The default value is **Cartesian**. * **Formula1**, **Formula2**, **Formula3**. Three formulas defining the respective coordinate / components of the resulting vectors: X, Y, Z, or Rho, Phi, Z, or Rho, Phi, Theta, depending on the **Output** parameter. The @@ -82,7 +82,7 @@ This node has the following parameters: the whole space 90 degrees around the Z axis. * **Output**. This defines the coordinate system in which the resulting vectors are expressed. The available values are **Carhtesian**, **Cylindrical** and - **Spherical**. The default value is **Carthesian**. + **Spherical**. The default value is **Cartesian**. * **Vectorize**. This parameter is available in the N panel only. If enabled, then to evaluate formulas for a series of input values, the node will use NumPy functions to perform several computations at a time; otherwise, the diff --git a/docs/nodes/field/vector_field_graph.rst b/docs/nodes/field/vector_field_graph.rst index 349cced9df..3ecf32bff4 100644 --- a/docs/nodes/field/vector_field_graph.rst +++ b/docs/nodes/field/vector_field_graph.rst @@ -8,7 +8,7 @@ This node visualizes a Vector Field object by generating arrows (which represent vectors) from points of original space to the results of vector field application to those original points. -The original points are generated as carthesian grid in 3D space. +The original points are generated as cartesian grid in 3D space. This node is mainly intended for visualization. @@ -21,7 +21,7 @@ This node has the following inputs: * **Bounds**. The list of points which define the area of space, in which the field is to be visualized. Only the bounding box of these points is used. * **Scale**. The scale of arrows to be generated. The default value is 1.0. -* **SamplesX**, **SamplesY**, **SamplesZ**. The number of samples of carthesian +* **SamplesX**, **SamplesY**, **SamplesZ**. The number of samples of cartesian grid, from which the arrows are to be generated. The default value is 10. Parameters @@ -30,7 +30,7 @@ Parameters This node has the following parameters: * **Auto scale**. Select the scale of arrows automatically, so that the largest - arrows are not bigger than the distance between carthesian grid points. + arrows are not bigger than the distance between cartesian grid points. Checked by default. * **Join**. If checked, then all arrows will be merged into one mesh object. Otherwise, separate object will be generated for each arrow. Checked by diff --git a/docs/nodes/list_struct/start_end.rst b/docs/nodes/list_struct/start_end.rst index 1379f9ecdd..c808b14023 100644 --- a/docs/nodes/list_struct/start_end.rst +++ b/docs/nodes/list_struct/start_end.rst @@ -14,7 +14,7 @@ Inputs Properties ---------- -**level** - leve to take first and last items +**level** - level to take first and last items Outputs ------- diff --git a/docs/nodes/logic/loop_out.rst b/docs/nodes/logic/loop_out.rst index ae3850ba61..3ba173584c 100644 --- a/docs/nodes/logic/loop_out.rst +++ b/docs/nodes/logic/loop_out.rst @@ -21,14 +21,14 @@ Inputs **Skip**: If a True value is inputted the loop the result wont be added to the output, like a internal mask. (Only if Loop In is in For Each Mode). -Data0, Data1... if working on Range Mode inputs will be created coping the Loop in Outputs. If working in For Each mode they will be created when linking the Loop Out inputs +Data0, Data1... if working on Range Mode inputs will be created copying the Loop in Outputs. If working in For Each mode they will be created when linking the Loop Out inputs Outputs ------- -Data0, Data1... In Range mode: inputs will be created coping the Loop in Outputs. In For Each mode they will be copy the Loop Out inputs. +Data0, Data1... In Range mode: inputs will be created copying the Loop in Outputs. In For Each mode they will be copy the Loop Out inputs. Examples diff --git a/docs/nodes/modifier_make/clip_verts.rst b/docs/nodes/modifier_make/clip_verts.rst index bf8cc96ac2..93189cfec1 100644 --- a/docs/nodes/modifier_make/clip_verts.rst +++ b/docs/nodes/modifier_make/clip_verts.rst @@ -5,7 +5,7 @@ Functionality ------------- This node cuts off (clips, truncates) all vertices of original mesh, by cutting -each edge in half, and then connecting centers of all edges incidential to each +each edge in half, and then connecting centers of all edges incidental to each vertex, to produce new faces. Please refer to usage examples for better understanding. diff --git a/docs/nodes/modifier_make/diamond_mesh.rst b/docs/nodes/modifier_make/diamond_mesh.rst index 7ca35c79f5..4c77733127 100644 --- a/docs/nodes/modifier_make/diamond_mesh.rst +++ b/docs/nodes/modifier_make/diamond_mesh.rst @@ -5,7 +5,7 @@ Functionality ------------- This node generates a new (rhomboidal / diamond-like) mesh, by replacing each -edge of original mesh by a rhombus (connecting centers of two incidential +edge of original mesh by a rhombus (connecting centers of two incidental faces). This can give interesting topology, especially in combination with "dual mesh" and/or "triangulate" and/or "join triangles" and/or "limited dissolve" nodes. diff --git a/docs/nodes/solid/solid_to_mesh_mk2.rst b/docs/nodes/solid/solid_to_mesh_mk2.rst index ed617356be..4bff539921 100644 --- a/docs/nodes/solid/solid_to_mesh_mk2.rst +++ b/docs/nodes/solid/solid_to_mesh_mk2.rst @@ -31,7 +31,7 @@ Methods **Trivial**: ... -**Lenient**: This mode is based on Yorik van Havre's Blender FCStd importer code, but modified for speed. This mode produces tris, quads and ngons. It may not have coherent polygon normals. This handles curves and polygons with holes. This mode attemps to remove any duplicate/reverse faces. +**Lenient**: This mode is based on Yorik van Havre's Blender FCStd importer code, but modified for speed. This mode produces tris, quads and ngons. It may not have coherent polygon normals. This handles curves and polygons with holes. This mode attempts to remove any duplicate/reverse faces. If you really want to understand these algorithms, you should read the source code - it is the best reference. diff --git a/docs/nodes/spatial/field_random_probe.rst b/docs/nodes/spatial/field_random_probe.rst index 02d5fdaead..2850736e06 100644 --- a/docs/nodes/spatial/field_random_probe.rst +++ b/docs/nodes/spatial/field_random_probe.rst @@ -97,7 +97,7 @@ This node has the following outputs: Examples of usage ----------------- -Generate cubes near the cyllinder: +Generate cubes near the cylinder: .. image:: https://user-images.githubusercontent.com/284644/81504481-f2be5900-9302-11ea-8948-fb189c3fc3c5.png diff --git a/docs/nodes/surface/adaptive_tessellate.rst b/docs/nodes/surface/adaptive_tessellate.rst index fd8531b0c2..4dea627542 100644 --- a/docs/nodes/surface/adaptive_tessellate.rst +++ b/docs/nodes/surface/adaptive_tessellate.rst @@ -7,7 +7,7 @@ Functionality This node generates an adaptive tessellation for the given surface, i.e. the mesh which represents the surface, and has smaller amount of subdivisions in places where the mesh is nearly flat and more subdivisions where the surface -behaivour is more interesting. +behaviour is more interesting. In most cases, one converts a Surface object into a mesh by use of "Evaluate Surface" node. That node generates a subdivision by cartesian (rectangular) diff --git a/docs/nodes/surface/evaluate_surface.rst b/docs/nodes/surface/evaluate_surface.rst index cf319a6914..228fc74028 100644 --- a/docs/nodes/surface/evaluate_surface.rst +++ b/docs/nodes/surface/evaluate_surface.rst @@ -6,7 +6,7 @@ Functionality This node calculates points on the Surface corresponding to provided values of U and V surface parameters. The values of U and V can be either provided -explicitly, or generated by the node to generate carthesian (rectangular) grid. +explicitly, or generated by the node to generate cartesian (rectangular) grid. Inputs ------ @@ -23,7 +23,7 @@ This node has the following inputs: **Evaluation mode** parameter is set to **Explicit**, and **Input mode** is set to **Vertices**. * **SamplesU**, **SamplesV**. Number of samples along U and V direction, used - to generate carthesian grid. These inputs are available only when the + to generate cartesian grid. These inputs are available only when the **Evaluate** parameter is set to **Grid**. The default value is 25. Parameters @@ -37,7 +37,7 @@ This node has the following parameters: * **Explicit**. U and V parameters are to be provided in inputs of this node. Depending on **Input mode** parameter, either **U** and **V** inputs, or **Vertices** input will be used. - * **Grid**. The node will generate evenly-spaced carthesian grid with number + * **Grid**. The node will generate evenly-spaced cartesian grid with number of samples along U and V direction defined by **SamplesU** and **SamplesV** inputs, correspondingly. @@ -90,9 +90,9 @@ Outputs This node has the following outputs: * **Vertices**. The calculated points on the surface. -* **Edges**. The edges of carthesian grid on the surface. This output is only +* **Edges**. The edges of cartesian grid on the surface. This output is only available when the **Evaluate** parameter is set to **Grid**. -* **Faces**. The faces of carthesian grid on the surface. This output is only +* **Faces**. The faces of cartesian grid on the surface. This output is only available when the **Evaluate** parameter is set to **Grid**. Examples of usage diff --git a/docs/nodes/surface/intersect_curve_surface.rst b/docs/nodes/surface/intersect_curve_surface.rst index 414d5919fe..f097595810 100644 --- a/docs/nodes/surface/intersect_curve_surface.rst +++ b/docs/nodes/surface/intersect_curve_surface.rst @@ -22,7 +22,7 @@ then searches for sinle intersection in each segment. For the initial guess, at the first step the node generates a rough approximation of the surface with a mesh by evaluating the surface in points of -carthesian grid. +cartesian grid. Inputs ------ diff --git a/docs/nodes/surface/nearest_point.rst b/docs/nodes/surface/nearest_point.rst index 6f3df8a647..4c7fe6d0c1 100644 --- a/docs/nodes/surface/nearest_point.rst +++ b/docs/nodes/surface/nearest_point.rst @@ -21,7 +21,7 @@ hand, is usable in cases when you do not know formulas for your surface - for example, it was received by some approximation. At the first step of it's algorithm, this node evaluates the surface in points -of a carthesian grid, and selects the closest of them. This point is then used +of a cartesian grid, and selects the closest of them. This point is then used as an initial guess for the more precise algorithm. In case there are several points on the surface with equal distance to the diff --git a/docs/nodes/surface/raycast.rst b/docs/nodes/surface/raycast.rst index e760b36ee7..d3cf20fd20 100644 --- a/docs/nodes/surface/raycast.rst +++ b/docs/nodes/surface/raycast.rst @@ -54,7 +54,7 @@ This node has the following parameters: default. * **Samples**. This parameter is available in the N panel only, if **Precise** parameter is checked. To find the "initial guess" point for numerical method, - this node evaluates the surface in points of carthesian grid, and uses + this node evaluates the surface in points of cartesian grid, and uses Blender's "BVH raycast" method. This input defines the number of samples for this first step. The higher this number is, the more precise the initial guess is, so the less work for numeric method; but the more time will this diff --git a/docs/nodes/surface/surface_formula.rst b/docs/nodes/surface/surface_formula.rst index 8277edcdce..9dc0bbdfd2 100644 --- a/docs/nodes/surface/surface_formula.rst +++ b/docs/nodes/surface/surface_formula.rst @@ -66,11 +66,11 @@ This node has the following parameters: * **Output**. This defined the coordinate system being used, and thus it defines the exact meaning of formula parameters. The available modes are: - * **Carthesian**. Three formulas will define correspondingly X, Y and Z coordinates. + * **Cartesian**. Three formulas will define correspondingly X, Y and Z coordinates. * **Cylindrical**. Three formulas will define correspondingly Rho, Phi and Z coordinates. * **Spherical**. Three formulas will define correspondingly Rho, Phi and Theta coordinates. - The default mode is **Carthesian**. + The default mode is **Cartesian**. * **Vectorize**. This parameter is available in the N panel only. If enabled, then to evaluate formulas for a series of input values, the node will use diff --git a/docs/nodes/surface/tessellate_trim.rst b/docs/nodes/surface/tessellate_trim.rst index 048864d771..c46d2ddcfb 100644 --- a/docs/nodes/surface/tessellate_trim.rst +++ b/docs/nodes/surface/tessellate_trim.rst @@ -4,7 +4,7 @@ Tessellate & Trim Surface Functionality ------------- -This node "visualizes" the Surface object (turns it into a mesh), by drawing a carthesian (rectangular) grid on it and then cutting (trimming) that grid with the specified Curve object. +This node "visualizes" the Surface object (turns it into a mesh), by drawing a cartesian (rectangular) grid on it and then cutting (trimming) that grid with the specified Curve object. The provided trimming curve is supposed to be planar (flat), and be defined in the surface's U/V coordinates frame. diff --git a/docs/nodes/transforms/transform_select.rst b/docs/nodes/transforms/transform_select.rst index 6de4d80cef..7ef285280a 100644 --- a/docs/nodes/transforms/transform_select.rst +++ b/docs/nodes/transforms/transform_select.rst @@ -33,7 +33,7 @@ Outputs This node has the following outputs: - **Vertices**. The whole group of vertices -- **PolyEdge**. A copy of the PolyEdge data supplyed +- **PolyEdge**. A copy of the PolyEdge data supplied - **PolyEdge O**. PolyEdge data with vertices which are true and false (index referred to "Vertices" output) - **Vertices T**. Only the vertices marked as true - **PolyEdge T**. PolyEdge data with vertices which are true (index referred to "Vertices T" output) diff --git a/docs/nodes/vector/interpolation_stripes.rst b/docs/nodes/vector/interpolation_stripes.rst index cc28b9159e..d005639a7e 100644 --- a/docs/nodes/vector/interpolation_stripes.rst +++ b/docs/nodes/vector/interpolation_stripes.rst @@ -36,7 +36,7 @@ Parameters **Factor** - is multiplyer after produce function as sinus/cosinus/etc. **Scale** - is multiplyer before produce function as sinus/cosinus/etc. -**Function** - popup function between Simple/Multiplyed/Sinus/Cosinus/Power/Square +**Function** - popup function between Simple/Multiplied/Sinus/Cosinus/Power/Square Parameters extended ------------------- diff --git a/docs/nodes/vector/vertices_sort.rst b/docs/nodes/vector/vertices_sort.rst index 2135b4afcc..d383cda1fd 100644 --- a/docs/nodes/vector/vertices_sort.rst +++ b/docs/nodes/vector/vertices_sort.rst @@ -20,7 +20,7 @@ Parameters +================+=================+=============+====================================================+ | **Vertices** | Vector | | vertices from nodes generators or lists (in, out) | +----------------+-----------------+-------------+----------------------------------------------------+ -| **PolyEdge** | Int | | index of polgons or edges (in, out) | +| **PolyEdge** | Int | | index of polygons or edges (in, out) | +----------------+-----------------+-------------+----------------------------------------------------+ | **Sortmode** | XYZ, Dist, | XYZ | will sort the index according to different criteria| | | Axis, Connect, | | | diff --git a/docs/nodes/viz/instancer.rst b/docs/nodes/viz/instancer.rst index 9163017822..1e2f99b9f8 100644 --- a/docs/nodes/viz/instancer.rst +++ b/docs/nodes/viz/instancer.rst @@ -63,7 +63,7 @@ Parameters | Collection | Collection where to put instances | +-----------------+--------------------------------------------------------------------------+ | Full copy | All properties related with given objects will be copied into instances | -| | this property can be used for coping modifier stack for example | +| | this property can be used for copying modifier stack for example | +-----------------+--------------------------------------------------------------------------+ Caveats diff --git a/docs/user_interface/panels.rst b/docs/user_interface/panels.rst index 22749093f6..8335dffa53 100644 --- a/docs/user_interface/panels.rst +++ b/docs/user_interface/panels.rst @@ -367,7 +367,7 @@ When management mode is enabled, there are more buttons: :align: right * **Import preset from Gist**. You will be asked for Gist ID or full URL of the - gist, and preset name. If you have gist URL in the clibpoard, it will be + gist, and preset name. If you have gist URL in the clipboard, it will be pasted automatically. * **Import preset from file**. File browser will appear to allow you to select a `.json` file to import. In the left bottom part of this file browser, there diff --git a/json_examples/Advanced/Genetic_algorithm_scripted_node.json b/json_examples/Advanced/Genetic_algorithm_scripted_node.json index 983603c5d0..7dfbe95e12 100644 --- a/json_examples/Advanced/Genetic_algorithm_scripted_node.json +++ b/json_examples/Advanced/Genetic_algorithm_scripted_node.json @@ -356,7 +356,7 @@ 1210.0062255859375 ], "params": { - "text": "Nikitron 2020 - genetic algorithm attempt. Moving data set points to fit pattern. turn off processing and use ctrl+F5 to run once. Threshod inside SNL till 0.995, not more" + "text": "Nikitron 2020 - genetic algorithm attempt. Moving data set points to fit pattern. turn off processing and use ctrl+F5 to run once. Threshold inside SNL till 0.995, not more" }, "use_custom_color": true, "width": 509.6258544921875 diff --git a/menu.py b/menu.py index 0e3e01fa6a..e73b5b74ec 100644 --- a/menu.py +++ b/menu.py @@ -114,7 +114,7 @@ def include_submenus(node_cats): def juggle_and_join(node_cats): ''' - this step post processes the extended catagorization used + this step post processes the extended categorization used by ctrl+space dynamic menu, and attempts to merge previously joined categories. Why? Because the default menu gets very long if there are too many categories. diff --git a/node_scripts/SNLite_templates/demo/Genetic_algorithm.py b/node_scripts/SNLite_templates/demo/Genetic_algorithm.py index 64e2b9225d..aef19273d4 100644 --- a/node_scripts/SNLite_templates/demo/Genetic_algorithm.py +++ b/node_scripts/SNLite_templates/demo/Genetic_algorithm.py @@ -1,5 +1,5 @@ # taken from https://github.com/nortikin/simple-ga -# making comparement between vertices and choose best match +# comparing between vertices and choosing best match import random from functools import reduce diff --git a/node_scripts/SNLite_templates/demo/petal_sine.py b/node_scripts/SNLite_templates/demo/petal_sine.py index a4e0216415..a2c6004d11 100644 --- a/node_scripts/SNLite_templates/demo/petal_sine.py +++ b/node_scripts/SNLite_templates/demo/petal_sine.py @@ -3,7 +3,7 @@ in vp_petal s default=10 nested=2 in profile_radius s ;=2.3 n=2 in amp s default=1.0 nested=2 -in origin v defautt=(0,0,0) n=2 +in origin v default=(0,0,0) n=2 out verts v out edges s """ diff --git a/node_scripts/SNLite_templates/demo/petal_sine_numpy.py b/node_scripts/SNLite_templates/demo/petal_sine_numpy.py index d56a72ab81..facd1123e2 100644 --- a/node_scripts/SNLite_templates/demo/petal_sine_numpy.py +++ b/node_scripts/SNLite_templates/demo/petal_sine_numpy.py @@ -3,7 +3,7 @@ in vp_petal s default=10 nested=2 in profile_radius s ;=2.3 n=2 in amp s default=1.0 nested=2 -in origin v defautt=(0,0,0) n=2 +in origin v default=(0,0,0) n=2 out verts v out edges s """ diff --git a/node_scripts/SNLite_templates/templates/caching.py b/node_scripts/SNLite_templates/templates/caching.py index 90177be890..8ab4c1e45d 100644 --- a/node_scripts/SNLite_templates/templates/caching.py +++ b/node_scripts/SNLite_templates/templates/caching.py @@ -9,7 +9,7 @@ def some_long_calculation(): # There are many ways to store the state of a node, or cache a one off calculation # -# you can pickle, for presistence beyond the current blender session: +# you can pickle, for persistence beyond the current blender session: # https://docs.python.org/3/library/pickle.html # # snlite also has a few internal caches, one specifically implemented for runtime caching, it is the user_dict diff --git a/node_tree.py b/node_tree.py index 63faa518d4..86a18a2747 100644 --- a/node_tree.py +++ b/node_tree.py @@ -120,7 +120,7 @@ def on_draft_mode_changed(self, context): # From the user perspective, some of node parameters # got new parameter values, so the setup should be recalculated; - # but techically, node properties were not changed + # but technically, node properties were not changed # (only other properties were shown in UI), so enabling/disabling # of draft mode does not automatically trigger tree update. # Here we trigger it manually. diff --git a/nodes/analyzer/nearest_point_on_mesh.py b/nodes/analyzer/nearest_point_on_mesh.py index 583b4cf677..4da733baac 100644 --- a/nodes/analyzer/nearest_point_on_mesh.py +++ b/nodes/analyzer/nearest_point_on_mesh.py @@ -53,7 +53,7 @@ def nearest_point_in_mesh(verts, faces, points, safe_check=True): def nearest_in_range(verts, faces, points, distance, safe_check=True, flat_output=True): ''' verts, faces and points: Expects multiple objects lists (level of nesting 3) - distace: expects a list with level of nesting of 2 + distance: expects a list with level of nesting of 2 ''' output = [[] for i in range(4)] for bvh, pts, dist in zip(svmesh_to_bvh_lists(verts, faces, safe_check), points, distance): diff --git a/nodes/analyzer/object_insolation.py b/nodes/analyzer/object_insolation.py index 741221ec3f..c3dcb44f7e 100644 --- a/nodes/analyzer/object_insolation.py +++ b/nodes/analyzer/object_insolation.py @@ -86,7 +86,7 @@ def sv_init(self, context): so('SvVerticesSocket', "Centers") #so('SvVerticesSocket', "HitP") so('SvStringsSocket', "Hours") - # self.inputs[2].prop[2] = -1 # z down # <--- mayybe? + # self.inputs[2].prop[2] = -1 # z down # <--- maybe? def sv_draw_buttons_ext(self, context, layout): row = layout.row(align=True) diff --git a/nodes/curve/interpolate_frame.py b/nodes/curve/interpolate_frame.py index 542fc253db..85aaf5c2f3 100644 --- a/nodes/curve/interpolate_frame.py +++ b/nodes/curve/interpolate_frame.py @@ -52,7 +52,7 @@ def interpolate(tknots, ts, points, quats): dts = (ts - t1s) / (t2s - t1s) #dts = np.clip(dts, 0.0, 1.0) # Just in case... matrix_out = [] - # TODO: ideally this shoulld be vectorized with numpy; + # TODO: ideally this should be vectorized with numpy; # but that would require implementation of quaternion # interpolation in numpy. for dt, base_index, point in zip(dts, base_indexes, points): diff --git a/nodes/exchange/FCStd_write.py b/nodes/exchange/FCStd_write.py index 431be64d80..11acdac61a 100644 --- a/nodes/exchange/FCStd_write.py +++ b/nodes/exchange/FCStd_write.py @@ -161,7 +161,7 @@ def fc_write_parts(fc_file, verts, faces, part_name, solid, mod): obj_names = set( [ i.Name for i in fc_root.Objects] ) - part_name += '_sv_' #->suffix added to avoid deleting erroneusly freecad objects + part_name += '_sv_' #->suffix added to avoid deleting freecad objects erroneously # SEARCH the freecad project for previous writed parts from this node diff --git a/nodes/generators_extended/pentagon_tiler.py b/nodes/generators_extended/pentagon_tiler.py index 06713e4b03..8678f6f14a 100644 --- a/nodes/generators_extended/pentagon_tiler.py +++ b/nodes/generators_extended/pentagon_tiler.py @@ -52,7 +52,7 @@ class SvPentagonTilerNode(bpy.types.Node, SverchCustomTreeNode): """ - Triggers: Hexagonal, Triangular, Ortogonal, + Triggers: Hexagonal, Triangular, Orthogonal, Tooltip: Create polygon array assambled to fill the plane. Triangles, Hexagons and Squares """ bl_idname = 'SvPentagonTilerNode' diff --git a/nodes/generators_extended/polygon_grid.py b/nodes/generators_extended/polygon_grid.py index 7297b07dc2..91448da162 100644 --- a/nodes/generators_extended/polygon_grid.py +++ b/nodes/generators_extended/polygon_grid.py @@ -248,7 +248,7 @@ def tiles_triangular(vert_list, edge_list, poly_list, tile, grid): class SvPolygonGridNode(bpy.types.Node, SverchCustomTreeNode): """ - Triggers: Hexagonal, Triangular, Ortogonal, + Triggers: Hexagonal, Triangular, Orthogonal, Tooltip: Create polygon array assambled to fill the plane. Triangles, Hexagons and Squares """ bl_idname = 'SvPolygonGridNode' diff --git a/nodes/generators_extended/torus_knot_mk2.py b/nodes/generators_extended/torus_knot_mk2.py index 7648cf9551..3db1e33ecd 100644 --- a/nodes/generators_extended/torus_knot_mk2.py +++ b/nodes/generators_extended/torus_knot_mk2.py @@ -329,7 +329,7 @@ def update_angles(self, context, au): point_density: IntProperty( name="Point Density", default=10, min=1, - description="Number of points per unit length used with adaptive resolutin", + description="Number of points per unit length used with adaptive resolution", update=updateNode) # VECTORS options diff --git a/nodes/logic/custom_switcher.py b/nodes/logic/custom_switcher.py index 3bb3c4a2b5..52a7f0e9d0 100644 --- a/nodes/logic/custom_switcher.py +++ b/nodes/logic/custom_switcher.py @@ -74,7 +74,7 @@ def draw_buttons_ext(self, context, layout): layout.prop(self, 'ui_scale', text='Size of buttons') def draw_buttons_3dpanel(self, layout, in_menu=None): - # I think it is moore appropriate place for coding layout of 3d panel + # I think it is more appropriate place for coding layout of 3d panel if not in_menu: row = layout.row(align=True) diff --git a/nodes/logic/range_switch.py b/nodes/logic/range_switch.py index 3673e03dd6..f2861eb611 100644 --- a/nodes/logic/range_switch.py +++ b/nodes/logic/range_switch.py @@ -192,7 +192,7 @@ def process(self): parameters = match_long_repeat([input_val, input_b1, input_b2]) - # update the numberr of switches based on number of inputs + # update the number of switches based on number of inputs old_switch_count = len(self.switches) new_switch_count = len(parameters[0]) diff --git a/nodes/modifier_make/adaptive_polygons_mk3.py b/nodes/modifier_make/adaptive_polygons_mk3.py index e196bc82e7..9c4c595a35 100644 --- a/nodes/modifier_make/adaptive_polygons_mk3.py +++ b/nodes/modifier_make/adaptive_polygons_mk3.py @@ -1131,7 +1131,7 @@ def _process_face(self, map_mode, output, recpt_face_data, donor, z_coef, z_offs # triangle will be processed as degenerated Quad, # where third and fourth vertices coincide. # In Tissue addon, this is the only mode possible for Quads. - # Someone may like that behaivour, so we allow it with setting... + # Someone may like that behaviour, so we allow it with setting... # # This can process NGons in even worse way: # it will take first three vertices and the last one diff --git a/nodes/scene/timer.py b/nodes/scene/timer.py index 6ef7702128..e3b21d864d 100644 --- a/nodes/scene/timer.py +++ b/nodes/scene/timer.py @@ -373,7 +373,7 @@ def update_duration(self, context): default=0, min=0) normalize: BoolProperty( - name="normalize", description="Display times as percetage of the duration", + name="normalize", description="Display times as percentage of the duration", default=False, update=updateNode) inhibit_update: BoolProperty( diff --git a/nodes/vector/vertices_sort.py b/nodes/vector/vertices_sort.py index 1a3b447c77..496455e55a 100644 --- a/nodes/vector/vertices_sort.py +++ b/nodes/vector/vertices_sort.py @@ -184,7 +184,7 @@ def mode_change(self, context): ("DIST", "Dist", "Distance", 2), ("AXIS", "Axis", "Axial sort", 3), ("CONNEX", "Connect", "Sort by connections", 4), - ("AXYZ", "Auto XYZ", "Sort by carthesian coordinates in automatically detected reference frame", 5), + ("AXYZ", "Auto XYZ", "Sort by cartesian coordinates in automatically detected reference frame", 5), ("ADIR", "Auto Direction", "Sort along automatically detected direction", 6), ("ACYL", "Auto Phi / Z", "Sort in circular order on automatically detected plane", 7), ("USER", "User", "User defined", 10)] diff --git a/nodes/viz/light_viewer.py b/nodes/viz/light_viewer.py index 7508a7fd4d..2c3c3b7970 100644 --- a/nodes/viz/light_viewer.py +++ b/nodes/viz/light_viewer.py @@ -27,7 +27,7 @@ class SvLightViewerNode(SvViewerNode, bpy.types.Node, SverchCustomTreeNode): lamp_types = [ ("POINT", "Point", "Omnidirectional point light source", "LAMP_POINT", 0), ("SUN", "Sun", "Constant direction parallel light source", "LAMP_SUN", 1), - ("SPOT", "Spot", "Direcitonal cone light source", "LAMP_SPOT", 2), + ("SPOT", "Spot", "Directional cone light source", "LAMP_SPOT", 2), ("AREA", "Area", "Directional area light source", "LAMP_AREA", 3) ] diff --git a/old_nodes/adaptive_polygons_mk2.py b/old_nodes/adaptive_polygons_mk2.py index 929b295446..c1a7ead56f 100644 --- a/old_nodes/adaptive_polygons_mk2.py +++ b/old_nodes/adaptive_polygons_mk2.py @@ -581,7 +581,7 @@ def _process_face(self, map_mode, output, recpt_face_data, donor, zcoef, zoffset # triangle will be processed as degenerated Quad, # where third and fourth vertices coincide. # In Tissue addon, this is the only mode possible for Quads. - # Someone may like that behaivour, so we allow it with setting... + # Someone may like that behaviour, so we allow it with setting... # # This can process NGons in even worse way: # it will take first three vertices and the last one diff --git a/old_nodes/lamp_out.py b/old_nodes/lamp_out.py index f001447478..f4e6711d9d 100644 --- a/old_nodes/lamp_out.py +++ b/old_nodes/lamp_out.py @@ -49,7 +49,7 @@ class SvLampOutNode(bpy.types.Node, SverchCustomTreeNode): lamp_types = [ ("POINT", "Point", "Omnidirectional point light source", "LAMP_POINT", 0), ("SUN", "Sun", "Constant direction parallel light source", "LAMP_SUN", 1), - ("SPOT", "Spot", "Direcitonal cone light source", "LAMP_SPOT", 2), + ("SPOT", "Spot", "Directional cone light source", "LAMP_SPOT", 2), ("HEMI", "Hemi", "180 degrees constant light source (not supported in Cycles)", "LAMP_HEMI", 3), ("AREA", "Area", "Directional area light source", "LAMP_AREA", 4) ] diff --git a/old_nodes/quaternion_out.py b/old_nodes/quaternion_out.py index 7356e7d026..a3bcfa7cba 100644 --- a/old_nodes/quaternion_out.py +++ b/old_nodes/quaternion_out.py @@ -113,7 +113,7 @@ def sv_init(self, context): # scalar-vector output self.outputs.new('SvStringsSocket', "Scalar") self.outputs.new('SvVerticesSocket', "Vector") - # euler angle ouputs + # euler angle outputs self.outputs.new('SvStringsSocket', "Angle X") self.outputs.new('SvStringsSocket', "Angle Y") self.outputs.new('SvStringsSocket', "Angle Z") diff --git a/ui/presets.py b/ui/presets.py index ccac35c790..e0bdacdd1c 100644 --- a/ui/presets.py +++ b/ui/presets.py @@ -611,7 +611,7 @@ def execute(self, context): gist_url = sv_gist_tools.main_upload_function(gist_filename, gist_description, gist_body, show_browser=False) context.window_manager.clipboard = gist_url # full destination url info(gist_url) - self.report({'WARNING'}, "Copied gist URL to clipboad") + self.report({'WARNING'}, "Copied gist URL to clipboard") sv_gist_tools.write_or_append_datafiles(gist_url, gist_filename) except Exception as err: exception(err) diff --git a/ui/sv_IO_panel.py b/ui/sv_IO_panel.py index af0870aa6b..2f4699b413 100644 --- a/ui/sv_IO_panel.py +++ b/ui/sv_IO_panel.py @@ -326,7 +326,7 @@ def execute(self, context): context.window_manager.clipboard = gist_url # full destination url info(gist_url) - self.report({'WARNING'}, "Copied gist URL to clipboad") + self.report({'WARNING'}, "Copied gist URL to clipboard") sv_gist_tools.write_or_append_datafiles(gist_url, gist_filename) return {'FINISHED'} diff --git a/utils/curve/algorithms.py b/utils/curve/algorithms.py index ff3eea51a2..ba9fc3f6a2 100644 --- a/utils/curve/algorithms.py +++ b/utils/curve/algorithms.py @@ -172,7 +172,7 @@ def evaluate_array(self, ts): dts = (ts - t1s) / (t2s - t1s) #dts = np.clip(dts, 0.0, 1.0) # Just in case... matrix_out = [] - # TODO: ideally this shoulld be vectorized with numpy; + # TODO: ideally this should be vectorized with numpy; # but that would require implementation of quaternion # interpolation in numpy. for dt, base_index in zip(dts, base_indexes): @@ -818,7 +818,7 @@ def concatenate_curves(curves, scale_to_unit=False, allow_generic=True): inputs: * curves: list of SvCurve * scale_to_unit: if specified, reparametrize each curve to [0; 1] before concatenation. - * allow_generic: what to do it it is not possible to concatenate curves natively: + * allow_generic: what to do if it is not possible to concatenate curves natively: True - use generic SvConcatCurve False - raise an Exception. diff --git a/utils/geom.py b/utils/geom.py index 60bb63b0da..d40a902d55 100644 --- a/utils/geom.py +++ b/utils/geom.py @@ -47,7 +47,7 @@ from sverchok.utils.math import np_mixed_product from sverchok.utils.logging import debug, info -# njit is a light-wrapper aroudn numba.njit, if found +# njit is a light-wrapper around numba.njit, if found from sverchok.dependencies import numba # not strictly needed i think... from sverchok.utils.decorators_compilation import njit @@ -446,7 +446,7 @@ class Spline2D(object): across them (in U direction) by using another series of 1D splines. U and V splines can both be either linear or cubic. The spline can optionally be cyclic in U and/or V directions - (so it can form a cylindrical or thoroidal surface). + (so it can form a cylindrical or toroidal surface). This is implemented partly in pure python, partly in numpy, so the performance is not very good. The performance is not very bad either, because of caching. """ @@ -2344,7 +2344,7 @@ def circle_approximation(data): e1, e2 = e1.normalized(), e2.normalized() matrix = np.array([e1, e2, plane.normal]) on_plane = np.apply_along_axis(lambda v: matrix @ v, 1, centered)# All vectors here have Z == 0 - # Calculate circluar approximation in 2D + # Calculate circular approximation in 2D circle_2d = circle_approximation_2d(on_plane[:,0:2], mean_is_zero=True) # Map the center back into 3D space matrix_inv = np.linalg.inv(matrix) diff --git a/utils/geom_2d/dcel.py b/utils/geom_2d/dcel.py index 3a5c5e06c1..2764e3335b 100644 --- a/utils/geom_2d/dcel.py +++ b/utils/geom_2d/dcel.py @@ -455,7 +455,7 @@ def generate_faces_from_hedges(self): # it is possible to get into endless loop, # when leftmost point of a loop has left attribute with tail # which leis right from left side of the loop and joined to it - # it will be batter to make next jump immediately + # it will be better to make next jump immediately # but if one of ccw half edges of tail has outer face it means it is boundary face # or if it is inner component then next hole is found and should be iterated # or if twin of one of ccw half edges of tail ahs outer face it means we also het into next hole diff --git a/utils/intersect_edges.py b/utils/intersect_edges.py index 273aca5e01..bfb531df07 100644 --- a/utils/intersect_edges.py +++ b/utils/intersect_edges.py @@ -206,7 +206,7 @@ def intersect_edges_3d_np(verts, edges, s_epsilon, only_touching=True): dist = np_dot(perp[non_parallel], dp[non_parallel]) co_planar = np.abs(dist) < s_epsilon seg_v = seg_v[non_parallel][co_planar] - # Calculate denomitator + # Calculate denominator A = direc_a[non_parallel][co_planar] B = direc_b[non_parallel][co_planar] magA = np.linalg.norm(A, axis=1) diff --git a/utils/modules/profile_mk3/interpreter.py b/utils/modules/profile_mk3/interpreter.py index 133c5d76cd..2e7be1c417 100644 --- a/utils/modules/profile_mk3/interpreter.py +++ b/utils/modules/profile_mk3/interpreter.py @@ -64,7 +64,7 @@ def __repr__(self): return "Expr({})".format(self.string) def __eq__(self, other): - # Proper comparasion of ast.Expression would be too complex to implement + # Proper comparison of ast.Expression would be too complex to implement # (it is not implemented in the ast module). return isinstance(other, Expression) and self.string == other.string @@ -474,13 +474,13 @@ def interpret(self, interpreter, variables): # But in SVG specification, # >> ... *At the end of the command*, the new current point becomes # >> the final (x,y) coordinate pair used in the polybézier. - # This is also behaivour of browsers. + # This is also behaviour of browsers. #interpreter.position = handle1 handle2 = interpreter.calc_vertex(self.is_abs, segment.control2[0], segment.control2[1], variables) #interpreter.position = handle2 knot2 = interpreter.calc_vertex(self.is_abs, segment.knot2[0], segment.knot2[1], variables) - # Judging by the behaivour of Inkscape and Firefox, by "end of command" + # Judging by the behaviour of Inkscape and Firefox, by "end of command" # SVG spec means "end of segment". interpreter.position = knot2 diff --git a/utils/modules/triangle_utils.py b/utils/modules/triangle_utils.py index 3a55e74276..24df85088f 100644 --- a/utils/modules/triangle_utils.py +++ b/utils/modules/triangle_utils.py @@ -41,7 +41,7 @@ def triang_A_a_b_c(A, a, b, c): def triang_A_B_a_b(A, B, a, b): '''Two verts and the length of the other two sides''' - # Adapted from circle interections function in Contour2D node + # Adapted from circle intersections function in Contour2D node ang_base = atan2(B[1] - A[1], B[0] - A[0]) dist = sqrt((B[0] - A[0]) * (B[0] - A[0]) + (B[1] - A[1]) * (B[1] - A[1])) mask = (a + b) > dist diff --git a/utils/rigid_origami_utils.py b/utils/rigid_origami_utils.py index 21d07026d6..038d0609c5 100644 --- a/utils/rigid_origami_utils.py +++ b/utils/rigid_origami_utils.py @@ -73,7 +73,7 @@ def __init__(self, obj, fold_edge_indices, fold_edge_angles, folding): diffs = [final - angle \ for final, angle in zip(final_angles, self.angles)] - # Target angles multiplyed with folding ratio + # Target angles multiplied with folding ratio self.target_angles = [angle + (diff * folding) for angle, diff \ in zip(self.angles, diffs)] @@ -283,7 +283,7 @@ def calc_fold_angle(cls, step_count, crease_lines, inside_vertices): adjustment = -np.dot(Cp, r.T) if step_count == 1 \ else np.zeros(len(crease_lines.edges)).T - # Add the calcuated actual delta-rho angles + # Add the calculated actual delta-rho angles dr_actual = adjustment + np.dot((In - np.dot(Cp, C)), dr.T) cls.current_rhos += dr_actual diff --git a/utils/sv_script.py b/utils/sv_script.py index 979bda09a2..c20eb3e287 100644 --- a/utils/sv_script.py +++ b/utils/sv_script.py @@ -30,7 +30,7 @@ Every SvScript needs a self.process() function. The node can be access via self.node -Procsess won't be called unless all sockets without a default are conneted +Procsess won't be called unless all sockets without a default are connected inputs = (socket_type, socket_name, default, ... ) outputs = (socket_type, socket_name, ... ) diff --git a/utils/testing.py b/utils/testing.py index b4453523d2..819c24f2a2 100644 --- a/utils/testing.py +++ b/utils/testing.py @@ -334,7 +334,7 @@ def store_reference_sverchok_data(self, file_name, data): def assert_json_equals(self, actual_json, expected_json): """ Assert that two JSON objects are equal. - Comparasion is done by serializing both objects. + Comparison is done by serializing both objects. """ actual_data = self.serialize_json(actual_json) expected_data = self.serialize_json(expected_json) @@ -452,7 +452,7 @@ def compare(prev_indicies): for a1, a2, ind in fails: message = f"{a1} != {a2}: Array 1 [{ind}] != Array 2 [{ind}]" messages.append(message) - header = f"{len(fails)} fails of {arr1.size} comparasions:\n" + header = f"{len(fails)} fails of {arr1.size} comparisons:\n" message = header + "\n".join(messages) self.fail(message) From 1805d421d516176edea2639444654bf7423b6b52 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 13 Aug 2022 13:40:14 -0400 Subject: [PATCH 2/2] Follow-up typo fix --- core/update_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/update_system.py b/core/update_system.py index fc05e06d50..e0bd0cfdde 100644 --- a/core/update_system.py +++ b/core/update_system.py @@ -423,7 +423,7 @@ def update_animation(cls, event: ev.AnimationEvent): @classmethod def main_update(cls, tree: NodeTree, update_nodes=True, update_interface=True) -> Generator['SvNode', None, None]: - """Thi generator is for the triggers. It can update outdated nodes and + """This generator is for the triggers. It can update outdated nodes and update UI. Should be used only with main trees, the group trees should use different method to separate profiling statistics. When it's called the tree should have information of what is outdated"""