Import & Export

ImportPLY

ImportPLY(CSX, propName, prio, filename, varargin)

Full definition:

function CSX = ImportPLY(CSX, propName, prio, filename, varargin)

example:

CSX = AddMetal( CSX, 'cad_model' ); % create a perfect electric conductor (PEC)
CSX = ImportPLY(CSX, 'cad_model',10, 'sphere.ply','Transform',{'Scale',1/unit});

% Note: make sure the file 'sphere.ply' is in the working directory

See also AddBox, AddCylinder, AddCylindricalShell, AddSphere, AddSphericalShell, AddCurve, AddWire, AddMetal, ImportSTL


author: Thorsten Liebig

ImportSTL

ImportSTL(CSX, propName, prio, filename, varargin)

Full definition:

function CSX = ImportSTL(CSX, propName, prio, filename, varargin)

example:

CSX = AddMetal( CSX, 'cad_model' ); % create a perfect electric conductor (PEC)
CSX = ImportSTL(CSX, 'cad_model',10, 'sphere.stl','Transform',{'Scale',1/unit});

% Note: make sure the file 'sphere.stl' is in the working directory

See also AddBox, AddCylinder, AddCylindricalShell, AddSphere, AddSphericalShell, AddCurve, AddWire, AddMetal, ImportPLY


author: Thorsten Liebig

export_empire

export_empire(CSX, FDTD, filename, options)

Full definition:

export_empire( CSX, FDTD, filename, options )

Exports the geometry defined in CSX to filename as an Empire python file.

  • CSX: CSX-object created by InitCSX()

  • FDTD: FDTD-object created by InitFDTD()

  • filename: export filename (e.g. ‘/tmp/export.py’) options (optional): struct

  • options.ignore : cell array with property names to ignore


author: Sebastian Held sebastian.held@gmx.de 17. Jun 2010: initial version 28. Sep 2010: rewritten using Empire python scripting See also InitCSX InitFDTD

export_excellon

export_excellon(CSX, filename, options)

Full definition:

export_excellon( CSX, filename, options )

Exports the geometry defined in CSX to filename as an excellon drill file. Only cylinders will be considered for export. The xy-plane is exported.

  • CSX: CSX-object created by InitCSX()

  • filename: export filename (e.g. ‘/tmp/export.gbr’)

  • options (optional): struct

    • .header: (string) add this to the header of the file comment line must have ‘;’ as the very first character

    • .exclude: (cell array) ignore these CSX-properties

    • .include: (cell array) include only these CSX-properties if neither .exclude or .include is specified, process all properties

See also InitCSX


author: Sebastian Held sebastian.held@gmx.de 26. Aug 2010: initial version

export_gerber

export_gerber(CSX, filename, options)

Full definition:

export_gerber( CSX, filename, options )

Exports the geometry defined in CSX to filename as a gerber RS-274X file. The xy-plane is exported.

  • CSX: CSX-object created by InitCSX()

  • filename: export filename (e.g. ‘/tmp/export.gbr’)

  • options (optional): struct

    • .header: (string) add this to the header of the file

    • .ignore: (cell array) ignore these CSX-properties

See also InitCSX


author: Sebastian Held sebastian.held@gmx.de 13. Jun 2010: initial version

export_povray

export_povray(CSX, filename, options)

Full definition:

export_povray( CSX, filename, options )

Exports the geometry defined in CSX to filename as a povray file.

CSX: CSX-object created by InitCSX() filename: export filename (e.g. ‘/tmp/export.pov’) options (optional): struct

  • .camera: (string) use this as the camera definition line

    • 1 camera on positive x-axis

    • 2 camera on positive y-axis

    • 3 camera on positive z-axis

  • .light: (string) use this as the light definition line

    • 1 point light at camera position

  • .header: (string) add this to the header of the file

  • .ignore: (cell array) ignore these CSX-properties

  • .obj_modifier: struct

    • .: (string) povray object modifier for corresponding primitives example: options.obj_modifier.copper = ‘pigment { color rgbt <0.8,0.5,0,0> }’;

See also InitCSX


author: Sebastian Held sebastian.held@gmx.de 12. Jun 2010: initial version