This project has moved to https://tfs.ansys.com:8443/tfs/ANSYS_Development/Additive/_git/binary-slice-file-reader
C# reader for 3DSIM binary scan files
dotnet run <scanfile.bin> <scanFileSummary>
For all projects, it will be MacOS, Windows, and Linux or N/A
Input - 3DSIM binary slice file. Output - text file with a summary of the scan lines
N/A
The binary file is made up of a series of data blocks where each data block looks like this:
Data | Type | Notes |
---|---|---|
Block Type Id | int | ID of one of the block types described in the next section |
Block Size | int | Number of bytes in the Data section |
Data | byte array | Data - "block size" bytes |
Data will contain n ascii bytes to make a string
Data | Type | Notes |
---|---|---|
Layer Index | int | Slice layer |
These are the outer and inner most contours of the part.
Data | Type | Notes | |
---|---|---|---|
Count | int | Number of contours | |
X | Type | int | 0 - outside, 1 - inside, 2 - open |
X | Points | int | Number of points in the contour |
X | Point Data | byte array | x1,y1,x2,y2,x3,y3 ... |
X Repeat count times - 1 per contour
Data | Type | Notes | |
---|---|---|---|
Count | int | Number of Parameter Sets | |
X | Id | int | Unique identifier |
X | Type | int | 1 - fill, 2 - contour, more to come |
X | Laser Power | int | Watts (w) |
X | Laser Speed | float | meters per second (m/s) |
X Repeat count times - 1 per parameter set
Data | Type | Notes |
---|---|---|
Count | int | Number of scan lines |
Parameter Set Id | int | Id of parameter set associated with these scan lines |
Rotation Angle | float | Rotation angle for fill type scan lines, -1 otherwise |
Scan Area Id | int | Index of scan area, -1 if not applicable |
Scan line data | byte array | (line1) x1,y1,x2,y2 (line2) x1,y1,x2,y2 ... |
- Tim Sublette
- Ryan Walls
- Chad Queen
- Pete Krull
- Alex Drinkwater
September 2017