Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: Drawing Lines  (Read 14850 times)

Simon

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Simon's Simple Site
Drawing Lines
« on: January 04, 2008, 08:31:17 pm »

I was wondering,
Is it possible to draw lines using ASL?
If so,
After drawing say, 5 and they are connected can you fill in the surface?
Logged

Nate_Bro

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • Set Apart Graphics
Re: Drawing Lines
« Reply #1 on: January 05, 2008, 01:04:06 am »

I belive you would have to set the points, then create the faces.

if you want just a line, you can create the points then create edges, but if you want faces, just points and faces should work fine.
Logged
My computer specs for Anim8or and other graphics:
1.  3.2 GHz Pent 4 HT 1 MB L2, with ATI 128 MB Vid Card
2.  3.0 GHz Pent D 4 MB L2, with ATI 512 MB Vid Card
3.  1.7 GHz Pent Celeron M, with ATI 64 MB Vid Card

Simon

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Simon's Simple Site
Re: Drawing Lines
« Reply #2 on: January 10, 2008, 09:57:36 pm »

Ok that works...
Now, if I wanted to select points and then click a button.
How do I find out which points are selected?
Logged

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: Drawing Lines
« Reply #3 on: January 11, 2008, 12:16:22 am »

Here's an example not including the variable declaration and initialization:

Code: [Select]
             /* Lets search for the selected point */
              for $ii = 0 to $numPoints - 1 do
              {
                 if ($mdata.GetPointSelected($ii) == 1  )
                 {
                   /* Do whatever you want if the point is selected */
                 }
              }

Logged

Simon

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Simon's Simple Site
Re: Drawing Lines
« Reply #4 on: January 13, 2008, 07:31:25 pm »

Thanks, That is exactly what I needed.
Logged