now it works. This an example of extruding a point (translation) then the extruding the resulting line (rotation) and then extruding the resulting surface (translation).<br><br>Ex:<br><br>-----------------------------------------------------------<br>
<br>lc = 1;<br>Point(1) = {0,0,0,lc};<br>l[] = Extrude {1,0,0} {Point{1}; Layers{4};};<br>s[] = Extrude {{0,1,0},{0,0,0},Pi}{ Line{l[1]}; Layers{3}; };<br>v[] = Extrude {0,1,0} { Surface{s[1]}; Layers{5}; };<br><br>-----------------------------------------------------------<br>
Sorry for the inconvenience.<br>Best regards,<br>Maka.<br><br><div class="gmail_quote">On Jan 23, 2008 11:13 AM, Maka Mohu <<a href="mailto:maka.mohu@gmail.com">maka.mohu@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi!<br><br>Extrude line is expected to return an array, let's say a, with a[0]=id<br>of the end line and a[1]=id of the resulting surface. I tried the<br>following lines but it gives parsing error. I noticed an old<br>
discussion on the forum about that but it was in French. Sorry, I<br>hardly know English.<br><br>------------------------------------<br><br>Point(100) = {2,0,0,lc};<br>a[] = Extrude {1,0,0}{<br>  Point{100}; Layers{4};<br>
};<br><br>Extrude {{0,1,0}, {0,0,0}, Pi} { Line{a[0]}; Layers{10}}<br><br>------------------------------------<br><br>motivation:<br>I have a complex geometry that is described by a curve and I need to<br>build surface out the curve by rotation. I know that one could<br>
generate surface first and then extrude to volume but I'm interested<br>in exporting both the surface (alone) and the volume mesh (alone).<br>That is why I have to go through Extrude Line and perhaps Point also<br><br>
Best regards,<br><font color="#888888">Maka<br></font></blockquote></div><br>