StlViewer is a wpf control for .stl file.
1.Just binding StlModel
to StlModel
DependencyProperty of StlControl
.
<view:StlControl Color="Cornsilk" StlModel="{Binding StlModel}" />
2.You can create StlModel
by passing a data stream to the StlModelParser
.
var model = new StlParser().Parse(dataStream);
3.Rotate or scale the model with mouse.
Simply as you can.
Any advice could also send to z_xueqin@icloud.com.