Conversion of DXF to SVG produces objects composed of multiple lines

Hello,
I have a problem that I am facing with the conversion of DXF files to SVG.
On the example given in the attachment, I have a circle entity in the DXF file that, after converting to an SVG, it appears to be composed of multiple lines that form a circle or a polygon (resulting in the circle having multiple small edges as shown in EdgesOnCircle.png) rather than a completely round circle.
I attached an image illustrating the problem, the DXF file and the resulting SVG file in the following archive: circle_entity.7z (16.7 KB).
Below is the code that I used for conversion:

 double width, height;

 using (var image = Aspose.CAD.Image.Load(fullFilePath))
 {
     var cadImage = (CadImage)image;

     width = cadImage.MaxPoint.X - cadImage.MinPoint.X;
     height = cadImage.MaxPoint.Y - cadImage.MinPoint.Y;
     var rasterizationOptions = new CadRasterizationOptions
     {
         BackgroundColor = Aspose.CAD.Color.White,
         PageWidth = (float)width,
         PageHeight = (float)height,
         UnitType = UnitType.Inch,
         NoScaling = false,
         GraphicsOptions =
         {
             SmoothingMode = Aspose.CAD.SmoothingMode.HighQuality,
             InterpolationMode = Aspose.CAD.InterpolationMode.High
         }
     };

     var svgOptions = new Aspose.CAD.ImageOptions.SvgOptions
     {
         VectorRasterizationOptions = rasterizationOptions,
         TextAsShapes = false
     };

     image.Save(fullFilePathWitSvgExtension, svgOptions);
 }

Please let me know if this is something that I can address using the Aspose.CAD library?

Thank you,

@Victor.Ionescu,
Hello.
Currently we have this export as a polyline. We have created CADNET-9493 to investigate possible improvements for this. You can try to increase quality with setting Quality property for CadRasterizationOptions:

   Quality = new RasterizationQuality {
                        ObjectsPrecision = Aspose.CAD.ImageOptions.RasterizationQualityValue.High,
                        Arc = Aspose.CAD.ImageOptions.RasterizationQualityValue.High },
                };
1 Like