org.vrforcad
Class ReadSTLbinary

java.lang.Object
  extended by org.vrforcad.ReadSTLbinary

public class ReadSTLbinary
extends java.lang.Object

This class read a STL file in binary format.

Version:
1.0
Author:
Daniel Cioi

Constructor Summary
ReadSTLbinary(java.io.File STL_File)
           
 
Method Summary
 void readSTLbinaryFile()
          Read the binary file follow the rules: first 80 bytes - as any text such as the creator's name; after, 4 bytes - int equal to the number of facets in file; for each face read 50 bytes, 3x4 bytes for normals and 9x4 bytes for vertex coordonates, plus 2 bytes unused.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadSTLbinary

public ReadSTLbinary(java.io.File STL_File)
Method Detail

readSTLbinaryFile

public void readSTLbinaryFile()
                       throws java.io.IOException
Read the binary file follow the rules: first 80 bytes - as any text such as the creator's name; after, 4 bytes - int equal to the number of facets in file; for each face read 50 bytes, 3x4 bytes for normals and 9x4 bytes for vertex coordonates, plus 2 bytes unused.

Throws:
java.io.IOException