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

About Input Raw Data #5

Open
yuyuanzi-hub opened this issue Oct 31, 2024 · 1 comment
Open

About Input Raw Data #5

yuyuanzi-hub opened this issue Oct 31, 2024 · 1 comment

Comments

@yuyuanzi-hub
Copy link

Hello, I want to ask that how could you build the raw data, from the coordinates of the points to the triangle vertex indices?

@gt2001
Copy link
Collaborator

gt2001 commented Nov 7, 2024

Are you asking about the format of a RAW file for triangular meshes?

The first line contains two numbers, representing the number of vertices nV and the number of faces nF in the triangular mesh.
From the second line to the (1+nV)-th line, each line contains three numbers separated by spaces, representing the three-dimensional coordinates of a vertex.
From the (2+nV)-th line to the (1+nV+nF)-th line, each line contains three non-negative integers separated by spaces, representing the indices of the three vertices that form a triangle. The indices are zero-based.

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