Dave, It seems that you sent this message as I was writing my other posting to the board.
> Cheers for that !!! I'm going to implement ribbons by generating > coordinates > for 10 strands (hermite) Per my other message, I think that you can do this simply by using 2 strands, the ones which represent the edges of the ribbon. All of the other strands should be on the line between the edges of the ribbon. > and then draw fillTriangles between neighbouring strands... I think that should work fine. I think you want to draw the triangles so that the bases alternate between the top strand and the bottom strand. You can either go _____________________________ /\ /\ /\ /\ /\ /\ /\ \/ \/ \/ \/ \/ \/ \/ \ ----------------------------- Or _______________________ |\ | /|\ | /|\ | /|\ | | \|/ | \|/ | \|/ | \| ----------------------- Doing the top one might be easier. Keeping the coordinates of the 'upper-edge' and 'lower-edge' strands organized is going to be a *challenge*. I think that I would copy the Hermite3D.render code to a new routine called renderDouble. It will take the 4 'upper-edge' points and the 4 'lower-edge' points. Do all the calculations in lock-step. I would start by drawing the triangles rather than filling them. It will be easier to see where the triangles are lying and easier to identify bugs. To get started, I would also make the triangles rather large. That is, don't wait until the base vertices of the triangles get too close together ... use 10 pixels or something like that. Otherwise, you will not be able to see the triangles as they are drawn. Later on, you can change the test so that the triangle bases get down to two or 3 pixels. Don't worry about the shading code yet. If you get to where you can draw (not fill) triangles that are in the base color then you will have made great progress. > just coding it now... Confused by your code to start with, but > now understand a little better... very versatile !!! COOL! OK, let me know if/when you need help. We may want to give you CVS access so that you can easily check in the code so that I can comment on it. Do you want to do that? Miguel ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
