You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
974 B
18 lines
974 B
namespace SparkClient.Views.UserControl.ViewportData.Helper; |
|
|
|
public class UnityHelper |
|
{ |
|
private static string _image_path = AppDomain.CurrentDomain.BaseDirectory + "/temp/image/"; |
|
|
|
/*** |
|
* 1、根据模型信息和钻石编码生成签名作为stl文件名(导出:ViewportHelperPro.ExportModelsToStl(null, path+filename)) |
|
* 2、判断同名STL文件是否存在 存在跳到 7 |
|
* 3、 清理temp下,image、stl两个目录 |
|
* 4、导出模型stl文件,记录完整的路径paramA |
|
* 5、执行导出命令 xx.exe --model=_stl_path+paramA --output=_image_path --type=0/1 0:心图(0.png) 1:箭图(1.png) |
|
* 6、等待命令结束 |
|
* 7、判断图片文件是否存在 --->>不存在:提示生成失败,请重试, --->>不存在并且从2过来的,跳到1 |
|
* 8、展示图片弹窗,并注以说明:心箭图为模拟渲染,实际请以切工镜观测为准。 |
|
* 9、关闭 |
|
*/ |
|
} |