<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi Gabor, <br><br>Thanks a lot for the corrections in the spiral code, it looks great!!<br><br>I have another question, when I use the pdata-map! I only can make work the array type "p" by putting (rndvec). Otherwise if I put only numbers in the vector it doesn't do anything. I think I'm missing something about the pdata, I already read the pdata and the deformation part of the manual, but I can't get it at all.<br><br>I also understand that using pdata-set! we can access to a determined vertex, but if we use pdata-map! all the vertices are going to be modified, am I right??<br><br>For example, if in this code I replace the "(rndvec)" for a "(vector 1 3 0)", nothing happens:<br><br>(clear)<br><br>(define s (build-sphere 10 10))<br><br>(with-primitive s<br>      (pdata-map! <br>          (lambda (p)<br>                (rndvec))<br> "p"))<br><br>Thanks, <br><br>Luis<br>                                          </body>
</html>