2009-01-28 02:05 AM
2009-01-28 04:00 AM
Jevrod wrote:You won't be able to put a for/next loop in a PGON command.
hello
is it possible to create a polygon with a variable number of sides ?
something like this ?
PGON nSide, 0, -1,
for i to nSide
i,
next i
where nSide is the variable for the number of side
and i, the numerotation of EDGE, incremented at each loop
i made it for VERT and EDGE, but impossible to realise with polygon
if anyone got the answer.....
2009-01-28 06:12 AM
2009-01-28 07:40 PM
2009-01-28 09:42 PM
2009-02-07 02:16 AM
Karl wrote:I did that, using put get, worked for me. I was making coon object so the script was bit complicated, but, eventually got it assembled for up to 9x9 point coon, using two loops to calculate values and then 4 loops to assign them in proper order
If the computation of the points lends itself to iteration (presumably the reason you shows a for-loop), then I think that you can assemble the points into the parameter buffer in your loop by outputting them to the buffer with PUT and then use a GET (or USE) with the PGON to retrieve the computed values.
Cheers,
Karl