Group Abstract Group Abstract

Message Boards Message Boards

Export a 3D graphics in dxf or stl not converted in triangles?

Posted 9 years ago
POSTED BY: Petre Logofatu
3 Replies

enter image description here

Hello Petre,

sorry for this late response - hopefully it is still a bit helpful though! I would rather treat these graphics seperately. Furthermore please notice that I added a certain thickness to the tube. Obviously the conversion to a BoundaryMeshRegion does the trick:

ClearAll["Global`*"];
SetDirectory[NotebookDirectory[]];

cube = Cuboid[{10, 10, 0}, {20, 20, 10}];
cubeBoundaryMesh = BoundaryDiscretizeRegion[cube]

Export["cube.stl", cubeBoundaryMesh]

tube = SolidData[Entity["Solid", "CylindricalShell"], "Region"][2.5, 2.4, 5];
tubeBoundaryMesh = BoundaryDiscretizeRegion[tube, MaxCellMeasure -> {"Length" -> .1}]

Export["tube.stl", tubeBoundaryMesh]

Regards -- Henrik

POSTED BY: Henrik Schachner
POSTED BY: Sander Huisman
POSTED BY: Petre Logofatu
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard