Asymptote

From FreeCAD Documentation
Revision as of 05:36, 16 December 2023 by Kaktus (talk | contribs) (Created page with "[https://asymptote.sourceforge.io/ Asymptote] to język wektorowy dla grafiki komputerowej 2D i 3D. Kod Asymptote może być zawarty w dokumentach [https://www.latex-project.org/ LaTeX] lub użyty do wygenerowania plików [https://en.wikipedia.org/wiki/PostScript PostScript], PDF, SVG, [https://www.khronos.org/webgl/ WebGL] i [https://en.wikipedia.org/wiki/PRC_(file_format) PRC]. Interaktywne pliki PDF 3D utworzone z kodu Asymptote wymagają program...")
Other languages:

Opis

Asymptote to język wektorowy dla grafiki komputerowej 2D i 3D. Kod Asymptote może być zawarty w dokumentach LaTeX lub użyty do wygenerowania plików PostScript, PDF, SVG, WebGL i PRC. Interaktywne pliki PDF 3D utworzone z kodu Asymptote wymagają programu Acrobat Reader w wersji 9 lub nowszej.

Asymptote support was added in FreeCAD version 0.19.

Exporting

  1. Optionally assign colors to the faces of the object you want to export with the Part FaceColors command.
  2. Change to the Mesh Workbench.
  3. Create a mesh from the object with the Mesh FromPartShape command.
  4. Select the new mesh object.
  5. Invoke the Mesh Export command.
  6. Select the *.asy file format in the dialog box.
  7. Enter a filename.
  8. Press the Save button.

Converting

You need the Asymptote compiler to convert *.asy files. To convert to PDF a LaTeX system is also required.

The compiler is a command line tool. To covert to PDF you can use this syntax:

PathToAsyExecutable/asy -f pdf AsymptoteFileName.asy

Related

Video tutorials

The following videos are in Spanish: