VLFLreadSTLb
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Import/Export
Introduced first in SolidGeometry 1.0, Creation date: 2012-04-06, Last change: 2025-09-14
reads a STL-File in binary format
Description
Quite fast function to read a STL in binary format
Reads Attribute by count since 2018-11-29 (SG-Lib 4.4)
Read Normal Vector since 2020-12-01 (SG-Lib 5.0)
See Also: SGreadSTL
, SGwriteSTL
, VLFLreadSTL
, VLFLwriteSTL
, STLAsctoBin
Example Illustration
Syntax
[VL,FL,H,n,AbC,NL]=VLFLreadSTLb(FName,[mag,check])
Input Parameter
FName: | | Filename |
mag: | | optional magnification factor 1000 for m into mm |
check: | | optional call of VLFLchecker(VL,FL); |
Output Parameter
VL: | | Vertex list (x y z) |
FL: | | Facet list (v1 v2 v3) |
H: | | Header 80 Uint8 |
n: | | Number of triangles |
AbC: | | Attribute by Count per facet uint16(n) |
NL: | | Normal vector list (x y z) |
Examples
Simply loads a file from Desktop:
[VL,FL]=VLFLreadSTLb ('TEST-BIN1');
Copyright 2012-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21