Testing Waters
  • Scrapbook
  • Projects
    • Bamiyan Cultural Center
    • Bauhaus Museum
    • Better Hebbal
    • Bicycle Station
    • Cross Laminated Timber
    • Facade
    • Flowing Fabrication
    • Form from Images
    • Guggenheim Helsinki
    • National War Museum
    • National War Memorial
    • Indflorescence
    • Rectangular Compartments
    • Retail Space Layout
    • Noise Barrier : Swedevia Airport
    • Walden
    • Wilson Garden
  • Patterns
    • Area Graph
    • Array along Curve
    • Fibbonacci and Factorial
    • Gyroid
    • Hexagonal Pattern From Image
    • Hexagonal Grid
    • Koch Star
    • Mandelbrot Set
    • Pattern
    • Pattern
    • Pattern
    • Phyllotaxis
    • Random Strip Widths
    • Skewed Surface
    • Staggered Checkerboard
    • Triangle subdivision
    • Vector Field
    • Voronoi
    • Waves
    • Weave
  • Geometry
    • Boundary Curve
    • Bridging parallel curves
    • British Museum Great Court
    • Catenary
    • Delete Adjacent
    • Geodesic Sphere
    • Group Branching Curves
    • Group Circles
    • Group curves
    • K Mean
    • Nurbs Surface Irregular
    • Overlapping Petals
    • Pair Nearest
    • Parametric Shapes
    • Platonic Solids
    • Polyline to PolyArc
    • Roman Surface
    • Sagrada Familia Schools Roof
    • Sine Curve
    • Sine Ribbon
    • Spherical Transformations
    • Split Rectangle
    • Tangential Circle through Point
    • Travelling Salesman Problem
    • Unaligned Bounding Box
  • Lists
    • Alter by Boolean Sequence
    • Color by distance
    • Consecutive Points
    • Distancing
    • Divide Equally
    • Geometry from Image
    • Image based Point Density
    • Isovists
    • Reduce Color Palette
    • Replace Consecutive
    • Replace Multiple
    • Replace Recurring
    • Shadow Area
    • Shortest Path
    • Solar Analysis
    • Topography Analysis
  • Motion
    • Adjacency
    • Animate Sphere
    • Cellular Automation
    • Cloth
    • Hypotrochoid
    • Manakin
    • Rolling Spiral
    • Tan Curve
    • Trammel of Archemedes
    • Image to Integer
  • Articles
    • A Conceptual Approach to Integrating Computational Methods in Early Stage Design
    • Design Script's ambiguous and versatile Replication Guides <1>
    • Design Script's ambiguous and versatile Replication Guides <2>
Powered by GitBook
On this page
  1. Geometry

Group Circles

PreviousGroup Branching CurvesNextGroup curves

Last updated 4 years ago

circle1 = Circle.ByCenterPointRadius(Point.ByCoordinates([2, 12, 6, 9, 3, 6], [1, 4, 8, 7, 8, 2]), [1, 2, 1, 2, 2, 2]);
t2 = Geometry.DistanceTo(circle1<1>, circle1<2>);
t3 = List.SortByKey(circle1, t2@L2<1>);
t4 = Dictionary.ValueAtKey(t3, "sorted list");
t5 = Dictionary.ValueAtKey(t3, "sorted keys");
t6 = 2;
t7 = List.TakeItems(t4<1L>, t6<1L>);
t8 = 1;
t9 = List.GetItemAtIndex(t5<1L>, t8<1L>);
t10 = 0.5;
t11 = t9 <= t10;
t12 = List.FilterByBoolMask(t7, t11);
t13 = Dictionary.ValueAtKey(t12, "in");
t14 = Dictionary.ValueAtKey(t12, "out");
t15 = List.Sort(t13<1L>);
t16 = List.UniqueItems(t15);
point1 = Circle.CenterPoint(t16);
line1 = Line.ByBestFitThroughPoints(point1);
t17 = Circle.Radius(t16);
t18 = List.FirstItem(t17<1L>);
curve1 = Curve.ExtendStart(line1, t18);
t19 = List.LastItem(t17<1L>);
curve2 = Curve.ExtendEnd(curve1, t19);
t20 = List.MaximumItem(t17);
t21 = 2;
t22 = t20 * t21;
vector1 = Vector.ZAxis();
polyCurve1 = PolyCurve.ByThickeningCurve(curve2, t22, vector1);
a = circle1;
b = polyCurve1;
t1 = [a, b];
7KB
groupCircles.zip
archive