by PFJN » Sun Feb 14, 2016 9:06 pm
Hi,
I looked up STL files on the internet and it turned out that there are two formats. One is just a text file and the other is in binary. And t here are alot of freeware prgrams that you can use to convert between the two.
The text file appears to just be a header, followed by a collection of data points, followed by triplet groups of numbers for the points that form the corners of a triangle. So, in my spreadsheet I defined a set of points on a bunch of stations/sections along the hull and then set up the cells in my spreadsheet to group them properly.
For example, say I have a ship that I divide into 20 sections. If I list ten points along the section at the ship's transom and ten points at the next section forward, and ten points for the next section ahead of that, then I'd end up with a string of 20 x 10 = 200 pts (with the 1st 10 would be on the 1st section (the transom), the next ten on the next section, and so on.)
For the list of triplet points then, for the 1st triangle I'd call out pt1, pt2, and pt21 as defining this triangle (ie the 1st and 2nd pts on the 1st station and the 1st point on the next station). The next set of triplets would then include pt21, pt22, and pt2 (ie the 1st and 2nd pts on the 2nd section and the 2nd pt on the 1st section). The 3rd triplet would then be pt2, pt3, and pt22, etc.
Once you do all that you can export/temporarily save the Excel file as a CSV file, then use NotePad to clean out any unnecessary commas and such, then use a free 3D file converter to convert from text to a binary format.
I know that this may seem a little vague and confusing and you may have to mess around a little with the ordering of the points to make sure that they all point in the correct direction, so it may be a little trial and error. If I can find my old spreadsheet I can try and send it to you if it is of any help.
Pat
Hi,
I looked up STL files on the internet and it turned out that there are two formats. One is just a text file and the other is in binary. And t here are alot of freeware prgrams that you can use to convert between the two.
The text file appears to just be a header, followed by a collection of data points, followed by triplet groups of numbers for the points that form the corners of a triangle. So, in my spreadsheet I defined a set of points on a bunch of stations/sections along the hull and then set up the cells in my spreadsheet to group them properly.
For example, say I have a ship that I divide into 20 sections. If I list ten points along the section at the ship's transom and ten points at the next section forward, and ten points for the next section ahead of that, then I'd end up with a string of 20 x 10 = 200 pts (with the 1st 10 would be on the 1st section (the transom), the next ten on the next section, and so on.)
For the list of triplet points then, for the 1st triangle I'd call out pt1, pt2, and pt21 as defining this triangle (ie the 1st and 2nd pts on the 1st station and the 1st point on the next station). The next set of triplets would then include pt21, pt22, and pt2 (ie the 1st and 2nd pts on the 2nd section and the 2nd pt on the 1st section). The 3rd triplet would then be pt2, pt3, and pt22, etc.
Once you do all that you can export/temporarily save the Excel file as a CSV file, then use NotePad to clean out any unnecessary commas and such, then use a free 3D file converter to convert from text to a binary format.
I know that this may seem a little vague and confusing and you may have to mess around a little with the ordering of the points to make sure that they all point in the correct direction, so it may be a little trial and error. If I can find my old spreadsheet I can try and send it to you if it is of any help.
Pat