Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Anarocha25 opened this issue Feb 3, 2022 · 0 comments

Comments

@Anarocha25
Copy link

Anarocha25 commented Feb 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant