官方的DLP打印机是用什么软件将STL文件转换成.BMP呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
请参考软件example:
http://www.freesteel.co.uk/wpblog/slicer/
solid block10
facet normal 0 0 0
outer loop
vertex 0 10 10
vertex 0 10 0
vertex 0 0 10
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 0 0 10
vertex 0 10 0
vertex 0 0 0
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 10 10 10
vertex 0 10 10
vertex 10 0 10
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 10 0 10
vertex 0 10 10
vertex 0 0 10
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 10 10 0
vertex 10 10 10
vertex 10 0 0
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 10 0 0
vertex 10 10 10
vertex 10 0 10
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 0 10 0
vertex 10 10 0
vertex 0 0 0
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 0 0 0
vertex 10 10 0
vertex 10 0 0
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 10 10 10
vertex 10 10 0
vertex 0 10 10
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 0 10 10
vertex 10 10 0
vertex 0 10 0
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 10 0 0
vertex 10 0 10
vertex 0 0 0
endloop
endfacet
facet normal 0 0 0
outer loop
vertex 0 0 0
vertex 10 0 10
vertex 0 0 10
endloop
endfacet
endsolid
Using Cube10.stl, which is a 10x10x10 cube
> slice cube10.stl
prints the JSON formatted result:
{"xlo": 0.0, "yhi": 10.0, "xhi": 10.0,
"zhi": 10.0, "ylo": 0.0, "zlo": 0.0}
{"n_triangles": 12, "n_points": 8,
"n_edges": 28, "n_unmatched_edges": 0}
{"flat_area_z": [0.0, 10.0]}
To create a single slice at Z=5 with a tool radius 1mm and layer height of 0.1,
> slice -layer=0.1 -r1 -f0 cube10.stl
The response (in JSOP) is:
{"z": 5.0, "polygons": [{"points": [[-0.9078014184397163, -0.4194002678573765],
[-0.911478589796249, -0.4113475177304966], [-0.9500634676302036, -0.312056737588
6527], [-0.9771031917621306, -0.2127659574468086], [-0.9935408316398511, -0.1134
7517730496448], [-0.9998993963780151, -0.014184397163120366], [-1.0, 0.085106382
9787233], ..., [-0.792456004957226, -0.6099290780141844], [-0.
8085106382978724, -0.5884815611038012], [-0.8597956319649682, -0.510638297872340
3], [-0.9078014184397163, -0.4194002678573765]], "type": "core"}]}
The shape of this is a square of width 12mm with 1mm rounded corners, because it is sampled with a disc of radius 1. If you want the cut on the surface, the shape must be offset back to its original form using -f-1.
You cannot slice exactly on a flat area because the result is ambiguous, so slicer moves the position of Z slightly.
> slice -z10 cube10.stl
returns
{"z":10.0075, "polygons": []}
To create a silhouette, simply set the z value to below the zlo for the model and the layer thickness to greater than the height of the model.
下载和参考使用:
www.freesteel.co.uk/wpblog/slicer/
测试这个command lines,测试没有问题的.你也可以联系Freesteel Z-level slicer 供应商.
@echo off
set temp_path=NULL
set object_file=NULL
set output_path=NULL
set /a layer_thickness=10
set /a start_z_level=0
set /a end_z_level=0
set /a total_int=0
:a
set /p temp_path="Enter the path where the slicing program is installed(hit enter for default): "
if "%temp_path%"=="NULL" (goto i) else (set slice_path="%temp_path%")
set temp_path=NULL
:i
set /p temp_path="Enter the path where ImageMagick is installed(hit enter for default): "
if "%temp_path%"=="NULL" (goto b) else (set im_path="%temp_path%")
:b
set /p object_file="Enter the path and file name of the object to be sliced: "
if "%object_file%"=="NULL" (goto b)
:c
set /p output_path="Enter the path for the output images: "
if "%output_path%"=="NULL" (goto c)
:d
set /p layer_thickness="What is the desired z-layer thickness (in microns)?: "
if %layer_thickness% LSS 10 (goto d)
:e
set /p start_z_level="What is the beginning z layer?: "
if %start_z_level% LSS 0 (goto e)
:f
set /p end_z_level="What is the ending z layer?: "
if %end_z_level% LEQ %start_z_level% (goto f)
if %layer_thickness% LSS 100 (goto g)
%slice_path%\slice.exe -o %output_path%\0.bmp -r0.01 -w1290 -h806 -z%start_z_level%,%end_z_level%,0.%layer_thickness% -l0.%layer_thickness% --cavity=#000000 --core=#ffffff "%object_file%"
goto h
:g
%slice_path%\slice.exe -o %output_path%\0.bmp -r0.01 -w1290 -h806 -z%start_z_level%,%end_z_level%,0.0%layer_thickness% -l0.0%layer_thickness% --cavity=#000000 --core=#ffffff "%object_file%"
:h
%im_path%\mogrify.exe -resize 912x1140! %output_path%\*.bmp
Pause