Triangulation in Lingo

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default Triangulation in Lingo

    Hi there folks. So, are there any hidden or suprisingly obvious methods within
    Shockwave 3D to triangulate non-convex polygons with n sides? One form of this
    is called Delaunay Triangulation, but there are other methods as well. I am
    just about to embark on a journey to create this in Lingo (or potentially in an
    xTra), but I am hoping that there is already a solution out there.

    Thank you for any help in advance,
    David Gilardi

    Sonic2004 Guest

  2. Similar Questions and Discussions

    1. tab to next using lingo
      i am trying to use lingo to tab to next editable item eg on keydown if the key = RETURN then set ....................... end keydown
    2. Help with Lingo and it's uses
      I have a client who has built an extensive program for his students where he has movies in Director to show questions and then gives responses based...
    3. Lingo and PHP
      Hello!! I´m working in a project developing an image browser, I´ve problems to programming it with Lingo (I´ve posted it before in this forum) so...
    4. Net Lingo Help
      This will not work for me. What am I doing wrong? The URL and be anything, I just put in CNN as an example. Craig Hickman on startMovie...
    5. [OT] PHP and Lingo
      "auburn_tiger" <webforumsuser@macromedia.com> wrote in message news:bkagd2$o1a$1@forums.macromedia.com... You should use $_POST. $HTTP_POST_VARS...
  3. #2

    Default Re: Triangulation in Lingo

    there is no embedded algorithm for such things. Only the normal generation of
    meshes where you have to tell via lingo which three vertices have to be used
    for each polygon.

    If you can do a xtra here, this would be great!

    regards!


    hondo3000 Guest

  4. #3

    Default Re: Triangulation in Lingo

    Thank you for your reply Hondo. I had that feeling, but was hoping someone would tell me otherwise. Whatever I end up doing I will let you know.

    Thanks again,
    Dave
    Sonic2004 Guest

  5. #4

    Default Re: Triangulation in Lingo

    Hey there Hondo. Ok, I was able to create a triangulation Xtra, but I cannot
    release the Xtra to the public. What I can do is say this. I used C code that
    was generated by Narkhede and Manocha based off of Seidel's algorithm. This
    can be found here:
    [url]http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html[/url]. An absolutely great resource
    for anyone handling 3D programming is here:
    [url]http://compgeom.cs.uiuc.edu/~jeffe/compgeom/[/url]. I was able to integrate their
    code into an Xtra with no changes to their implementation other than linking.
    In general, this Xtra allows a set of points in anti-clockwise direction
    (reverses order if not anti-clockwise) to return a set of triangles without
    adding any vertices. This means that for those who are dealing with non-convex
    irregular polygons that are created dynamically you can send the Xtra the
    contour points and get traingles back that you just plugin into your faceList
    upon mesh generation. It is rather easy and simple once implemented and can
    triangulate any polygon even with holes as long as the input data is formed
    correctly. Unless one creates an object in an external program and imports
    into Director I do not know of any way to to it otherwise, especially at
    runtime.
    Anyway, if someone takes a shot at it for public use feel free to ask me about
    it.

    Have fun,
    Sonic2004

    BTW: I want to thank Narkhede and Manocha for going through the trouble to
    implement Seidel's alogrithm in C. From my point of view it is not trivial.

    Sonic2004 Guest

  6. #5

    Default Re: Triangulation in Lingo

    Hi again. I noticed that the first link does not work for some reason. Go
    here instead: [url]http://compgeom.cs.uiuc.edu/~jeffe/compgeom/code.html#poly[/url] and
    then go the the link Fast polygon triangulation code.

    Sonic2004 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139