VB: Line between points or SDL?

Err.. this one should be easy, but I don't get it...

If I import two points into a VB component, how do I create a simple line between them?
Alternatively, how can I do a line with start point, direction, length?

Thanks everyone

Mårten
Load Previous Replies
  • up

    Mårten Nettelbladt

    Ok. I'm still a bit stuck I'm afraid. What if I wanted to rotate the line?
    I'm trying:

    NewLine.Rotate(angle, zaxis, ptA)

    Error: 'Rotate' is not a member of 'Rhino.Geometry.Line'.

    Thanks!
    Mårten
    12
  • up

    Mårten Nettelbladt

    Thanks a lot David for straightening this out!
    The NewLine.Rotate was from the Primer (Second Edition), there was no autocomplete.

    Is it generally better/faster to use vectors and planes for calculating an array of points than creating geometry to move around and rotate? (Inside a VB script).

    Thanks!
    3
    • up

      Mårten Nettelbladt

      Ok. Thanks for helping out!