Asymptote: Difference between revisions
(Small edit.) |
mNo edit summary |
||
Line 8: | Line 8: | ||
==Description== |
==Description== |
||
[https://asymptote.sourceforge.io/ Asymptote] is a programming language for the creation of 2D and 3D computer graphics. Asymptote code can be included in [https://www.latex-project.org/ LaTeX] documents, which will not be |
[https://asymptote.sourceforge.io/ Asymptote] is a programming language for the creation of 2D and 3D computer graphics. Asymptote code can be included in [https://www.latex-project.org/ LaTeX] documents, which will not be explained here, 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. For other PDF files any PDF reader can be used. |
Interactive 3D PDF files created from Asymptote code require Acrobat Reader version 9 or higher. For other PDF files any PDF reader can be used. |
Revision as of 20:36, 24 December 2020
Description
Asymptote is a programming language for the creation of 2D and 3D computer graphics. Asymptote code can be included in LaTeX documents, which will not be explained here, or used to generate PostScript, PDF, SVG, WebGL, and PRC files.
Interactive 3D PDF files created from Asymptote code require Acrobat Reader version 9 or higher. For other PDF files any PDF reader can be used.
Asymptote support was added in FreeCAD version 0.19.
Exporting
- Optionally assign colors to the faces of the object you want to export with the Part FaceColors command.
- Change to the Mesh Workbench.
- Create a mesh from the object with the Mesh FromPartShape command.
- Select the new mesh object.
- Invoke the Mesh Export command.
- Select the *.asy file format in the dialog box.
- Enter a filename.
- Press the Save button.
Converting to PDF
- Install the Asymptote compiler.
- Use this command line syntax to create the PDF file:
asy -f pdf AsymptoteFileName.asy
Related
Video tutorials
The following videos are in Spanish:
- A way of generating interactive pdf-3D files. (1/3) (From FreeCAD, MeshLab and LaTeX)
- A way of generating interactive pdf-3D files. (2/3) (From Asymptote and LaTex)
- A way of generating interactive pdf-3D files. (3/3) (From FreeCAD, Asymptote and LaTeX)
Mesh
- Miscellaneous: Import mesh, Export mesh, Create mesh from shape, Regular solid, Unwrap Mesh, Unwrap Face
- Modifying: Harmonize normals, Flip normals, Fill holes, Close hole, Add triangle, Remove components, Remove components by hand, Smooth, Refinement, Decimation, Scale
- Boolean: Union, Intersection, Difference
- Cutting: Cut mesh, Trim mesh, Trim mesh with a plane, Create section from mesh and plane, Cross-sections
- Components and segments: Merge, Split by components, Create mesh segments, Create mesh segments from best-fit surfaces
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub