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

Nurbs Surface Irregular

Non Rectangular footprint

PreviousK MeanNextOverlapping Petals

Last updated 4 years ago

//Base Profile
ln1 = Line.ByStartPointEndPoint(Point.ByCoordinates(-50,0),Point.ByCoordinates(0,-50));
pt1 = ln1.PointAtParameter(0..1..#9).Translate(Vector.ByCoordinates(-1,-1,0),[0,5,0,0,5,0,0,5,0]);
pg1 = Polygon.ByPoints(List.Flatten(List.RestOfItems(pt1).Rotate(Point.Origin(),Vector.ZAxis(),(90..#4..90)<1>),-1));

//Nurbs Surface
pt2 = Point.ByCoordinates((-60..60..15)<1>,(-60..60..15)<2>);
bl1 = pt2.DoesIntersect(pg1.Patch());
ds1 = bl1? pt2.DistanceTo(pg1) : 0;
pt3 = pt2.Translate(Vector.ZAxis(),ds1/2);
ns1 = NurbsSurface.ByPoints(pt3,3,3);

nc2 = PolyCurve.ByJoinedCurves(pg1.PullOntoSurface(ns1));
ns2 = ns1.TrimWithEdgeLoops(nc2);
ns3 = GeometryColor.ByGeometryColor(ns2,Color.ByARGB(250,220,120,20));
//Base Profile
ln1 = Line.ByStartPointEndPoint(Point.ByCoordinates(-50,0),Point.ByCoordinates(0,-50));
pt1 = ln1.PointAtParameter(0..1..#9).Translate(Vector.ByCoordinates(-1,-1,0),[0,5,0,0,5,0,0,5,0]);
pg1 = Polygon.ByPoints(List.Flatten(List.RestOfItems(pt1).Rotate(Point.Origin(),Vector.ZAxis(),(90..#4..90)<1>),-1));

//Nurbs Surface
pt2 = Point.ByCoordinates((-60..60..15)<1>,(-60..60..15)<2>);
bl1 = pt2.DoesIntersect(pg1.Patch());
ds1 = bl1? pt2.DistanceTo(pg1) : 0;
pt3 = pt2.Translate(Vector.ZAxis(),ds1/2);
ns1 = NurbsSurface.ByPoints(pt3,3,3);

nc2 = PolyCurve.ByJoinedCurves(pg1.PullOntoSurface(ns1));
ns2 = ns1.TrimWithEdgeLoops(nc2);
ns3 = GeometryColor.ByGeometryColor(ns2,Color.ByARGB(250,220,120,20));