Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
GenerativeComponents
  • Product Communities
  • More
GenerativeComponents
GenerativeComponents Community Wiki Sunflower Seed Pattern Modelling
    • Sign in
    • +An Overview of GenerativeComponents
    • +Addin Content
    • +Bentley BIM Modeler Accreditation – Program Overview
    • +C# Sample Solution and other Add-ins
    • +GenerativeComponents Solutions
    • +Learn GenerativeComponents
    • +Reference Material
    • Support for GenerativeComponents
    • -Tutorials
      • 3D array copy surface
      • Add RFA data as BuildingContent to ABD with GC Extension
      • Cell Feature
      • Create a Set of Random Points
      • Creation of Global function from Custom function
      • Creation of Parabolic curve
      • Free Form Roof Example
      • GC Excel Feature
      • GenerativeComponents Essentials Course
      • How To Create Surface From Lines & Curves
      • How to Export GC elements
      • How to get concrete sections in the cross-section dialog in Generative Components
      • Landscape Bridge Example
      • +LawCurve
      • List Of Points With A Loop Example
      • Mesh feature 3d print
      • Modular Multiplication On Circle
      • +Operation Node
      • +Optimization with the Optimizer node type
      • Palm Tree Modeler
      • Point By Function Example
      • Points On Curve
      • Prime Number Pattern
      • Selection of Points
      • Selection of points based on Query Expressions
      • Selection of points based on range of indices
      • Set a New Property Value to a Set of Selected Nodes
      • Simple Bridge Example
      • Simple Equations To Describe Form Example
      • Simple Free Form Roof Example
      • Sin Tower
      • Skeleton
      • Sunflower Seed Pattern Modelling
      • Surface Division Basic Steps
      • Surface from Rails and Swept Sections
      • The use of Packager in Generative Components
      • +Tools and Techniques
      • Ulam Spiral From A Rectangular Spiral
      • Video Tutorials
      • Video Tutorials - Short Techniques
    • +User Projects
    • +Visualized Parametric Experimentations
    • +zed_Older Content

     
     Questions about this article, topic, or product? Click here. 

    Sunflower Seed Pattern Modelling

      Product(s): OpenBuildings Generative Components
      Version(s): 10.06.03.04
      Environment:  N\A

     

    Background

    Sunflowers are amazing for many reasons. And of them would how it arranges its seeds. If we observe very closely we would note that it is not only beautiful but smart also. It arranges the seeds in such a way that it maximizes space utilization reducing void space.

    We can model the this in polar co-ordinate system(r,θ) where

    Radius(r) = Sqrt(n)      n is the number of seeds

    Angle(θ) = n*ang         ang is the corresponding angle for a given decimal number.

    ang = 360*Fr/10          Fr is the decimal part of given number.

    It is noted if that for Golden Ratio(1.618033… or 2*Sin(54) ), we get the closest representation of the sunflower seed pattern. This model was given by Helmut Vogel(1979).

    Steps to Accomplish

    We will create a small GCScript for the above expressions and use it for placing points by using the ByFunction technique.

    function(number DecimalNumber, int NoOfPoints, CoordinateSystem CS)
    {
        number ang;
        ang=360*Fraction(DecimalNumber);
        Point pt;
        for(int i = 1; i <= NoOfPoints; ++i)
            {
               pt = new Point(this);
               pt.ByCylindricalCoordinates(CS, Sqrt(i)*100, i*ang, 0);
            }
    }
    

    Click here to play this video

             Please go through the sample file Sunflower Seed Pattern.gct

    • OBD GC
    • Point
    • sunflower
    • GCscript
    • Function
    • GenerativeComponents CONNECT Edition
    • OpenBuildings GenerativeComponents
    • Share
    • History
    • More
    • Cancel
    • Anik Mal Created by Bentley Colleague Anik Mal
    • When: Thu, Jun 11 2020 9:07 AM
    • Alifur Mandal Last revision by Bentley Colleague Alifur Mandal
    • When: Thu, Jun 11 2020 9:38 AM
    • Revisions: 3
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies