Magics also recognizes a material description a more detailed surface characteristic. This is the color of the entire object, unless overridden at each facet. If color is used, then somewhere in the header should be the ASCII string COLOR= followed by four bytes representing red, green, blue and alpha channel (transparency) in the range 0–255. The Materialise Magics software uses the 80-byte header at the top of the file to represent the overall color of the entire part.bit 15 is 1 if the color is valid, or 0 if the color is not valid (as with normal STL files).bits 10–14 are the intensity level for red (0–31),.bits 5–9 are the intensity level for green (0–31),. bits 0–4 are the intensity level for blue (0–31),.The VisCAM and SolidView software packages use the two "attribute byte count" bytes at the end of every triangle to store a 15-bit RGB color:.There are at least two non-standard variations on the binary STL format for adding color information: įloating-point numbers are represented as IEEE floating-point numbers and are assumed to be little-endian, although this is not stated in documentation. After these follows a 2-byte ("short") unsigned integer that is the "attribute byte count" – in the standard format, this should be zero because most software does not understand anything else. The file simply ends after the last triangle.Įach triangle is described by twelve 32-bit floating-point numbers: three for the normal and then three for the X/Y/Z coordinate of each vertex – just as with the ASCII version of STL. Following that is data describing each triangle in turn. Following the header is a 4-byte little-endian unsigned integer indicating the number of triangular facets in the file. A binary STL file has an 80-character header (which is generally ignored, but should never begin with solid because that may lead some software to assume that this is an ASCII STL file). Binary STL īecause ASCII STL files can be very large, a binary version of STL exists. The spaces between facet and normal and between outer and loop are required. Whitespace (spaces, tabs, newlines) may be used anywhere in the file except within numbers or words. In practice, however, all facets are simple triangles. The structure of the format suggests that other possibilities exist (e.g., facets with more than one loop, or loops with more than three vertices). Where each n or v is a floating-point number in sign- mantissa- e- sign- exponent format, e.g., 2.648000e-002. The file continues with any number of triangles, each represented as follows: facet normal n i n j n k outer loop vertex v1 x v1 y v1 z vertex v2 x v2 y v2 z vertex v3 x v3 y v3 z endloop endfacet The remainder of the line is ignored and is sometimes used to store metadata (e.g., filename, author, modification date, etc). Where name is an optional string (though if name is omitted there must still be a space after solid, for compatibility with some software). STL files contain no scale information, and the units are arbitrary. In the original specification, all STL coordinates were required to be positive numbers, but this restriction is no longer enforced and negative coordinates are commonly encountered in STL files today. Īn STL file describes a raw, unstructured triangulated surface by the unit normal and vertices (ordered by the right-hand rule ) of the triangles using a three-dimensional Cartesian coordinate system. Binary files are more common, since they are more compact. The STL format specifies both ASCII and binary representations. STL files describe only the surface geometry of a three-dimensional object without any representation of color, texture or other common CAD model attributes. This file format is supported by many other software packages it is widely used for rapid prototyping, 3D printing and computer-aided manufacturing. STL has several backronyms such as " Standard Triangle Language" and " Standard Tessellation Language". STL is a file format native to the stereolithography CAD software created by 3D Systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |