Shapely is a great Python library that helps us analyse and manipulate geometries. We think it is important to include this library in Dynamo. To use the Dynamoda package, you must first install the "shapely" python library with "pip install shapely". You can find the guide here. "https://github.com/DynamoDS/Dynamo/wiki/Customizing-Dynamo%27s-Python-3-installation"
When you start dynamo for the first time, the package has not yet been loaded by dynamo and therefore no node belonging to the package will unfortunately not work. Don't panic and change only the "Lacing (@L2/@L1)" values of the node and force the package to run. After a few attempts the package will work.
Unlike dynamo, shapely uses its own geometry language. Therefore, transformations must be made between each other without losing data. In this package you will find a dynamo version of shapely geometry. Enjoy the polygons.
ShapelytoDynamo : It converts a dynamo geometry into a "Shapely" geometry without any data loss.
There is also a transformation of the shapely geometry obtained in a similar way to the dynamo geometry.
DynamotoShapely : It converts a shapely geometry into a dynamo geometry without any data loss.
ShapelyBuffer : Using a dynamo geometry (polygon, polycurve), it creates a new geometry by looking at the user's offset distance in the same line of the units that make up the geometry. The user can decide the sharpness of the edges of the created geometry.
ShapelyDifference : It allows us to analyse the relationship between 2 geometries. It subtracts one geometry from the other and returns a new closed geometry containing the remaining geometry.
Shapelyİntersection : Allows us to analyse the relationship between 2 geometries. It extracts 2 geometries from each other and returns a new closed geometry. The result is always a polygon, polycurve and a list of points that make up the geometry.
ShapelyUnion : Allows us to analyse the relationship between 2 geometries. It combines 2 geometries and returns a closed new geometry. The result is always a polygon, polycurve and a list of points that make up the geometry.
ShapelySnap : It allows us to analyse the relationship between 2 geometries. It returns a new closed geometry that adapts to the contours of the geometry approaching the distance specified by the user. The result is always a polygon, polycurve and a list of points that make up that geometry.
ShapelyTouchesDistance : Using a dynamo geometry (polygon, polycurve) allows us to analyse geometries within a distance specified by the user. For this purpose, it finds the points at right angles of all geometries around it and analyses the distance between the main geometry and returns "True" and "False".
ShapelyArea : It allows us to calculate the surface area of a closed geometry (polygon, polycurve).
ShapelyBoundingBox : Returns the boundingbox of a geometry as a geometry. The result is always a polgon, polycurve and a list of points that make up the geometry.
ShapelyContains : It allows us not to analyse the relationship of a geometry with points. It returns "True" if the points are in the geometry and "False" otherwise.
ShapelyEnvelope : It geometrically rotates the boundingbox created by the points using Dynamo points. In other words, it allows us to create boundingbox geometry from points.
ShapelyConvexHull : Dynamo uses the points to create the outermost polygon that the points will form. The result is always a polygon, polycurve and a list of points that form that geometry.
ShapelyDistance : It allows us to analyse the distance between 2 geometries. It draws a line perpendicular to each other at the points where they are closest to each other and the length of this line gives the actual distance.
ShapelyNearestPoint : Allows us to analyse the relationship between 2 geometries. Finds 2 geometries perpendicular to each other and the closest point and returns a point as output.
ShapelyOffset : Using a dynamo geometry (polygon, polycurve), it creates a new geometry by looking at the user's offset distance in the same line of the units that make up the geometry. The generated geometry is always meaningful and stable. The user can decide the sharpness of the edges of the generated geometry.
ShapelyOffsetParalel : Using a dynamo geometry (polygon, polycurve), it creates a new geometry by looking at the user's offset distance in the same line of the units that make up the geometry. The user can decide the sharpness of the edges of the created geometry. It is faster to use than "ShapelyOffset".
ShapelyRotateSkew : Using a 2D dynamo geometry (polygon), it rotates the geometry in the ground plane in the X and Y axes as if it were a 3D geometry and creates a new geometry.
ShapelySetPrecision : Using a dynamo geometry (polygon, polycurve), it allows the user to specify the points that make up the geometry and returns a new geometry. This geometry differs from the parent geometry because the position of the vertices that make up the geometry has changed.