Recent

Author Topic: DXF with arc in polyline is not visualized correctly  (Read 496 times)

rbettini

  • Newbie
  • Posts: 4
DXF with arc in polyline is not visualized correctly
« on: October 20, 2025, 02:16:14 am »
Hi All,

I'm trying to use FPVectorial to visualize a DXF with arc in polyline (file P1520_esq.txt - it's a DXF file) but the result (file 1520P_result.png) has lines instead arcs.
The result expected is in file 1520P_expected.png - I got this using lines and arcs intead polyline.
The problem is that the application requires using polyline.

The code I use to load the dxf is:
Code: Pascal  [Select][+][-]
  1. var
  2.   Vec : TvVectorialDocument;
  3.   Pag : TvVectorialPage;
  4. ::
  5.     Vec := TvVectorialDocument.Create;
  6.     Pag := Vec.AddPage();
  7.     Vec.ReadFromStrings(DMDes.DXFF, vfDXF);
  8.     Pag.DrawBackground(imDXF.Canvas);
  9.  

Lazarus version 4.0RC1
FPC version 3.2.2

Can you tell me if this is not implemented or I'm doing something wrong ?

Thank you,

zamtmn

  • Hero Member
  • *****
  • Posts: 683
Re: DXF with arc in polyline is not visualized correctly
« Reply #1 on: October 20, 2025, 10:56:33 am »
FpVectorial does not seem to support arc segments in 2DPolylines

 

TinyPortal © 2005-2018