Grasshopper

algorithmic modeling for Rhino

Hello Community

I´m having a problem here. It´s really basic, I guess but I tried to find the error for some time now and I can´t find the mistake... I want to get the tangent Lines from a curve... 

When I hashtag out the for-Loop, it has no problem with the Variable maxDom but when the for-Loop gets activated...

...it tells me that the Variable maxDom is not defined...

What am I doing wrong?

Views: 518

Attachments:

Replies to This Discussion

p.s.: and it doesn´t print the Var.: doms, maxDom and minDom anymore ?!?

Hi Florian,

Indentation in the tanPoints method was wrong.

Check the attached file.

Attachments:

Wow, thank you! I´m at the very beginning. I thought the Identation is for the improvement of our orientatoin in longer files. Huh. Well anyway I learned something and you helped a lot. thanks again...

Hi,

In python, blocks of code are defined by indentation (loops - for and while, if statements, functions, methods...). Therefore, they are very important.
Take a look at this page for more information. It has an example of correct and wrong indentation.

Hello Djorje

take a loof at this. I´m very proud. isn´t that cool?!? (a bit like a child having walked his first 3 steps :-)

Attachments:

Yes, it looks interesting.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service