Skip to content

DigitalCircularityToolkit v0.5.1

Choose a tag to compare

@keithjlee keithjlee released this 21 Nov 19:04
· 27 commits to master since this release

Downloads: DigitalCircularityToolkit-v0.5.1-Rhino8-net8.0.zip for Rhino 8 (Windows + Mac); DigitalCircularityToolkit-v0.5.1-Rhino7-net48.zip for Rhino 7 (untested in Rhino 7; v0.5.x is the last line with Rhino 7 support). Installation: Windows users unblock the .zip first (Properties > Unblock), then extract it into the Grasshopper Components Folder (File > Special Folders > Components Folder) and restart Rhino.

Documentation: https://keithjlee.com/DigitalCircularityToolkit/

Bug fixes found while writing the documentation. Saved definitions open unchanged (no component or parameter changes). Like v0.5, the Rhino 7 package is untested in Rhino 7.

Changed results

  • SphereScore used π·r³ instead of (4/3)·π·r³ for the sphere volume (integer division) and counted hulls larger than that as empty, so well-sampled spheres scored worst. Scores change.
  • RadialSignature measures from the area centroid for closed planar curves (as design objects do), not the curve's length centroid. DistanceSignature, Rays and HarmonicAnalysisReal results change; HarmonicAnalysisComplex does not.
  • OverridePCA now updates values derived from the bounding box: the estimated Area of a LinearObject, the sphere of a SphericalObject, and the planar hull (which was offset from the new local plane).
  • SphericalObject includes the end point of open curves when computing the radius.
  • PlanarOutline returns the outer boundary (largest loop) when the outline has holes or several parts, with a remark; it returned whichever loop came first.
  • ManhattanDistance numbers its output branches {0}, {1}, ... like the other distance matrices.

Errors instead of crashes or invalid numbers

  • FeatureVector stops with an error naming the input when the inputs have different lengths (it could crash).
  • BoxScore, PlaneScore, LineScore and SphereScore warn instead of returning infinite or NaN scores for flat, straight or degenerate objects.
  • Normalize and PairNormalize report an error when the largest value is not positive (it gave infinite values or flipped signs).
  • PlanarHull warns instead of failing when the sample points are collinear.
  • Object constructors report an error for NumSamples < 1 (curves and Breps) or a negative Quantity.
  • RotatePCA warns when RotationAxis is not 1, 2 or 3 (it still rotates about PCA3, as before).
  • AsymmEuclideanDistance adds a remark when Power2 ≤ Power1.

Descriptions corrected for AsymmEuclideanDistance (Power1/Power2), the score components (Factor), Normalize/PairNormalize, the Set components (Centroids is the bounding-box center), PlanarOutline, Match, Object, LinearObject, PlanarObject, FrechetDistance and HausdorffDistanceCurve.