Asymptote/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "Asymptote")
 
(Created page with "[https://asymptote.sourceforge.io/ Asymptote] est un langage vectoriel pour l'infographie 2D et 3D. Le code Asymptote peut être inclus dans des documents [https://www.latex-p...")
Line 5: Line 5:
==Description==
==Description==


[https://asymptote.sourceforge.io/ Asymptote] is a vector language for 2D and 3D computer graphics. Asymptote code can be included in [https://www.latex-project.org/ LaTeX] documents or used to generate [https://en.wikipedia.org/wiki/PostScript PostScript], [[PDF]], [[SVG]], [https://www.khronos.org/webgl/ WebGL], and [https://en.wikipedia.org/wiki/PRC_(file_format) PRC] files. Interactive 3D PDF files created from Asymptote code require Acrobat Reader version 9 or higher.
[https://asymptote.sourceforge.io/ Asymptote] est un langage vectoriel pour l'infographie 2D et 3D. Le code Asymptote peut être inclus dans des documents [https://www.latex-project.org/ LaTeX] ou utilisé pour générer [https://fr.wikipedia.org/wiki/PostScript PostScript], [[PDF/fr|PDF]], [[SVG/fr|SVG]], [https://www.khronos.org/webgl/ WebGL] et [https://fr.wikipedia.org/wiki/PRC_(fichier) PRC]. Les fichiers PDF 3D interactifs créés à partir du code Asymptote nécessitent Acrobat Reader version 9 ou supérieure.


Asymptote support was added in FreeCAD version 0.19.
Asymptote support was added in FreeCAD version 0.19.

Revision as of 15:20, 26 December 2020

Other languages:

Description

Asymptote est un langage vectoriel pour l'infographie 2D et 3D. Le code Asymptote peut être inclus dans des documents LaTeX ou utilisé pour générer PostScript, PDF, SVG, WebGL et PRC. Les fichiers PDF 3D interactifs créés à partir du code Asymptote nécessitent Acrobat Reader version 9 ou supérieure.

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: