*sorry for the long post but I wanted to let you see the program. w++ //this section is for the outer for loop Single precision numbers require a 32-bit word and their representations are summarized in Table 1. *****This section reads all float vertices in the bunny vtk file or stl W++ //increments w after the 3 vertex is readĬout<
LET XF AND YF BE ADJACENT FLOATING POINT NUMBERS HOW TO
I understand how to read in the file and everything, but I don't understand how to seperate reading in a string and floats together and seperating the floating point values. When I have strings in it the program doesn't even read in anything do to inFile>*num which is reading in a float reads in a character. That comes out fine as long as I have floating point values. Here is my output when I just read in a file contain nothing but the floating put values. I only want to read in the floating point values, and ignore the other characters or strings Here is an example of how some of the data in a text file would look.
I want to only extract the floating point numbers from an stl file.