Skip to content

Strange behaviour of Spline.PolygonalVertexes() #821

@bealni

Description

@bealni

Here: bealni.com/dxf is an example of a strange behaviour of Spline.PolygonalVertexes().
You can download the dxf file sample.dxf.
This file contains only SPLINE entities.

The code is:

private List<CSMath.XYZ> CreateEntityVertices_SPLINE(Entity entity)
{
ACadSharp.Entities.Spline spline;
List<CSMath.XYZ> vertices;
spline = entity as ACadSharp.Entities.Spline;
vertices = spline.PolygonalVertexes(SPLINE_PRECISION *
(spline.ControlPoints.Count - 1));
return vertices;
}

The figure 1 was generated using SPLINE_PRECISION = 2, while
the figure 2 was generated using SPLINE_PRECISION = 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions