Grasshopper

algorithmic modeling for Rhino


I'll try to explain as clearly as possible.Please let me know if you can help me out with rhinoscript python to automate grasshopper.

Selecting the first of the 18 points.

From the selected point is made a box.

The box(n) is put into a datatree "sampleMass".
I test sampleMass through a type of simulation.
The test returns TRUE.
sampleMass is stored into permanentMass.

Moving on to the next round.

Then, sampleMass =box(n,n+1)

I test the sampleMass.
The test returns FALSE.
It does not pass this round.

permanentMass stays the same.

sampleMass = box(n,n+2)

I test the sampleMass.
The test returns TRUE

sampleMass is stored into permanentMass.

Moving on to the next round.

etc until all points have been tested.

Below is the litteral concept of the script, perhaps you could give me directions:

On grasshopper I have divided a surface onto a grid of 9 points.
Slider1 selects a point of the list. That point is the base of a box(i) for which the data is stored in a data recorder component. This can be called the permanent mass.
Slider2 selects the following point on that same list. Also to build a box(i+1). This can be called the temporary mass.

The addition of both of the brep are collected and run as a geometry through a Boolean test.

If True then the value of Slider1 should increment and the box(i+1) recorded in permanent mass. Slider2 should increment.
If False then Slider1 should remain. Slider2 should increment.

This should go on until all the points in the list are tested.

I have made some tries, in vain.
please find the Grasshopper file and the rhinoscript/python code attached.


:)
Olivier

Views: 714

Attachments:

Replies to This Discussion

I moved this to the Discussion forum, I think more people will see it here.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service