Not clear on how export dxf result from canvas surface working?

edited November 2017 in Questions about Code

Hello. I am new here and processing... Would like to ask something about the result of exported dxf. For what I draw in processing: And there is something above about setting exporting dxf or something.

void draw(){
if (record) {
beginRaw(DXF, day()+"-"+month()+".dxf");
}
  ellipse(y,200,20,20);  
  y+=15;
if (y >=500){
 y = 0;
 fill(random(250),random(250),random(250));
}

So the plain result from processing window is : keep rooping and go back and rooping due to draw function. keep rooping

But after I export it as dxf and open in Rhino/CAD, it looks like this: Screenshot

Isn't it a little bit too diffrent? Could anybody please help me explain how it form such shape with just drawing continuous circles????

Tagged:

Answers

  • Answer ✓

    There's not enough code there for us to say.

    Is record always true? In that case it'll keep opening the file and drawing the circle for this frame only. So you'll only get one circle.

    When does the file get closed? At the end of every draw? Again, that way you'll only ever see one circle.

    Move beginRaw to setup, close the file when you've finished, and it should draw many.

Sign In or Register to comment.