Skip to content

Turning DXF into an SVG in rust. #1223

Answered by mozman
raisfeld-ori asked this question in Q&A
Discussion options

You must be logged in to vote

The rough workflow of the drawing add-on:

Frontend:

  • resolving the DXF attributes in the context of the layout, block or viewport
  • ordering entities and filtering invisible entities
  • preparing the entities for the render pipeline

Render Pipeline:

  • convert DXF entities (incl. text entities) to drawing primitives: lines, linear paths and filled paths
  • clipping drawing primitives (viewports, clipped block references)
  • resolving line types into solid line segments
  • passing the drawing primitives to the Backend

Backend:

  • renders the drawing primitives as SVG, PDF, PNG, JPG, HPGL2, ....

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raisfeld-ori
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by raisfeld-ori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants