Repository navigation
DigitalCircularityToolkit v0.5.1
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
SphereScoreused π·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.RadialSignaturemeasures from the area centroid for closed planar curves (as design objects do), not the curve's length centroid.DistanceSignature,RaysandHarmonicAnalysisRealresults change;HarmonicAnalysisComplexdoes not.OverridePCAnow updates values derived from the bounding box: the estimatedAreaof aLinearObject, the sphere of aSphericalObject, and the planar hull (which was offset from the new local plane).SphericalObjectincludes the end point of open curves when computing the radius.PlanarOutlinereturns the outer boundary (largest loop) when the outline has holes or several parts, with a remark; it returned whichever loop came first.ManhattanDistancenumbers its output branches{0}, {1}, ...like the other distance matrices.
Errors instead of crashes or invalid numbers
FeatureVectorstops with an error naming the input when the inputs have different lengths (it could crash).BoxScore,PlaneScore,LineScoreandSphereScorewarn instead of returning infinite or NaN scores for flat, straight or degenerate objects.NormalizeandPairNormalizereport an error when the largest value is not positive (it gave infinite values or flipped signs).PlanarHullwarns instead of failing when the sample points are collinear.- Object constructors report an error for
NumSamples< 1 (curves and Breps) or a negativeQuantity. RotatePCAwarns whenRotationAxisis not 1, 2 or 3 (it still rotates about PCA3, as before).AsymmEuclideanDistanceadds a remark whenPower2≤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.