We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
export DXF mesh (Read 323 times)
export DXF mesh
Dec 10th, 2008, 8:42pm
 
Hi,

when exporting a rather complex shape to dxf it exports only curves (checked with rhino). Why don't I get a mesh as in the dxf example (http://dev.processing.org/reference/everything/javadoc/processing/dxf/RawDXF.html)?

If anybody with some experience in exporting dxfs could help me here I would be extremely happy.....

my code (the whole thing is quite complex thus only a snippet here):
// CODE START
RawDXF   dxf;

dxf = (RawDXF) createGraphics(width, height, format, "out.dxf");
beginRaw(dxf);

//dxf.fill(100);

// the shape i'd like to export

for (int i = 0; i <= myTiles3D.size()-1; i++){
  tempT = (PModule)myTiles3D.get(i);
  tempT.drawVolume(dxf, GlobalData.offXYZ);
}

// just a simple test that doesn't work either

dxf.beginShape();    
  dxf.vertex(0,0,0);
  dxf.vertex(0,0,100);
  dxf.vertex(100,100,0);
dxf.endShape(CLOSE);


endRaw();
// CODE END
Page Index Toggle Pages: 1