Skip to content

Delta parameter in to_vtk function doesn't work well for specific values #23

Description

@Anarocha25

I'm trying to get the points of a simple mesh. I expect that the resolution is 0.5, but I don't get it in the X-axis.

My code is:

iges = pyiges.read("plate_default.iges")
mesh = iges.to_vtk(lines=True, bsplines=False, surfaces=True, merge=True, delta=0.5)
print(mesh.points)

OUTPUT:

([[0. , 0. , 0. ],
  [1. , 0. , 0. ],
  [0. , 0.5, 0. ],
  [1. , 0.5, 0. ]])

EXPECTED OUTPUT:

([[0. , 0. , 0. ],
  [0.5, 0. , 0. ],
  [1. , 0. , 0. ],
  [0. , 0.5, 0. ],
  [0.5, 0.5, 0. ],
  [1. , 0.5, 0. ]])

The file plate_default.iges is inside the zip: plate_default.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions