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

error #1

Open
1314520liu opened this issue Nov 27, 2023 · 11 comments
Open

error #1

1314520liu opened this issue Nov 27, 2023 · 11 comments

Comments

@1314520liu
Copy link

No description provided.

@1314520liu
Copy link
Author

how to sovle this problem "vtk_triangulate_points() missing 5 required positional arguments: 'mode', 'cell_size', 'convert_to_triangles', 'output', and 'display'"

@pemn
Copy link
Owner

pemn commented Nov 27, 2023

Hi, just pass the needed arguments.
ex.:
python vtk_triangulate_points.py points.csv grid 10 1 output.vtk
or if calling from another python:
from vtk_triangulate_points import vtk_triangulate_points
vtk_triangulate_points("points.csv", "grid", 10, 1, "output.vtk")

@1314520liu
Copy link
Author

fa0e1f2ceb2fe348355077b2f93a964
I cannot acquire the screenshots as your showing in folder 'assets',my result is showing with the picture above,would you mind help me ,thank you

@1314520liu
Copy link
Author

it is finished running ,but no expected image

@pemn
Copy link
Owner

pemn commented Nov 30, 2023

You must define a filename in the output field.
Ex.:
output.obj
Otherwise, the script will sucessfully run but will generate nothing, because you did not inform where the file name to save the result mesh.
Other output possible formats are csv, xlsx in case you dont have a software to load .obj meshes. And in case thats not already clear, what this scripts generates is a 3d mesh, not a image.

@1314520liu
Copy link
Author

image
Sorry to bother you again, I tried outputting files in the form of CSV, XLSX, OBJ, etc., but still reported this error

@pemn
Copy link
Owner

pemn commented Dec 4, 2023

This is indeed a bug. I didnt notice before because saving to .xlsx, while possible, is very unusal and was not in the tests.
I fixed in the pd_vtk.py file.
Regardless, for meshes a more suitable file format is *.obj instead of *.xlsx. And you will anyway require some kind of software to view this generated mesh. Ex.: Paraview The script does include a very crude 3d viewer, just check the "display" checkbox.

@1314520liu
Copy link
Author

What is the encoding format? This error has been present for a long time
image

@pemn
Copy link
Owner

pemn commented Dec 15, 2023

Sorry about the delay.
This error is just a consequence from the "utm.tif" not found. The mesh variable stays with None, instead of a dataframe.
check if this file "utm.tif" really exists on the given path and is a valid tif file.

@1314520liu
Copy link
Author

Hello, I am unable to access Vulcan 11, for example, this image. Can I obtain it from you, any way possible?
image

@pemn
Copy link
Owner

pemn commented Dec 18, 2023

Hello, I am unable to access Vulcan 11, for example, this image. Can I obtain it from you, any way possible? image

This external executable is only required for files in the .las format. As long as you dont use this format, this error should not appear. The Maptek Vulcan software is proprietary, and requires expensive licenses. If indeed you require to read .las files rather than acquring vulcan just for this small executable we could develop a another way to parse those files. I only used this las2txt.exe as a stopgap.

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

2 participants