-
Notifications
You must be signed in to change notification settings - Fork 83
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
Mesh2D.save puts points in yz-plane #60
Comments
Actually I'm not sure that any embedding into ℝ³ is needed. Trying meshio.write('M2.mesh', meshio.Mesh(self.p.T, cells)) produces a valid two-dimensional MEDIT mesh file. Gmsh opens and renders this O. K.
|
I think that embedding into R^3 was done due to vtk export. But yz-plane sounds strange indeed. |
Yes, something to do with VTK, but maybe not too serious. meshio.write('M2.vtk', meshio.Mesh(M.p.T, {'triangle': M.t.T}))
|
Originally scikit-fem used pyevtk so it might be a remnant. I think it can be freely removed. |
don't embed 2d points in (yz-plane of) 3d, fixes #60
While investigating the
MeshTri
returned byrefinterp
#59 , I was puzzled to find thatsave
prepends rather than appends zero coordinates; i.e. it puts it into the yz-plane rather than the xy-plane.See https://github.com/kinnala/scikit-fem/blame/master/skfem/mesh/mesh2d/mesh2d.py#L191
Is that intentional?
The text was updated successfully, but these errors were encountered: