Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

OpenSCAD User Manual/Importing Geometry/import dxf

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

import_dxf import_dxf() import() dev snapshot Extract a 2D shape from a DXF file, optionally selecting what to import by layer name. Parameters 1 file required string. The path (optional), filename and extension of a file in the same folder as the script. Refer to the File System Issues page for other file path options and platform specific information. 2 layer For DXF and SVG import only, specify a specific layer to import. Optional. 3 convexity non-negative integer, minimum=1, default 2, optional. see the section on convexity 4 origin vector of numbers of form [xcoord,ycoord] 5 scale number, >0, optional. A scale factor to apply to the model filename filename file argument dev snapshot form "filename.ext". id string width number (unused ?) height number (unused ?) dpi non-negative integer >= 0.001. The Dots Per Inch value is used importing a SVG or DXF file to correctly size the generated geometry. center Boolean. When true the object is centered in the X-Y plane at the origin. devsnap layername layername layer dev snapshot $fn Number, default 0. The number of polygon segments to use when converting circles, arcs, and curves to polygons. devsnap $fa Number, default 12. The minimum angle step to use when converting circles and arcs to polygons. devsnap $fs Number, default 2. The minimum segment length to use when converting circles and arcs to polygons. devsnap Example linear_extrude(height = 5, center = true, convexity = 10) import_dxf(file = "example009.dxf", layer = "plate"); A new example of DXF import is available using the import() module.