这是一个用于Blender的3D重建工作流工具,结合了MAUI跨平台应用和Blender插件,实现了从图像捕获到3D模型重建的完整流程。
blender_selecter/
├── Platforms/ # 平台特定代码
│ ├── Android/
│ ├── iOS/
│ ├── MacCatalyst/
│ ├── Tizen/
│ └── Windows/
├── Resources/ # 应用资源
├── MainPage.xaml/.cs # 主界面
├── MauiProgram.cs # 应用入口点
├── blender_plugin.py # Blender插件
└── README.md
Windows平台:
dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None --self-contained true -r win-x64
macOS平台:
dotnet publish -f net9.0-maccatalyst -c Release --self-contained true -r osx-x64
Linux平台:
# MAUI目前不直接支持Linux,可以考虑使用Uno Platform等替代方案
Edit > Preferences > Add-onsInstall... 按钮blender_plugin.py 文件TASK_ID:xxxx)POST /reconstruction
Content-Type: application/json
{
"image_path": "/path/to/image.png",
"image_width": 800,
"image_height": 600,
"selections": [
{
"x1": 100,
"y1": 100,
"x2": 200,
"y2": 200
},
{
"x1": 300,
"y1": 300,
"x2": 400,
"y2": 400
}
]
}
Response:
{
"task_id": "uuid-string"
}
GET /reconstruction/{task_id}
Response:
{
"status": "processing|completed|failed",
"progress": 0.75,
"model_url": "https://example.com/models/uuid.glb" // 当status为completed时
}
MainPage.xamlMainPage.xaml.csblender_selecter.csprojblender_plugin.py 中实现如果您遇到类似以下错误:
引发的异常: "System.InvalidOperationException" (位于 Microsoft.Extensions.DependencyInjection.dll 中)
程序 "[XXXX] blender_selecter.exe" 已退出,代码为 -1073741189 (0xc000027b)。
请尝试以下解决方案:
清理并重新构建项目:
dotnet clean
dotnet build
确保所有平台入口点正确配置:
检查依赖注入配置是否正确,在MauiProgram.cs中确认没有重复注册服务。
本项目仅供学习和研究使用。
如有问题,请提交Issue或联系项目维护者。
24 commits
3 commits
C#
57.3%
Python
42.7%
这是一个用于Blender的3D重建工作流工具,结合了MAUI跨平台应用和Blender插件,实现了从图像捕获到3D模型重建的完整流程。
blender_selecter/
├── Platforms/ # 平台特定代码
│ ├── Android/
│ ├── iOS/
│ ├── MacCatalyst/
│ ├── Tizen/
│ └── Windows/
├── Resources/ # 应用资源
├── MainPage.xaml/.cs # 主界面
├── MauiProgram.cs # 应用入口点
├── blender_plugin.py # Blender插件
└── README.md
Windows平台:
dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None --self-contained true -r win-x64
macOS平台:
dotnet publish -f net9.0-maccatalyst -c Release --self-contained true -r osx-x64
Linux平台:
# MAUI目前不直接支持Linux,可以考虑使用Uno Platform等替代方案
Edit > Preferences > Add-onsInstall... 按钮blender_plugin.py 文件TASK_ID:xxxx)POST /reconstruction
Content-Type: application/json
{
"image_path": "/path/to/image.png",
"image_width": 800,
"image_height": 600,
"selections": [
{
"x1": 100,
"y1": 100,
"x2": 200,
"y2": 200
},
{
"x1": 300,
"y1": 300,
"x2": 400,
"y2": 400
}
]
}
Response:
{
"task_id": "uuid-string"
}
GET /reconstruction/{task_id}
Response:
{
"status": "processing|completed|failed",
"progress": 0.75,
"model_url": "https://example.com/models/uuid.glb" // 当status为completed时
}
MainPage.xamlMainPage.xaml.csblender_selecter.csprojblender_plugin.py 中实现如果您遇到类似以下错误:
引发的异常: "System.InvalidOperationException" (位于 Microsoft.Extensions.DependencyInjection.dll 中)
程序 "[XXXX] blender_selecter.exe" 已退出,代码为 -1073741189 (0xc000027b)。
请尝试以下解决方案:
清理并重新构建项目:
dotnet clean
dotnet build
确保所有平台入口点正确配置:
检查依赖注入配置是否正确,在MauiProgram.cs中确认没有重复注册服务。
本项目仅供学习和研究使用。
如有问题,请提交Issue或联系项目维护者。
24 commits
3 commits
C#
57.3%
Python
42.7%