Module greenlab

Class SMBReader

java.lang.Object
de.grogra.greenlab.amapsymbol.SMBReader

public class SMBReader extends Object
Class providing functionality to load SMB geometry data The SMBObject describes a geometric object stored in an .smb file. The .smb file format is used by the AMAPmod software. In this implementation, the class
invalid reference
#PolygonMesh
is re-used to represent an SMB object. As .smb files use unsigned variable types not supported by Java, the following Java variable types are used to represent the unsigned variable types. Java 'long' to represent C++ 'unsigned int32' Java 'int' to represent C++ 'unsigned int16' Java 'float' to represent C++ 'float' Due to the use of unsigned variables, the SMB object can contain more vertices than what the class
invalid reference
#PolygonMesh
can support. (Because
invalid reference
#PolygonMesh
uses int indices for indexing the vertices.) Considering that it is unlikely for the number of vertices to exceed the max of Java's int, PolygonMesh is re-used. This also allows re-use of the mesh calculation algorithms already existing in GroIMP.
Author:
yongzhi ong
  • Constructor Details

    • SMBReader

      public SMBReader(InputStream input, long length)
    • SMBReader

      public SMBReader(InputStream input)
  • Method Details

    • getObeject

      public Node getObeject()
    • getPolygonMesh

      public PolygonMesh getPolygonMesh()