Grasshopper

algorithmic modeling for Rhino

HI all

     I have  trouble with LinearDimension in C#,I give you screenshot to show my question,thanks.

this is my document:

Views: 924

Attachments:

Replies to This Discussion

The component in your image does not occur in your file.

Hi David
I'm so embarrassed that I set the wrong file, This is the right file ,thanks

this is the right file

Attachments:

LinearDimensions are always aligned with the world or cplane axes. You need to make your dimension aligned.

This means setting the Aligned property to true, specifying the correct plane and remapping the 3d points into plane space. I've made a start, but I can't figure out why the dimension goes in the wrong direction. But hopefully it'll get you on your way.

ps. the (1), (2), and (3) dots are just there for debugging, I wanted to see how they mapped coordinates work.

Attachments:

Just to make sure.. you know you can create dimensions directly with GH components right? They will bake correctly.

    thank your very much for your detail answer,I read your code, but found they still doesn't work as I want.from your picture,the dimension seems reverse,and I changed the plane to get the the dimension,but still not work,It's so wired!(the pt3 seems valueless).

   But still thank your for your detail answer.

thanks

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