SVG/ko

설명

확장 가능 벡터 그래픽(SVG)은 2차원 그래픽을 위한 벡터화된 이미지 형식의 한 유형입니다.

SVG와 같은 벡터 기반 포맷은 FreeCAD와 같은 기술 도면 프로그램에서 매우 유용합니다. SVG 이미지는 모양이나 세부 정보의 양을 잃지 않고 어떤 크기로든 확장할 수 있기 때문입니다. SVG는 필요한 해상도로 확장할 수 있으며 인쇄를 위해 PNG 또는 JPEG와 같은 비트맵 형식으로 변환할 수 있습니다.

SVG 이미지는 XML 유형 언어로 기술되므로 간단한 텍스트 편집기로 열어서 편집하여 변경할 수 있습니다. 텍스트 기반 특성으로 인해 파일을 쉽게 검색, 색인화 및 압축할 수도 있습니다. 이 SVG 마크업 언어는 1999년부터 World Wide Web Consortium(W3C)에서 개발한 개방형 표준입니다. 즉, SVG 파일은 호환 뷰어와 드로잉 애플리케이션에서 동일한 방식으로 읽고 해석되어야 함을 의미합니다.

For more information on the SVG format see: Scalable Vector Graphics.

SVG in FreeCAD

FreeCAD is primarily a 3D modeling application, and thus doesn't have many 2D drawing tools. On the other hand FreeCAD relies on SVG files:

  • Icons in the graphical user interface, representing tools in menus and toolbars, or objects and features in the Tree View
  • Templates for the TechDraw workbench, representing sheets of paper, that define the format of a drawing and enable printing to scale. They can also provide frames, and a title block.
  • Symbols, TechDraw Views embedding a single SVG file each, to provide frequently used graphic annotation elements.

In addition FreeCAD can import SVG files into 3D space:

  • As an image plane that can be positioned by its Placement property.
  • As separate 2D shapes on the XY-plane that can be used as base geometry for further modeling.

Finally FreeCAD has tools exporting to SVG:

  • 3D geometry can be saved as Flattened SVG. In this case selected geometry is projected on the XY-plane and only X-, and Y-coordinates are used to derive SVG elements.
  • TechDraw provides a tool to save the current drawing.

Std Import and Std Export handle SVG related 3D import and export tasks, they use the Draft SVG function of the Draft module to convert 3D geometry from/to the SVG format.

Usage

Here we have additional descriptions focussed on SVG files for Std Import and Std Export.

3D Import

  1. Make sure there is an activate document.
  2. Select the File → Import... option from the menu.
  3. In the file browser that appears do one of the following:
    • With the default settings unchanged:
      1. Select a file and press the Open button.
      2. The Select Module dialog appears. From Open svg as select:
        • Image formats (FreeCAD) to import the SVG file as an image plane.
        • SVG as geometry (importSVG) to import the SVG file as separate shapes.
      3. Press the Open button to close the dialog and finish the tool.
    • Optionally select the SVG as geometry filter option.
    1. Select the desired SVG file and press the Open button to finish the tool.
  4. Depending on the selected options an image plane or several shape and text objects are added to the document.

3D Export

Select one or more shapes.

  1. Select the File → Export... option from the menu.
  2. In the file browser that appears select the Flattened SVG filter option.
  3. Enter a filename.
  4. Select a folder to save the SVG file.
  5. Press the Save button to close the browser and finish the tool.

2D Import and Export

The descriptions of the 2D tools are well focussed on SVG files so that linking the relevant pages is sufficient here.

  • Templates are SVG files required to define drawing sheets (Page objects) in TechDraw.
  • A symbol is a kind of TechDraw view used to add an SVG image for graphical annotation purposes to a TechDraw Page and optionally connect it with another TechDraw feature as its owner.
    • Insert SVG opens a file browser to select and import an SVG symbol file.
  • Optionally, when a drawing is finished the page can be exported as an SVG file.

관련