Results 1 to 4 of 4

Thread: Markers on lines

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    10

    Markers on lines

    How we can draw markers (or perpendiculars) on any 3D Line.

  2. #2
    Member Contributor
    Join Date
    Feb 2002
    Location
    Wiesbaden, Germany
    Posts
    95

    Re: Markers on lines

    Hi,

    I guess what you want to do is to compute the crossproduct of the vector pointing from V1 to V2 and then move the new vector to the middle of your line.
    At least this is how I understood what you are trying to do. It helps if you point out a little bit more precise what you want to do!!!

    Cheers,

    Martin

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jan 2002
    Location
    Kingston, Jamaica, W.I.
    Posts
    282

    Re: Markers on lines

    To get the perpendicular to any line use the cross product of it and another line that is not parallel to it. If you want the perpendicular to lie in a given plane take the cross product of the line and the plane's normal. To draw it choose a point on the line and draw from there to some other point on the perpendicular line.

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    10

    Re: Markers on lines

    Hi
    Thank u for ur inputs

    Actually, I was to make x,y,z axis and want to draw markers on each axis. so what to do exactly?

    -Porsgl

    Originally posted by mphanke:
    Hi,

    I guess what you want to do is to compute the crossproduct of the vector pointing from V1 to V2 and then move the new vector to the middle of your line.
    At least this is how I understood what you are trying to do. It helps if you point out a little bit more precise what you want to do!!!

    Cheers,

    Martin

Similar Threads

  1. Replies: 3
    Last Post: 06-15-2015, 03:48 AM
  2. Redrawing Lines
    By SuperNoob in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-22-2009, 02:15 PM
  3. Fill between lines?
    By jimmycox in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 10-10-2009, 11:02 AM
  4. Lines
    By nergal in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 10-23-2002, 12:40 PM
  5. drawing fat lines
    By ann in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-12-2000, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean