Export to pdf
in
Core Library Questions
•
1 year ago
I have very simple question about export to pdf
I know how to export to pdf as in the code below. But when I export it to Rhino, out of a single curve I get 411 duplicates. How that happens? And how to fix it? Maybe there is another solution how to export curves to 3D programs or autocad? Any suggestions?
Thank you:)
import processing.pdf.*;
void setup() {
size (400, 400);
background(0);
String id = str(hour())+"_"+(minute())+"_"+str(second());
beginRecord(PDF, "img"+id+".pdf");
}
void draw() {
float i = 0;
while (i<100) {
noFill();
stroke(100);
strokeWeight(1);
ellipse(width/2+i, height/2, 100+i*3, 100- i*5);
i = i + 1;
}
}
void keyPressed() {
endRecord();
exit();
print("a");
}
I know how to export to pdf as in the code below. But when I export it to Rhino, out of a single curve I get 411 duplicates. How that happens? And how to fix it? Maybe there is another solution how to export curves to 3D programs or autocad? Any suggestions?
Thank you:)
import processing.pdf.*;
void setup() {
size (400, 400);
background(0);
String id = str(hour())+"_"+(minute())+"_"+str(second());
beginRecord(PDF, "img"+id+".pdf");
}
void draw() {
float i = 0;
while (i<100) {
noFill();
stroke(100);
strokeWeight(1);
ellipse(width/2+i, height/2, 100+i*3, 100- i*5);
i = i + 1;
}
}
void keyPressed() {
endRecord();
exit();
print("a");
}
1