Ask a Question related to Macromedia Director 3D, Design and Development.
-
Sonic2004 #1
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
-
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 -
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... -
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... -
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... -
[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... -
hondo3000 #2
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
-
Sonic2004 #3
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
-
Sonic2004 #4
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
-
Sonic2004 #5
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



Reply With Quote

