mesheditor 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +853 -2
- package/dist-lib/esm/AIAgentService.d.ts +107 -0
- package/dist-lib/esm/AIAgentService.d.ts.map +1 -0
- package/dist-lib/esm/AIAgentService.js +1471 -0
- package/dist-lib/esm/AIAgentService.js.map +1 -0
- package/dist-lib/esm/MeshEditorApp.d.ts +413 -0
- package/dist-lib/esm/MeshEditorApp.d.ts.map +1 -0
- package/dist-lib/esm/MeshEditorApp.js +9093 -0
- package/dist-lib/esm/MeshEditorApp.js.map +1 -0
- package/dist-lib/esm/MeshEditorService.d.ts +460 -0
- package/dist-lib/esm/MeshEditorService.d.ts.map +1 -0
- package/dist-lib/esm/MeshEditorService.js +7084 -0
- package/dist-lib/esm/MeshEditorService.js.map +1 -0
- package/dist-lib/esm/Neural3DGeneratorService.d.ts +89 -0
- package/dist-lib/esm/Neural3DGeneratorService.d.ts.map +1 -0
- package/dist-lib/esm/Neural3DGeneratorService.js +1398 -0
- package/dist-lib/esm/Neural3DGeneratorService.js.map +1 -0
- package/dist-lib/esm/adapters/BrowserPlatformAdapter.d.ts +17 -0
- package/dist-lib/esm/adapters/BrowserPlatformAdapter.d.ts.map +1 -0
- package/dist-lib/esm/adapters/BrowserPlatformAdapter.js +26 -0
- package/dist-lib/esm/adapters/BrowserPlatformAdapter.js.map +1 -0
- package/dist-lib/esm/adapters/ElectronPlatformAdapter.d.ts +33 -0
- package/dist-lib/esm/adapters/ElectronPlatformAdapter.d.ts.map +1 -0
- package/dist-lib/esm/adapters/ElectronPlatformAdapter.js +337 -0
- package/dist-lib/esm/adapters/ElectronPlatformAdapter.js.map +1 -0
- package/dist-lib/esm/adapters/HostAppAdapter.d.ts +55 -0
- package/dist-lib/esm/adapters/HostAppAdapter.d.ts.map +1 -0
- package/dist-lib/esm/adapters/HostAppAdapter.js +76 -0
- package/dist-lib/esm/adapters/HostAppAdapter.js.map +1 -0
- package/dist-lib/esm/adapters/PlatformAdapter.d.ts +99 -0
- package/dist-lib/esm/adapters/PlatformAdapter.d.ts.map +1 -0
- package/dist-lib/esm/adapters/PlatformAdapter.js +2 -0
- package/dist-lib/esm/adapters/PlatformAdapter.js.map +1 -0
- package/dist-lib/esm/adapters/index.d.ts +14 -0
- package/dist-lib/esm/adapters/index.d.ts.map +1 -0
- package/dist-lib/esm/adapters/index.js +16 -0
- package/dist-lib/esm/adapters/index.js.map +1 -0
- package/dist-lib/esm/assets/fonts/Droid_Sans_Bold.json +1 -0
- package/dist-lib/esm/assets/fonts/Droid_Sans_Regular.json +1 -0
- package/dist-lib/esm/assets/fonts/Kenney_Future_Regular.json +1 -0
- package/dist-lib/esm/baking/TextureBaker.d.ts +85 -0
- package/dist-lib/esm/baking/TextureBaker.d.ts.map +1 -0
- package/dist-lib/esm/baking/TextureBaker.js +710 -0
- package/dist-lib/esm/baking/TextureBaker.js.map +1 -0
- package/dist-lib/esm/builtInSkills.d.ts +20 -0
- package/dist-lib/esm/builtInSkills.d.ts.map +1 -0
- package/dist-lib/esm/builtInSkills.js +187 -0
- package/dist-lib/esm/builtInSkills.js.map +1 -0
- package/dist-lib/esm/compression/ModelCompressor.d.ts +88 -0
- package/dist-lib/esm/compression/ModelCompressor.d.ts.map +1 -0
- package/dist-lib/esm/compression/ModelCompressor.js +554 -0
- package/dist-lib/esm/compression/ModelCompressor.js.map +1 -0
- package/dist-lib/esm/decals/DecalController.d.ts +148 -0
- package/dist-lib/esm/decals/DecalController.d.ts.map +1 -0
- package/dist-lib/esm/decals/DecalController.js +1032 -0
- package/dist-lib/esm/decals/DecalController.js.map +1 -0
- package/dist-lib/esm/decals/decalAssetUrls.d.ts +2 -0
- package/dist-lib/esm/decals/decalAssetUrls.d.ts.map +1 -0
- package/dist-lib/esm/decals/decalAssetUrls.js +17 -0
- package/dist-lib/esm/decals/decalAssetUrls.js.map +1 -0
- package/dist-lib/esm/geometry/architecture.d.ts +115 -0
- package/dist-lib/esm/geometry/architecture.d.ts.map +1 -0
- package/dist-lib/esm/geometry/architecture.js +832 -0
- package/dist-lib/esm/geometry/architecture.js.map +1 -0
- package/dist-lib/esm/geometry/bevelModifier.d.ts +60 -0
- package/dist-lib/esm/geometry/bevelModifier.d.ts.map +1 -0
- package/dist-lib/esm/geometry/bevelModifier.js +346 -0
- package/dist-lib/esm/geometry/bevelModifier.js.map +1 -0
- package/dist-lib/esm/geometry/facetSurfaceUtils.d.ts +128 -0
- package/dist-lib/esm/geometry/facetSurfaceUtils.d.ts.map +1 -0
- package/dist-lib/esm/geometry/facetSurfaceUtils.js +677 -0
- package/dist-lib/esm/geometry/facetSurfaceUtils.js.map +1 -0
- package/dist-lib/esm/geometry/roundedBox.d.ts +16 -0
- package/dist-lib/esm/geometry/roundedBox.d.ts.map +1 -0
- package/dist-lib/esm/geometry/roundedBox.js +134 -0
- package/dist-lib/esm/geometry/roundedBox.js.map +1 -0
- package/dist-lib/esm/index.d.ts +22 -0
- package/dist-lib/esm/index.d.ts.map +1 -0
- package/dist-lib/esm/index.js +51 -0
- package/dist-lib/esm/index.js.map +1 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionController.d.ts +60 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionController.d.ts.map +1 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionController.js +484 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionController.js.map +1 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionStudio.d.ts +77 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionStudio.d.ts.map +1 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionStudio.js +1793 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionStudio.js.map +1 -0
- package/dist-lib/esm/pathExtrusion/PathFactory.d.ts +96 -0
- package/dist-lib/esm/pathExtrusion/PathFactory.d.ts.map +1 -0
- package/dist-lib/esm/pathExtrusion/PathFactory.js +628 -0
- package/dist-lib/esm/pathExtrusion/PathFactory.js.map +1 -0
- package/dist-lib/esm/pathExtrusion/index.d.ts +5 -0
- package/dist-lib/esm/pathExtrusion/index.d.ts.map +1 -0
- package/dist-lib/esm/pathExtrusion/index.js +5 -0
- package/dist-lib/esm/pathExtrusion/index.js.map +1 -0
- package/dist-lib/esm/pathExtrusion/types.d.ts +51 -0
- package/dist-lib/esm/pathExtrusion/types.d.ts.map +1 -0
- package/dist-lib/esm/pathExtrusion/types.js +2 -0
- package/dist-lib/esm/pathExtrusion/types.js.map +1 -0
- package/dist-lib/esm/plugin.d.ts +251 -0
- package/dist-lib/esm/plugin.d.ts.map +1 -0
- package/dist-lib/esm/plugin.js +145 -0
- package/dist-lib/esm/plugin.js.map +1 -0
- package/dist-lib/esm/rigging/WeightPaintController.d.ts +163 -0
- package/dist-lib/esm/rigging/WeightPaintController.d.ts.map +1 -0
- package/dist-lib/esm/rigging/WeightPaintController.js +1422 -0
- package/dist-lib/esm/rigging/WeightPaintController.js.map +1 -0
- package/dist-lib/esm/sculpting/SculptController.d.ts +147 -0
- package/dist-lib/esm/sculpting/SculptController.d.ts.map +1 -0
- package/dist-lib/esm/sculpting/SculptController.js +2039 -0
- package/dist-lib/esm/sculpting/SculptController.js.map +1 -0
- package/dist-lib/esm/sdf/index.d.ts +3 -0
- package/dist-lib/esm/sdf/index.d.ts.map +1 -0
- package/dist-lib/esm/sdf/index.js +3 -0
- package/dist-lib/esm/sdf/index.js.map +1 -0
- package/dist-lib/esm/sdf/sdfPrimitives.d.ts +98 -0
- package/dist-lib/esm/sdf/sdfPrimitives.d.ts.map +1 -0
- package/dist-lib/esm/sdf/sdfPrimitives.js +403 -0
- package/dist-lib/esm/sdf/sdfPrimitives.js.map +1 -0
- package/dist-lib/esm/sdf/surfaceNets.d.ts +30 -0
- package/dist-lib/esm/sdf/surfaceNets.d.ts.map +1 -0
- package/dist-lib/esm/sdf/surfaceNets.js +400 -0
- package/dist-lib/esm/sdf/surfaceNets.js.map +1 -0
- package/dist-lib/esm/styles.d.ts +12 -0
- package/dist-lib/esm/styles.d.ts.map +1 -0
- package/dist-lib/esm/styles.js +33 -0
- package/dist-lib/esm/styles.js.map +1 -0
- package/dist-lib/esm/template.d.ts +13 -0
- package/dist-lib/esm/template.d.ts.map +1 -0
- package/dist-lib/esm/template.js +20 -0
- package/dist-lib/esm/template.js.map +1 -0
- package/dist-lib/esm/textMesh/TextMeshController.d.ts +62 -0
- package/dist-lib/esm/textMesh/TextMeshController.d.ts.map +1 -0
- package/dist-lib/esm/textMesh/TextMeshController.js +405 -0
- package/dist-lib/esm/textMesh/TextMeshController.js.map +1 -0
- package/dist-lib/esm/textures/AITextureGenerator.d.ts +120 -0
- package/dist-lib/esm/textures/AITextureGenerator.d.ts.map +1 -0
- package/dist-lib/esm/textures/AITextureGenerator.js +946 -0
- package/dist-lib/esm/textures/AITextureGenerator.js.map +1 -0
- package/dist-lib/esm/textures/ExternalImageGeneratorService.d.ts +63 -0
- package/dist-lib/esm/textures/ExternalImageGeneratorService.d.ts.map +1 -0
- package/dist-lib/esm/textures/ExternalImageGeneratorService.js +880 -0
- package/dist-lib/esm/textures/ExternalImageGeneratorService.js.map +1 -0
- package/dist-lib/esm/tools/AbstractTool.d.ts +69 -0
- package/dist-lib/esm/tools/AbstractTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/AbstractTool.js +129 -0
- package/dist-lib/esm/tools/AbstractTool.js.map +1 -0
- package/dist-lib/esm/tools/ToolExecutionContext.d.ts +41 -0
- package/dist-lib/esm/tools/ToolExecutionContext.d.ts.map +1 -0
- package/dist-lib/esm/tools/ToolExecutionContext.js +2 -0
- package/dist-lib/esm/tools/ToolExecutionContext.js.map +1 -0
- package/dist-lib/esm/tools/ToolInterface.d.ts +105 -0
- package/dist-lib/esm/tools/ToolInterface.d.ts.map +1 -0
- package/dist-lib/esm/tools/ToolInterface.js +2 -0
- package/dist-lib/esm/tools/ToolInterface.js.map +1 -0
- package/dist-lib/esm/tools/ToolRegistry.d.ts +44 -0
- package/dist-lib/esm/tools/ToolRegistry.d.ts.map +1 -0
- package/dist-lib/esm/tools/ToolRegistry.js +116 -0
- package/dist-lib/esm/tools/ToolRegistry.js.map +1 -0
- package/dist-lib/esm/tools/builtin/ApplyMaterialTool.d.ts +35 -0
- package/dist-lib/esm/tools/builtin/ApplyMaterialTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/ApplyMaterialTool.js +49 -0
- package/dist-lib/esm/tools/builtin/ApplyMaterialTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/AutoUVMappingTool.d.ts +35 -0
- package/dist-lib/esm/tools/builtin/AutoUVMappingTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/AutoUVMappingTool.js +55 -0
- package/dist-lib/esm/tools/builtin/AutoUVMappingTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/BakeTexturesTool.d.ts +43 -0
- package/dist-lib/esm/tools/builtin/BakeTexturesTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/BakeTexturesTool.js +82 -0
- package/dist-lib/esm/tools/builtin/BakeTexturesTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/BooleanOperationTool.d.ts +52 -0
- package/dist-lib/esm/tools/builtin/BooleanOperationTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/BooleanOperationTool.js +87 -0
- package/dist-lib/esm/tools/builtin/BooleanOperationTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/BuildVoxelMeshTool.d.ts +79 -0
- package/dist-lib/esm/tools/builtin/BuildVoxelMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/BuildVoxelMeshTool.js +171 -0
- package/dist-lib/esm/tools/builtin/BuildVoxelMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CloneArrayTool.d.ts +76 -0
- package/dist-lib/esm/tools/builtin/CloneArrayTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CloneArrayTool.js +116 -0
- package/dist-lib/esm/tools/builtin/CloneArrayTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateArchTool.d.ts +119 -0
- package/dist-lib/esm/tools/builtin/CreateArchTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateArchTool.js +90 -0
- package/dist-lib/esm/tools/builtin/CreateArchTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateColumnTool.d.ts +115 -0
- package/dist-lib/esm/tools/builtin/CreateColumnTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateColumnTool.js +106 -0
- package/dist-lib/esm/tools/builtin/CreateColumnTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateLatheTool.d.ts +88 -0
- package/dist-lib/esm/tools/builtin/CreateLatheTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateLatheTool.js +61 -0
- package/dist-lib/esm/tools/builtin/CreateLatheTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateMaterialTool.d.ts +115 -0
- package/dist-lib/esm/tools/builtin/CreateMaterialTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateMaterialTool.js +213 -0
- package/dist-lib/esm/tools/builtin/CreateMaterialTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateMoldingTool.d.ts +121 -0
- package/dist-lib/esm/tools/builtin/CreateMoldingTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateMoldingTool.js +96 -0
- package/dist-lib/esm/tools/builtin/CreateMoldingTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreatePrimitiveTool.d.ts +163 -0
- package/dist-lib/esm/tools/builtin/CreatePrimitiveTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreatePrimitiveTool.js +303 -0
- package/dist-lib/esm/tools/builtin/CreatePrimitiveTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateRoofTool.d.ts +121 -0
- package/dist-lib/esm/tools/builtin/CreateRoofTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateRoofTool.js +109 -0
- package/dist-lib/esm/tools/builtin/CreateRoofTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateRoundedBoxTool.d.ts +102 -0
- package/dist-lib/esm/tools/builtin/CreateRoundedBoxTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateRoundedBoxTool.js +80 -0
- package/dist-lib/esm/tools/builtin/CreateRoundedBoxTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateSdfMeshTool.d.ts +225 -0
- package/dist-lib/esm/tools/builtin/CreateSdfMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateSdfMeshTool.js +239 -0
- package/dist-lib/esm/tools/builtin/CreateSdfMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateStairsTool.d.ts +136 -0
- package/dist-lib/esm/tools/builtin/CreateStairsTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateStairsTool.js +120 -0
- package/dist-lib/esm/tools/builtin/CreateStairsTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateTextMeshTool.d.ts +95 -0
- package/dist-lib/esm/tools/builtin/CreateTextMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateTextMeshTool.js +132 -0
- package/dist-lib/esm/tools/builtin/CreateTextMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateTubeTool.d.ts +88 -0
- package/dist-lib/esm/tools/builtin/CreateTubeTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateTubeTool.js +60 -0
- package/dist-lib/esm/tools/builtin/CreateTubeTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateWallTool.d.ts +146 -0
- package/dist-lib/esm/tools/builtin/CreateWallTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/CreateWallTool.js +125 -0
- package/dist-lib/esm/tools/builtin/CreateWallTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/DecalTool.d.ts +77 -0
- package/dist-lib/esm/tools/builtin/DecalTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/DecalTool.js +144 -0
- package/dist-lib/esm/tools/builtin/DecalTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/DeleteMeshTool.d.ts +21 -0
- package/dist-lib/esm/tools/builtin/DeleteMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/DeleteMeshTool.js +43 -0
- package/dist-lib/esm/tools/builtin/DeleteMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/ExecuteBabylonCodeTool.d.ts +22 -0
- package/dist-lib/esm/tools/builtin/ExecuteBabylonCodeTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/ExecuteBabylonCodeTool.js +96 -0
- package/dist-lib/esm/tools/builtin/ExecuteBabylonCodeTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/ExtrudePolygonTool.d.ts +115 -0
- package/dist-lib/esm/tools/builtin/ExtrudePolygonTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/ExtrudePolygonTool.js +77 -0
- package/dist-lib/esm/tools/builtin/ExtrudePolygonTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/ExtrudeShapeTool.d.ts +105 -0
- package/dist-lib/esm/tools/builtin/ExtrudeShapeTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/ExtrudeShapeTool.js +69 -0
- package/dist-lib/esm/tools/builtin/ExtrudeShapeTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetArcTool.d.ts +37 -0
- package/dist-lib/esm/tools/builtin/FacetArcTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetArcTool.js +58 -0
- package/dist-lib/esm/tools/builtin/FacetArcTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetCutThroughTool.d.ts +31 -0
- package/dist-lib/esm/tools/builtin/FacetCutThroughTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetCutThroughTool.js +50 -0
- package/dist-lib/esm/tools/builtin/FacetCutThroughTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetExtrudeTool.d.ts +31 -0
- package/dist-lib/esm/tools/builtin/FacetExtrudeTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetExtrudeTool.js +50 -0
- package/dist-lib/esm/tools/builtin/FacetExtrudeTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetInsetTool.d.ts +35 -0
- package/dist-lib/esm/tools/builtin/FacetInsetTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/FacetInsetTool.js +56 -0
- package/dist-lib/esm/tools/builtin/FacetInsetTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/GenerateNeuralMeshTool.d.ts +132 -0
- package/dist-lib/esm/tools/builtin/GenerateNeuralMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/GenerateNeuralMeshTool.js +456 -0
- package/dist-lib/esm/tools/builtin/GenerateNeuralMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/GenerateTextureTool.d.ts +88 -0
- package/dist-lib/esm/tools/builtin/GenerateTextureTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/GenerateTextureTool.js +217 -0
- package/dist-lib/esm/tools/builtin/GenerateTextureTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/GetSceneInfoTool.d.ts +12 -0
- package/dist-lib/esm/tools/builtin/GetSceneInfoTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/GetSceneInfoTool.js +13 -0
- package/dist-lib/esm/tools/builtin/GetSceneInfoTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/MergeMeshesTool.d.ts +29 -0
- package/dist-lib/esm/tools/builtin/MergeMeshesTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/MergeMeshesTool.js +57 -0
- package/dist-lib/esm/tools/builtin/MergeMeshesTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/PlanModelTool.d.ts +88 -0
- package/dist-lib/esm/tools/builtin/PlanModelTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/PlanModelTool.js +156 -0
- package/dist-lib/esm/tools/builtin/PlanModelTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/RetopologizeMeshTool.d.ts +51 -0
- package/dist-lib/esm/tools/builtin/RetopologizeMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/RetopologizeMeshTool.js +117 -0
- package/dist-lib/esm/tools/builtin/RetopologizeMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/RigWeightTool.d.ts +56 -0
- package/dist-lib/esm/tools/builtin/RigWeightTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/RigWeightTool.js +140 -0
- package/dist-lib/esm/tools/builtin/RigWeightTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/SculptMeshTool.d.ts +139 -0
- package/dist-lib/esm/tools/builtin/SculptMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/SculptMeshTool.js +256 -0
- package/dist-lib/esm/tools/builtin/SculptMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/SeparateMeshTool.d.ts +22 -0
- package/dist-lib/esm/tools/builtin/SeparateMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/SeparateMeshTool.js +32 -0
- package/dist-lib/esm/tools/builtin/SeparateMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/SolidifyMeshTool.d.ts +31 -0
- package/dist-lib/esm/tools/builtin/SolidifyMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/SolidifyMeshTool.js +58 -0
- package/dist-lib/esm/tools/builtin/SolidifyMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/SpawnBaseMeshTool.d.ts +67 -0
- package/dist-lib/esm/tools/builtin/SpawnBaseMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/SpawnBaseMeshTool.js +106 -0
- package/dist-lib/esm/tools/builtin/SpawnBaseMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/SubDSmoothTool.d.ts +24 -0
- package/dist-lib/esm/tools/builtin/SubDSmoothTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/SubDSmoothTool.js +38 -0
- package/dist-lib/esm/tools/builtin/SubDSmoothTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/SubdivideMeshTool.d.ts +24 -0
- package/dist-lib/esm/tools/builtin/SubdivideMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/SubdivideMeshTool.js +40 -0
- package/dist-lib/esm/tools/builtin/SubdivideMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/TransformMeshTool.d.ts +79 -0
- package/dist-lib/esm/tools/builtin/TransformMeshTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/TransformMeshTool.js +70 -0
- package/dist-lib/esm/tools/builtin/TransformMeshTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/UVUnwrapTool.d.ts +49 -0
- package/dist-lib/esm/tools/builtin/UVUnwrapTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/UVUnwrapTool.js +108 -0
- package/dist-lib/esm/tools/builtin/UVUnwrapTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/VoxelPainterTool.d.ts +61 -0
- package/dist-lib/esm/tools/builtin/VoxelPainterTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/VoxelPainterTool.js +154 -0
- package/dist-lib/esm/tools/builtin/VoxelPainterTool.js.map +1 -0
- package/dist-lib/esm/tools/builtin/index.d.ts +45 -0
- package/dist-lib/esm/tools/builtin/index.d.ts.map +1 -0
- package/dist-lib/esm/tools/builtin/index.js +45 -0
- package/dist-lib/esm/tools/builtin/index.js.map +1 -0
- package/dist-lib/esm/tools/editor/AIAgentEditorTool.d.ts +19 -0
- package/dist-lib/esm/tools/editor/AIAgentEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/AIAgentEditorTool.js +44 -0
- package/dist-lib/esm/tools/editor/AIAgentEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/AITextureEditorTool.d.ts +16 -0
- package/dist-lib/esm/tools/editor/AITextureEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/AITextureEditorTool.js +29 -0
- package/dist-lib/esm/tools/editor/AITextureEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/AbstractEditorTool.d.ts +30 -0
- package/dist-lib/esm/tools/editor/AbstractEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/AbstractEditorTool.js +57 -0
- package/dist-lib/esm/tools/editor/AbstractEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/AnimationPlayerEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/AnimationPlayerEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/AnimationPlayerEditorTool.js +30 -0
- package/dist-lib/esm/tools/editor/AnimationPlayerEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/BakingEditorTool.d.ts +22 -0
- package/dist-lib/esm/tools/editor/BakingEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/BakingEditorTool.js +45 -0
- package/dist-lib/esm/tools/editor/BakingEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/CSGEditorTool.d.ts +21 -0
- package/dist-lib/esm/tools/editor/CSGEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/CSGEditorTool.js +43 -0
- package/dist-lib/esm/tools/editor/CSGEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/CompressModelEditorTool.d.ts +21 -0
- package/dist-lib/esm/tools/editor/CompressModelEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/CompressModelEditorTool.js +49 -0
- package/dist-lib/esm/tools/editor/CompressModelEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/CreatePrimitiveEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/CreatePrimitiveEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/CreatePrimitiveEditorTool.js +37 -0
- package/dist-lib/esm/tools/editor/CreatePrimitiveEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/DecalEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/DecalEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/DecalEditorTool.js +37 -0
- package/dist-lib/esm/tools/editor/DecalEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/FacetEditorTool.d.ts +24 -0
- package/dist-lib/esm/tools/editor/FacetEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/FacetEditorTool.js +81 -0
- package/dist-lib/esm/tools/editor/FacetEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/MaterialEditorTool.d.ts +19 -0
- package/dist-lib/esm/tools/editor/MaterialEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/MaterialEditorTool.js +44 -0
- package/dist-lib/esm/tools/editor/MaterialEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/MeshPropertiesEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/MeshPropertiesEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/MeshPropertiesEditorTool.js +38 -0
- package/dist-lib/esm/tools/editor/MeshPropertiesEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/OutlinerEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/OutlinerEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/OutlinerEditorTool.js +35 -0
- package/dist-lib/esm/tools/editor/OutlinerEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/PathExtrusionEditorTool.d.ts +27 -0
- package/dist-lib/esm/tools/editor/PathExtrusionEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/PathExtrusionEditorTool.js +73 -0
- package/dist-lib/esm/tools/editor/PathExtrusionEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/RiggingEditorTool.d.ts +28 -0
- package/dist-lib/esm/tools/editor/RiggingEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/RiggingEditorTool.js +67 -0
- package/dist-lib/esm/tools/editor/RiggingEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/SceneEnvironmentEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/SceneEnvironmentEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/SceneEnvironmentEditorTool.js +36 -0
- package/dist-lib/esm/tools/editor/SceneEnvironmentEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/SculptEditorTool.d.ts +29 -0
- package/dist-lib/esm/tools/editor/SculptEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/SculptEditorTool.js +71 -0
- package/dist-lib/esm/tools/editor/SculptEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/TextMeshEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/TextMeshEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/TextMeshEditorTool.js +31 -0
- package/dist-lib/esm/tools/editor/TextMeshEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/TextureOptimizerEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/TextureOptimizerEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/TextureOptimizerEditorTool.js +29 -0
- package/dist-lib/esm/tools/editor/TextureOptimizerEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/UVUnwrapEditorTool.d.ts +28 -0
- package/dist-lib/esm/tools/editor/UVUnwrapEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/UVUnwrapEditorTool.js +71 -0
- package/dist-lib/esm/tools/editor/UVUnwrapEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/VoxelPainterEditorTool.d.ts +27 -0
- package/dist-lib/esm/tools/editor/VoxelPainterEditorTool.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/VoxelPainterEditorTool.js +69 -0
- package/dist-lib/esm/tools/editor/VoxelPainterEditorTool.js.map +1 -0
- package/dist-lib/esm/tools/editor/aiQuickPrompts.d.ts +31 -0
- package/dist-lib/esm/tools/editor/aiQuickPrompts.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/aiQuickPrompts.js +229 -0
- package/dist-lib/esm/tools/editor/aiQuickPrompts.js.map +1 -0
- package/dist-lib/esm/tools/editor/index.d.ts +33 -0
- package/dist-lib/esm/tools/editor/index.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/index.js +55 -0
- package/dist-lib/esm/tools/editor/index.js.map +1 -0
- package/dist-lib/esm/tools/editor/toolViews.d.ts +11 -0
- package/dist-lib/esm/tools/editor/toolViews.d.ts.map +1 -0
- package/dist-lib/esm/tools/editor/toolViews.js +54 -0
- package/dist-lib/esm/tools/editor/toolViews.js.map +1 -0
- package/dist-lib/esm/tools/editorTools.d.ts +6 -0
- package/dist-lib/esm/tools/editorTools.d.ts.map +1 -0
- package/dist-lib/esm/tools/editorTools.js +6 -0
- package/dist-lib/esm/tools/editorTools.js.map +1 -0
- package/dist-lib/esm/tools/index.d.ts +9 -0
- package/dist-lib/esm/tools/index.d.ts.map +1 -0
- package/dist-lib/esm/tools/index.js +9 -0
- package/dist-lib/esm/tools/index.js.map +1 -0
- package/dist-lib/esm/tools/textureUtils.d.ts +19 -0
- package/dist-lib/esm/tools/textureUtils.d.ts.map +1 -0
- package/dist-lib/esm/tools/textureUtils.js +289 -0
- package/dist-lib/esm/tools/textureUtils.js.map +1 -0
- package/dist-lib/esm/types.d.ts +165 -0
- package/dist-lib/esm/types.d.ts.map +1 -0
- package/dist-lib/esm/types.js +2 -0
- package/dist-lib/esm/types.js.map +1 -0
- package/dist-lib/esm/uv/UVUnwrapController.d.ts +109 -0
- package/dist-lib/esm/uv/UVUnwrapController.d.ts.map +1 -0
- package/dist-lib/esm/uv/UVUnwrapController.js +1023 -0
- package/dist-lib/esm/uv/UVUnwrapController.js.map +1 -0
- package/dist-lib/esm/voxel/CustomVoxelMesher.d.ts +16 -0
- package/dist-lib/esm/voxel/CustomVoxelMesher.d.ts.map +1 -0
- package/dist-lib/esm/voxel/CustomVoxelMesher.js +170 -0
- package/dist-lib/esm/voxel/CustomVoxelMesher.js.map +1 -0
- package/dist-lib/esm/voxel/TextureAtlasManager.d.ts +55 -0
- package/dist-lib/esm/voxel/TextureAtlasManager.d.ts.map +1 -0
- package/dist-lib/esm/voxel/TextureAtlasManager.js +631 -0
- package/dist-lib/esm/voxel/TextureAtlasManager.js.map +1 -0
- package/dist-lib/esm/voxel/VoxelPainterController.d.ts +101 -0
- package/dist-lib/esm/voxel/VoxelPainterController.d.ts.map +1 -0
- package/dist-lib/esm/voxel/VoxelPainterController.js +672 -0
- package/dist-lib/esm/voxel/VoxelPainterController.js.map +1 -0
- package/dist-lib/esm/voxel/index.d.ts +5 -0
- package/dist-lib/esm/voxel/index.d.ts.map +1 -0
- package/dist-lib/esm/voxel/index.js +5 -0
- package/dist-lib/esm/voxel/index.js.map +1 -0
- package/dist-lib/esm/voxel/types.d.ts +79 -0
- package/dist-lib/esm/voxel/types.d.ts.map +1 -0
- package/dist-lib/esm/voxel/types.js +2 -0
- package/dist-lib/esm/voxel/types.js.map +1 -0
- package/dist-lib/esm/web-component/MeshEditorElement.d.ts +104 -0
- package/dist-lib/esm/web-component/MeshEditorElement.d.ts.map +1 -0
- package/dist-lib/esm/web-component/MeshEditorElement.js +247 -0
- package/dist-lib/esm/web-component/MeshEditorElement.js.map +1 -0
- package/dist-lib/esm/web-component/index.d.ts +2 -0
- package/dist-lib/esm/web-component/index.d.ts.map +1 -0
- package/dist-lib/esm/web-component/index.js +2 -0
- package/dist-lib/esm/web-component/index.js.map +1 -0
- package/dist-lib/index.umd.js +3 -0
- package/dist-lib/mesheditor.css +2 -0
- package/dist-lib/standalone/mesheditor-element.bundle.js +3 -0
- package/package.json +113 -4
- package/skills/README.md +48 -0
- package/skills/figure-sculptor.md +297 -0
- package/skills/image-to-mesh.md +18 -0
- package/skills/mesh-updater.md +27 -0
- package/skills/neural-3d-generator.md +53 -0
- package/skills/procedural-modeler.md +267 -0
- package/skills/voxel-painter.md +21 -0
- package/src/mesheditor.css +6477 -0
package/package.json
CHANGED
|
@@ -1,6 +1,115 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mesheditor",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "A free, open-source 3D modeling studio powered by Babylon.js. Create, edit, sculpt, retopologize and optimize 3D assets with optional AI assistance. Available as a browser app, desktop application and embeddable Web Component. Supports GLB, GLTF, OBJ, STL and PLY.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "dist-lib/index.umd.js",
|
|
7
|
+
"module": "dist-lib/esm/index.js",
|
|
8
|
+
"types": "dist-lib/esm/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist-lib/esm/index.d.ts",
|
|
12
|
+
"import": "./dist-lib/esm/index.js",
|
|
13
|
+
"require": "./dist-lib/index.umd.js",
|
|
14
|
+
"default": "./dist-lib/esm/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./standalone": "./dist-lib/standalone/mesheditor-element.bundle.js",
|
|
17
|
+
"./style.css": "./dist-lib/mesheditor.css",
|
|
18
|
+
"./mesheditor.css": "./dist-lib/mesheditor.css"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/peer2p/mesheditor.git"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://peer2p.github.io/mesheditor/",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/peer2p/mesheditor/issues"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist-lib/esm",
|
|
33
|
+
"dist-lib/index.umd.js",
|
|
34
|
+
"dist-lib/mesheditor.css",
|
|
35
|
+
"dist-lib/standalone/mesheditor-element.bundle.js",
|
|
36
|
+
"src/mesheditor.css",
|
|
37
|
+
"skills",
|
|
38
|
+
"README.md"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"dev": "webpack serve --mode development",
|
|
42
|
+
"ai:bridge": "node scripts/antigravity-bridge.js",
|
|
43
|
+
"build": "webpack --mode production",
|
|
44
|
+
"build:pages": "npm run build:lib:bundle && npm run build && node scripts/prepare-pages.js",
|
|
45
|
+
"build:dev": "webpack --mode development",
|
|
46
|
+
"prod": "webpack serve --mode production --port 8080",
|
|
47
|
+
"sync:skills": "node scripts/sync-skills.js",
|
|
48
|
+
"sync:templates": "node scripts/sync-templates.js",
|
|
49
|
+
"build:lib:styles": "node scripts/sync-styles.js",
|
|
50
|
+
"build:lib:skills": "node scripts/sync-skills.js",
|
|
51
|
+
"build:lib:templates": "node scripts/sync-templates.js",
|
|
52
|
+
"build:lib:esm": "tsc -p tsconfig.lib.json",
|
|
53
|
+
"build:lib:bundle": "webpack --config webpack.lib.config.js",
|
|
54
|
+
"build:lib": "npm run build:lib:styles && npm run build:lib:skills && npm run build:lib:templates && npm run build:lib:esm && npm run build:lib:bundle",
|
|
55
|
+
"icons:generate": "node scripts/generate-icons.js",
|
|
56
|
+
"desktop:dev": "electron electron/main.js --dev",
|
|
57
|
+
"desktop:start": "npm run build && electron electron/main.js",
|
|
58
|
+
"desktop:build:mac": "npm run build && electron-builder --mac --config electron-builder.yml",
|
|
59
|
+
"desktop:build:win": "npm run build && electron-builder --win --config electron-builder.yml",
|
|
60
|
+
"desktop:build:linux": "npm run build && electron-builder --linux --config electron-builder.yml",
|
|
61
|
+
"desktop:build:all": "npm run build && electron-builder -mwl --config electron-builder.yml",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:integration": "vitest run",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"test:e2e": "playwright test",
|
|
66
|
+
"test:all": "vitest run && playwright test",
|
|
67
|
+
"type-check": "tsc --noEmit",
|
|
68
|
+
"clean": "rm -rf dist dist-lib release",
|
|
69
|
+
"prepublishOnly": "npm run build:lib"
|
|
70
|
+
},
|
|
71
|
+
"keywords": [
|
|
72
|
+
"babylonjs",
|
|
73
|
+
"mesh-editor",
|
|
74
|
+
"web-component",
|
|
75
|
+
"custom-element",
|
|
76
|
+
"3d",
|
|
77
|
+
"webgl",
|
|
78
|
+
"typescript",
|
|
79
|
+
"electron"
|
|
80
|
+
],
|
|
81
|
+
"author": "daniel.peer@gmx.net",
|
|
82
|
+
"license": "Apache-2.0",
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@babylonjs/core": ">=9.29.0",
|
|
85
|
+
"@babylonjs/loaders": ">=9.29.0",
|
|
86
|
+
"@babylonjs/materials": ">=9.29.0",
|
|
87
|
+
"@babylonjs/serializers": ">=9.29.0"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"@babylonjs/core": ">=9.29.0",
|
|
91
|
+
"@babylonjs/loaders": ">=9.29.0",
|
|
92
|
+
"@babylonjs/materials": ">=9.29.0",
|
|
93
|
+
"@babylonjs/serializers": ">=9.29.0",
|
|
94
|
+
"dat.gui": "^0.7.9",
|
|
95
|
+
"earcut": "2.2.4",
|
|
96
|
+
"lucide": "^1.62.0",
|
|
97
|
+
"marked": "^18.1.2"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@playwright/test": "^1.64.1",
|
|
101
|
+
"@types/dat.gui": "^0.7.13",
|
|
102
|
+
"@types/node": "^26.2.0",
|
|
103
|
+
"copy-webpack-plugin": "^13.0.1",
|
|
104
|
+
"electron": "^45.1.0",
|
|
105
|
+
"electron-builder": "^26.18.0",
|
|
106
|
+
"html-webpack-plugin": "^5.6.4",
|
|
107
|
+
"jsdom": "^30.1.3",
|
|
108
|
+
"ts-loader": "^9.6.2",
|
|
109
|
+
"typescript": "^6.0.3",
|
|
110
|
+
"vitest": "^5.0.5",
|
|
111
|
+
"webpack": "^5.112.2",
|
|
112
|
+
"webpack-cli": "^7.2.2",
|
|
113
|
+
"webpack-dev-server": "^6.0.0"
|
|
114
|
+
}
|
|
115
|
+
}
|
package/skills/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# AI Agent Modeling Skills
|
|
2
|
+
|
|
3
|
+
This directory contains markdown (`.md`) skill definitions for the Mesh Editor AI Agent.
|
|
4
|
+
Any `.md` file placed here (or in subdirectories like `skills/<skill-name>/SKILL.md`) is automatically discovered and loaded by the Mesh Editor.
|
|
5
|
+
|
|
6
|
+
## Skill File Structure
|
|
7
|
+
|
|
8
|
+
Each skill file uses standard Markdown, optionally starting with YAML frontmatter to configure metadata:
|
|
9
|
+
|
|
10
|
+
```markdown
|
|
11
|
+
---
|
|
12
|
+
id: custom-skill-id
|
|
13
|
+
name: Custom Modeling Skill Name
|
|
14
|
+
description: Brief summary displayed in the UI settings checklist.
|
|
15
|
+
enabled: true
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Skill Instructions Header
|
|
19
|
+
|
|
20
|
+
Provide domain-specific instructions, prompt guidance, and tool usage rules here.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Supported Metadata Fields:
|
|
24
|
+
- `id`: Unique identifier (defaults to filename without extension)
|
|
25
|
+
- `name`: Display name in the AI skills checklist (defaults to the first `# Heading` or file id)
|
|
26
|
+
- `description`: Short description shown under the skill checkbox
|
|
27
|
+
- `enabled`: `true` (default) or `false` to toggle initial activation
|
|
28
|
+
|
|
29
|
+
## Built-In Skills
|
|
30
|
+
|
|
31
|
+
| Skill File | Skill ID | Description |
|
|
32
|
+
| :--- | :--- | :--- |
|
|
33
|
+
| [`3d-mesh-modeler.md`](file:///Users/dpeer/Sites/games/mesheditor/skills/3d-mesh-modeler.md) | `3d-mesh-modeler` | Core spatial 3D modeling rules, proportion ratios, grounding (`Y = 0`), and primitive composition. |
|
|
34
|
+
| [`csg-boolean-architect.md`](file:///Users/dpeer/Sites/games/mesheditor/skills/csg-boolean-architect.md) | `csg-boolean-architect` | Constructive Solid Geometry (CSG2) workflows for boolean subtraction, union, and intersection. |
|
|
35
|
+
| [`pbr-material-stylist.md`](file:///Users/dpeer/Sites/games/mesheditor/skills/pbr-material-stylist.md) | `pbr-material-stylist` | Physically Based Rendering (PBR) material composition, metallic/roughness calibration, and normal maps. |
|
|
36
|
+
| [`mesh-topology-optimizer.md`](file:///Users/dpeer/Sites/games/mesheditor/skills/mesh-topology-optimizer.md) | `mesh-topology-optimizer` | Triangle budget adherence, QEM decimation, subdivision, and vertex welding guidelines. |
|
|
37
|
+
| [`image-to-mesh.md`](file:///Users/dpeer/Sites/games/mesheditor/skills/image-to-mesh.md) | `image-to-mesh` | Multimodal 2D-to-3D visual decomposition from attached reference images and viewport snapshots. |
|
|
38
|
+
| [`neural-3d-generator.md`](file:///Users/dpeer/Sites/games/mesheditor/skills/neural-3d-generator.md) | `neural-3d-generator` | Hybrid task & subtask delegation to external Neural 3D Generators (**TRELLIS 2**, **Hunyuan3D**, **Hi3D**) via local **oMLX**, FastAPI, Gradio, or cloud BYO-key endpoints (`modeler_generate_neural_mesh`). |
|
|
39
|
+
|
|
40
|
+
## Synchronizing Built-In Skills
|
|
41
|
+
|
|
42
|
+
After adding or editing any `.md` skill file in `skills/`, synchronize `src/builtInSkills.ts` by running:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm run sync:skills
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: figure-sculptor
|
|
3
|
+
name: Figure Sculptor & Game Retopology (Anatomy, Proportions & Real-Time Topology)
|
|
4
|
+
description: Guidance for building, sculpting, and retopologizing organic figures (humanoids, animals, creatures) using anatomical canons (Loomis, Bammes, Goldfinger), deformation loops, and game-ready polycount budgets.
|
|
5
|
+
enabled: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Figure Sculptor & Game Retopology Skill
|
|
9
|
+
|
|
10
|
+
Use this skill whenever requested to create, sculpt, proportion, or retopologize organic 3D models: human figures, characters, animals, quadrupeds, fantasy creatures, head busts, facial features, or game-ready humanoid avatars.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 1. Hierarchy of Forms (From Macro to Micro)
|
|
15
|
+
|
|
16
|
+
1. **Primary Forms (Silhouette & Volume)**:
|
|
17
|
+
- Always establish overall silhouette, proportions, and center of gravity first before adding fine features.
|
|
18
|
+
- If a character is not instantly recognizable and dynamic in pure black silhouette, interior details will not save it.
|
|
19
|
+
- Decompose the body into fundamental 3D masses:
|
|
20
|
+
- Head: Ellipsoid with flattened sides (temporal planes) and tapered jaw wedge.
|
|
21
|
+
- Torso / Ribcage: Ovoid barrel cage tilted slightly backward ($5^\circ$).
|
|
22
|
+
- Pelvis: Truncated wedge tilted slightly forward ($10^\circ$), creating the natural lumbar lordosis curve.
|
|
23
|
+
- Glimbs: Interlocking tapered cylinders.
|
|
24
|
+
2. **Secondary Forms (Anatomical Landmarks)**:
|
|
25
|
+
- Major muscular masses: Pectoralis major, Deltoids, Biceps/Triceps, Rectus abdominis, Gluteus, Quadriceps, Gastrocnemius (calves).
|
|
26
|
+
- Invariable **Bony Landmarks** (always visible under skin):
|
|
27
|
+
- Clavicles (collar bones) forming a wide "V" or bicycle handlebar shape.
|
|
28
|
+
- Jugular notch at top of sternum ($Y = 1.50\text{m}$).
|
|
29
|
+
- Acromion process of the shoulder.
|
|
30
|
+
- 10th rib lower margin at waist ($Y = 1.15\text{m}$).
|
|
31
|
+
- Anterior superior iliac spine (ASIS) of the hips.
|
|
32
|
+
- Patella (kneecap) and tibial crest (shin bone).
|
|
33
|
+
- Elbow olecranon and wrist styloid processes.
|
|
34
|
+
3. **Tertiary Forms (Fine Details)**:
|
|
35
|
+
- Tendons, muscle separations, eyelid margins, nostril flares, lip contours, and skin folds.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 2. Anatomical Proportions & Mathematical Canons (Human)
|
|
40
|
+
|
|
41
|
+
Babylon.js uses a left-handed coordinate system: **Y is up**, **X is width (left/right)**, **Z is depth (forward/back)**.
|
|
42
|
+
All figures must be standing on ground level **$Y = 0$** and centered at **$X = 0, Z = 0$**.
|
|
43
|
+
|
|
44
|
+
### The Loomis 8-Head Canon (Standard Heroic Game Character: $H = 1.80\text{m}$)
|
|
45
|
+
|
|
46
|
+
Each head unit is $\text{Unit} = \frac{1.80\text{m}}{8} = 0.225\text{m}$.
|
|
47
|
+
|
|
48
|
+
| Head Segment | Height Range ($Y$) | Key Anatomical Landmarks |
|
|
49
|
+
| ------------ | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
|
+
| **Head 1** | $1.575\text{m} - 1.800\text{m}$ | Cranium crown ($1.80\text{m}$), Eye line (exact half of head, $1.687\text{m}$), Nose base ($1.63\text{m}$), Mouth ($1.60\text{m}$), Chin ($1.575\text{m}$). |
|
|
51
|
+
| **Head 2** | $1.350\text{m} - 1.575\text{m}$ | Neck cylinder, Jugular notch ($1.50\text{m}$), Clavicle/Shoulder axis ($1.45\text{m}$), Nipple line ($1.35\text{m}$). |
|
|
52
|
+
| **Head 3** | $1.125\text{m} - 1.350\text{m}$ | Lower ribcage arch, Navel ($1.125\text{m}$), Elbow pivot line ($1.125\text{m}$). |
|
|
53
|
+
| **Head 4** | $0.900\text{m} - 1.125\text{m}$ | **Exact Body Midpoint ($0.5 \times H = 0.90\text{m}$)**: Pubic arch / Groin, Wrist line ($0.90\text{m}$), Greater trochanter (hip pivots). |
|
|
54
|
+
| **Head 5** | $0.675\text{m} - 0.900\text{m}$ | Mid-thigh, Fingertips reach mid-thigh at $Y = 0.70\text{m}$. |
|
|
55
|
+
| **Head 6** | $0.450\text{m} - 0.675\text{m}$ | **Lower Knee Cap / Patella ($0.25 \times H = 0.45\text{m}$)**. Knee joint flexes backwards. |
|
|
56
|
+
| **Head 7** | $0.225\text{m} - 0.450\text{m}$ | Calf belly (Gastrocnemius maximum diameter at $Y = 0.35\text{m}$). |
|
|
57
|
+
| **Head 8** | $0.000\text{m} - 0.225\text{m}$ | Ankle malleoli ($Y = 0.08\text{m}$), Foot sole flat on ground ($Y = 0.00\text{m}$). |
|
|
58
|
+
|
|
59
|
+
- **Width Proportions**:
|
|
60
|
+
- Shoulders width (Deltoid to Deltoid): $2.0 \times \text{head width} \approx 0.45\text{m} - 0.50\text{m}$.
|
|
61
|
+
- Waist width: $\approx 0.28\text{m} - 0.32\text{m}$.
|
|
62
|
+
- Hips width: $\approx 0.34\text{m} - 0.36\text{m}$ (equal to chest width in athletic males, wider than chest in females).
|
|
63
|
+
- **Arm Span**: Outstretched fingertips from left to right equal total body height ($1.80\text{m}$).
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 3. Stylized & Cartoon Proportions (Chibi / Super Mario / Toon Canon)
|
|
68
|
+
|
|
69
|
+
When asked to create stylized cartoon characters, mascots, dwarves, toons, or iconic figures like **Super Mario**:
|
|
70
|
+
**NEVER use the 8-head realistic mannequin!** A realistic 8-head skeleton makes cartoon characters look uncanny and disproportioned. Use the **Chibi / Cartoon Canon (3.5 – 4 Heads)**:
|
|
71
|
+
|
|
72
|
+
1. **The 3.5-Head Cartoon Canon ($H \approx 1.20\text{m}$)**:
|
|
73
|
+
- **Head ($\approx 35\%$ of total height)**: Large, expressive sphere/ovoid ($0.42\text{m} \times 0.38\text{m} \times 0.40\text{m}$) centered at $Y = 0.98\text{m}$. Features a prominent bulbous nose ($0.16\text{m}$) at $(0, 0.96, 0.22)$ and round ears at $(\pm 0.22, 0.98, 0)$.
|
|
74
|
+
- **Torso / Potbelly**: Rounded barrel ovoid ($0.44\text{m} \times 0.34\text{m} \times 0.42\text{m}$) centered at $Y = 0.69\text{m}$, protruding forward ($Z = +0.03\text{m}$) for the iconic potbelly silhouette.
|
|
75
|
+
- **Arms & T-Pose**: In T-Pose, arms extend horizontally along the X-axis from shoulders ($Y = 0.74\text{m}$) to wrists ($X = \pm 0.57\text{m}$) ending in large rounded cartoon gloves ($X = \pm 0.65\text{m}$, diameter $0.16\text{m}$).
|
|
76
|
+
- **Legs & Boots**: Short sturdy legs ($Y = 0.16\text{m} - 0.42\text{m}$) with oversized, rounded cartoon boots ($0.26\text{m}$ long, $0.17\text{m}$ wide, $0.13\text{m}$ high) resting flat on ground $Y = 0$.
|
|
77
|
+
2. **Spawning the Cartoon Base Mesh**:
|
|
78
|
+
- Call `modeler_spawn_base_mesh` with `type: "chibi"`, `pose: "t_pose"`, and `materialStyle: "colored"`.
|
|
79
|
+
- This automatically creates the 3.5-head cartoon blockout in true T-Pose with pre-assigned PBR materials for skin, clothing, gloves, and boots!
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 4. Soft Organic Contours vs. Rigid Mannequin (How to Avoid the "Holzig" / Wooden Look)
|
|
84
|
+
|
|
85
|
+
A common flaw when proceduralizing characters is the **"Wooden Mannequin" (Gliederpuppe) syndrome**: stacking primitive cylinders and sphere ball-joints. Even when vertex buffers are merged, harsh intersecting seams remain visible, making the character look like a rigid wooden toy.
|
|
86
|
+
|
|
87
|
+
### The 4 Essential Rules for Soft, Continuous Organic Contours:
|
|
88
|
+
|
|
89
|
+
1. **Continuous Spline Limbs (`MeshBuilder.CreateTube`)**:
|
|
90
|
+
- **NEVER** build organic limbs out of disjoint cylinders with sphere joints!
|
|
91
|
+
- Construct limbs as continuous, smoothly curved 3D paths using `MeshBuilder.CreateTube`.
|
|
92
|
+
- Use `radiusFunction: (index, distance) => number` to smoothly taper limbs from shoulder/hip through elbow/knee down to wrist/ankle.
|
|
93
|
+
- Example arm tube path:
|
|
94
|
+
```javascript
|
|
95
|
+
const armPath = [
|
|
96
|
+
new Vector3(side * 0.18, 0.65, 0.02), // Shoulder
|
|
97
|
+
new Vector3(side * 0.32, 0.5, 0.07), // Curved elbow
|
|
98
|
+
new Vector3(side * 0.42, 0.35, 0.13), // Wrist
|
|
99
|
+
];
|
|
100
|
+
MeshBuilder.CreateTube(
|
|
101
|
+
"arm",
|
|
102
|
+
{
|
|
103
|
+
path: armPath,
|
|
104
|
+
radiusFunction: (i) => (i === 0 ? 0.07 : i === 1 ? 0.055 : 0.045),
|
|
105
|
+
tessellation: 16,
|
|
106
|
+
cap: Mesh.CAP_ALL,
|
|
107
|
+
},
|
|
108
|
+
scene,
|
|
109
|
+
);
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
2. **Unified Organic Volumes (Pear / Teardrop Silhouette)**:
|
|
113
|
+
- For cute, stylized, or creature models (such as Chibi characters, imps, demons, and mascots), unite the head and potbelly into **one continuous pear-shaped volume** (e.g. `MeshBuilder.CreateSphere` with non-uniform scaling `(1.08, 1.25, 0.98)` or a smooth capsule).
|
|
114
|
+
- Eliminating the separate neck cylinder immediately removes the robotic look.
|
|
115
|
+
|
|
116
|
+
3. **Subdivision Surface (Sub-D) Smoothing (`modeler_subd_smooth`)**:
|
|
117
|
+
- When joining components or box-modeling cages, apply `modeler_subd_smooth` with `iterations: 1` or `2`.
|
|
118
|
+
- Sub-D midpoint subdivision combined with Laplacian vertex relaxation automatically welds and fillets sharp intersection creases into soft, organic skin transitions.
|
|
119
|
+
|
|
120
|
+
4. **Satin Specular PBR Shading**:
|
|
121
|
+
- High roughness ($\ge 0.8$) flattens lighting and turns models into chalky, unappealing clay.
|
|
122
|
+
- Soft organic skin requires **PBR roughness between $0.35$ and $0.45$** with subtle metallic ($0.0 - 0.05$). The resulting soft specular glint accentuates the smooth curvature of the silhouette.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 5. Multi-Material Assignment & PBR Satin Specularity
|
|
127
|
+
|
|
128
|
+
A finished character must **NEVER be left as a single uncolored clay lump**. Every character requires distinct, vibrant PBR materials with appropriate gloss:
|
|
129
|
+
|
|
130
|
+
| Character Element | PBR Albedo Color | Roughness | Metallic | Notes |
|
|
131
|
+
| ----------------------- | ----------------------- | --------- | -------- | ------------------------------------------------------- |
|
|
132
|
+
| **Stylized Demon Skin** | `#c9182b` (Crimson Red) | 0.38 | 0.02 | Soft satin sheen showcasing curvaceous organic contours |
|
|
133
|
+
| **Horns & Halo** | `#202024` (Charcoal) | 0.45 | 0.10 | Matte horn texture / dark metallic ring |
|
|
134
|
+
| **Eyes (Sclera)** | `#f0f0f5` (White) | 0.25 | 0.00 | Glossy cartoon eyeball |
|
|
135
|
+
| **Pupils** | `#111114` (Jet Black) | 0.50 | 0.00 | Horizontal slit cartoon pupils |
|
|
136
|
+
| **Fangs / Teeth** | `#ffffff` (Pure White) | 0.30 | 0.00 | Smooth enamel fangs |
|
|
137
|
+
| **Human / Chibi Skin** | `#f5c59e` or `#f8c8a0` | 0.50 | 0.00 | Warm cartoon peach skin tone |
|
|
138
|
+
| **Mario Red Cap** | `#e52521` | 0.45 | 0.00 | Iconic Nintendo vermilion red |
|
|
139
|
+
| **Swimming Trunks** | `#002fbe` (Royal Blue) | 0.45 | 0.05 | Blue swim shorts with `#ffffff` waistband |
|
|
140
|
+
| **Cartoon Gloves** | `#f5f5f5` | 0.40 | 0.00 | Soft white fabric with rolled wrist cuffs |
|
|
141
|
+
| **Boots / Shoes** | `#5c2c16` | 0.70 | 0.00 | Deep leather brown |
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 6. Recipe: Stylized Organic Creature / Chibi Demon (Soft Contours)
|
|
146
|
+
|
|
147
|
+
To generate a cute, stylized organic creature or imp (soft red skin, curved horns, digitigrade legs, bat wings, halo, pitchfork):
|
|
148
|
+
|
|
149
|
+
1. **Step 1: Spawn Organic Base Mesh**:
|
|
150
|
+
- Call `modeler_spawn_base_mesh`:
|
|
151
|
+
```json
|
|
152
|
+
{ "type": "creature", "name": "chibi_demon", "materialStyle": "colored" }
|
|
153
|
+
```
|
|
154
|
+
- This automatically creates the seamless pear body, continuous curved tubular limbs, claws, horns, wings, halo, and eyes with soft satin PBR red skin!
|
|
155
|
+
|
|
156
|
+
2. **Step 2: Sub-D Smoothing & Sculpting (Optional)**:
|
|
157
|
+
- Call `modeler_subd_smooth` with `iterations: 1` if extra organic curvature is desired.
|
|
158
|
+
- Use the `clay` or `smooth` brush with low radius ($0.25$) to shape brow ridges or cheek volume.
|
|
159
|
+
|
|
160
|
+
3. **Step 3: Game Retopology**:
|
|
161
|
+
- Call `modeler_retopologize_mesh` with `targetFaces: 4000` (for mobile) or `12000` (for standard game).
|
|
162
|
+
- This applies Quadric Error Metric decimation and recalculates smooth vertex normals so all silhouettes stay silky smooth.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 7. Recipe: Super Mario Like Heroes (Soft Organic Chibi)
|
|
167
|
+
|
|
168
|
+
When building Super Mario in swimming trunks (T-Pose):
|
|
169
|
+
|
|
170
|
+
1. **Step 1: Spawn Chibi Base Mesh in T-Pose**:
|
|
171
|
+
- Call `modeler_spawn_base_mesh`:
|
|
172
|
+
```json
|
|
173
|
+
{
|
|
174
|
+
"type": "chibi",
|
|
175
|
+
"pose": "t_pose",
|
|
176
|
+
"name": "hero_base",
|
|
177
|
+
"materialStyle": "colored",
|
|
178
|
+
"style": "organic"
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
- Setting `"style": "organic"` ensures limbs are generated as smooth continuous tubes without disjoint sphere joints!
|
|
182
|
+
|
|
183
|
+
2. **Step 2: Organic Sculpting**:
|
|
184
|
+
- Call `modeler_sculpt_mesh` to accentuate organic facial planes or cheeks:
|
|
185
|
+
```json
|
|
186
|
+
{
|
|
187
|
+
"meshName": "hero_base",
|
|
188
|
+
"brush": "inflate",
|
|
189
|
+
"strokes": [
|
|
190
|
+
{ "x": 0.12, "y": 0.96, "z": 0.18, "radius": 0.22, "strength": 0.45 }
|
|
191
|
+
],
|
|
192
|
+
"symmetryX": true
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
- _Note on `modeler_subd_smooth`_: The organic chibi base mesh already features smooth continuous curved surfaces (~4,000 tris). `modeler_subd_smooth` is designed for low-poly angular blockout cages; do not apply it to already dense organic meshes to avoid unnecessary polygon bloat.
|
|
196
|
+
|
|
197
|
+
3. **Step 3: Merge Meshes Preserving Multi-Materials**:
|
|
198
|
+
- Call `modeler_merge_meshes` with `meshNames: ["*"]`, `newName: "hero_name"`.
|
|
199
|
+
- All distinct PBR materials (e.g. skin, hair, shirt, pants, shoes) are preserved in a unified MultiMaterial!
|
|
200
|
+
|
|
201
|
+
4. **Step 4: Retopologize to Target Budget**:
|
|
202
|
+
- Call `modeler_retopologize_mesh` with `targetFaces: 4000` (or the requested budget).
|
|
203
|
+
- Simplifies the geometry to the exact real-time polygon budget while keeping silhouette and smooth normals.
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## 6. Quadruped & Creature Anatomy (Goldfinger & Whitlatch Principles)
|
|
208
|
+
|
|
209
|
+
When creating animals, monsters, or fantasy quadrupeds (wolves, horses, dragons, big cats):
|
|
210
|
+
|
|
211
|
+
1. **Locomotion Leg Mechanics**:
|
|
212
|
+
- **Plantigrade** (Human, Bear): Flat foot.
|
|
213
|
+
- **Digitigrade** (Canine, Feline, Wolf):
|
|
214
|
+
- The backward-pointing joint is the **elevated hock/heel** ($Y \approx 0.25\text{m} - 0.35\text{m}$), NOT the knee!
|
|
215
|
+
- The true knee (stifle) is located high up at the flank ($Y \approx 0.55\text{m}$) pointing forward.
|
|
216
|
+
- The animal walks on its toes/metatarsals.
|
|
217
|
+
- **Unguligrade** (Equine, Bovine, Deer):
|
|
218
|
+
- Walks on the very tips of third phalanges (hooves).
|
|
219
|
+
- Hock and knee are placed high up for extreme spring-lever mechanics.
|
|
220
|
+
2. **Torso & Spine Balance**:
|
|
221
|
+
- Ribcage barrel is oriented along the **Z-axis** (depth), suspended between the front scapular sling and rear pelvic girdle.
|
|
222
|
+
- Scapula (shoulder blade) glides freely over the ribcage; it is connected to muscles, not a rigid collarbone.
|
|
223
|
+
- Neck emerges from the chest at an upward $30^\circ - 45^\circ$ angle.
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 7. Game-Ready Retopology & Deformation Edge Loops (Hippydrome Rules)
|
|
228
|
+
|
|
229
|
+
High-poly sculpted meshes cannot be animated or rendered in real time. They must be retopologized into clean low/mid-poly cages with deformation loops:
|
|
230
|
+
|
|
231
|
+
1. **Polygon Budgets for Real-Time Engines**:
|
|
232
|
+
- **Mobile / WebGL / Hypercasual**: 2,500 – 6,000 triangles.
|
|
233
|
+
- **Standard Action Game / Indie PC / Console**: 12,000 – 25,000 triangles.
|
|
234
|
+
- **Hero Character / Cinematic Asset**: 30,000 – 60,000 triangles.
|
|
235
|
+
2. **Joint Articulation Loops (3-Loop Rule)**:
|
|
236
|
+
- At every bending joint (elbows, knees, finger phalanges):
|
|
237
|
+
- Place **at least 3 parallel edge loops** across the articulation zone.
|
|
238
|
+
- When the joint bends up to $120^\circ - 140^\circ$, the outer loop stretches, the middle loop holds volume, and the inner loop pinches without collapsing the mesh into a paper-thin wedge.
|
|
239
|
+
3. **Facial Contour Loops**:
|
|
240
|
+
- Concentric circular loop masks around eyes (_orbicularis oculi_) for blinking.
|
|
241
|
+
- Concentric loop rings around mouth (_orbicularis oris_) for speech phonemes.
|
|
242
|
+
- Nasolabial fold loop running from nostril wings down past the mouth corners.
|
|
243
|
+
4. **Poles & Valence Management**:
|
|
244
|
+
- **5-Poles (E-poles)** and **3-Poles (N-poles)** must be kept away from dynamic deformation zones (armpits, knee hollows, eyelid folds).
|
|
245
|
+
- Route poles to rigid, static surface regions (e.g. temple, outer thigh, shoulder plate).
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## 8. Tool Pipeline in Mesh Editor
|
|
250
|
+
|
|
251
|
+
When building or updating figures, combine these built-in tools:
|
|
252
|
+
|
|
253
|
+
1. **Step 1: Choose the Right Organic Base (SDF Clay, Base Mesh, or Clay Sphere)**:
|
|
254
|
+
- **Option A — Smooth Organic SDF Clay (`modeler_create_sdf_mesh`)**:
|
|
255
|
+
- Best for seamless, watertight organic torsos, heads, creatures, muscles, and stylized characters without hard primitive seams.
|
|
256
|
+
- Combine `ellipsoid`, `sphere`, `round_cone` (tapered capsules from `start` to `end` with `radius` and `endRadius`), and `box` (with `rounding`) using `blend: 0.04` to `0.12` and `symmetryX: true`. Use `op: "subtract"` to carve eye sockets or mouth cavities.
|
|
257
|
+
- **Option B — Anatomical Base Mesh (`modeler_spawn_base_mesh`)**:
|
|
258
|
+
- `type: "chibi"` (`style: "organic"`): 3.5-head cartoon blockout in T-Pose with pre-assigned PBR materials.
|
|
259
|
+
- `type: "creature"`: Stylized organic creature / demon base mesh.
|
|
260
|
+
- `type: "humanoid"`: 1.80m Loomis mannequin with joint rings (`pose: "t_pose"`).
|
|
261
|
+
- `type: "quadruped"`: Animal base with digitigrade/unguligrade leg mechanics.
|
|
262
|
+
- `type: "head_bust"`: Head with facial planes, eye cavities, and neck.
|
|
263
|
+
- **Option C — Clay Sphere Sculpting (`type: "sculpt_sphere"` + `modeler_sculpt_mesh`)**:
|
|
264
|
+
- **User Intent Priority**: Whenever the user explicitly asks to sculpt or model from a clay sphere (`sculpt_sphere`), **ALWAYS honor that request!**
|
|
265
|
+
- First spawn `modeler_spawn_base_mesh` with `type: "sculpt_sphere"` (or `modeler_create_sdf_mesh`), then call `modeler_sculpt_mesh` using continuous stroke paths (`from: {x,y,z}`, `to: {x,y,z}`, `steps`, `radius`, `strength`, `symmetryX: true`):
|
|
266
|
+
- `"grab"`: Drag primary silhouettes outward (jawline, chin, nose bridge, brow ridge, ears, horns, neck).
|
|
267
|
+
- `"clay"` / `"inflate"`: Build up cheek mass, lips, brow muscles, and anatomical volumes along surface normals (`invert: true` to carve eye sockets and cavities).
|
|
268
|
+
- `"pinch"`: Sharpen eyelid folds, lip vermilion borders, and nasolabial creases.
|
|
269
|
+
- `"flatten"`: Plane off temple, forehead, and jaw flats.
|
|
270
|
+
- `"smooth"`: Relax transitions and polish the surface.
|
|
271
|
+
|
|
272
|
+
2. **Step 2: Proportional Polygon Budget Rule (Eye vs. Torso)**:
|
|
273
|
+
- **Primary Volumes (50–65% of budget)**: Torso, cranium, pelvis, main body.
|
|
274
|
+
- **Secondary Volumes (25–35% of budget)**: Arms, legs, hands, boots, hair, hats.
|
|
275
|
+
- **Tertiary Details (< 10% of budget)**: Eyeballs, pupils, buttons, buckles, teeth, fingernails.
|
|
276
|
+
- **CRITICAL**: Never give a small tertiary detail (like an eyeball) more triangles than the torso! When adding eyes or buttons via `modeler_create_primitive`, always pass `detailTier: "tertiary"` or `options: { segments: 6 }` (~190 triangles instead of 2,700). Call `modeler_plan_model` first on multi-part characters to verify proportional polygon allocation.
|
|
277
|
+
|
|
278
|
+
3. **Step 3: Box-Modeling & Proportional Edits**:
|
|
279
|
+
- Use `modeler_facet_extrude` to pull out horns, armor plates, tails, or wings.
|
|
280
|
+
- Use `modeler_facet_inset` to recess eye sockets or wound portals.
|
|
281
|
+
- Call `modeler_subd_smooth` with `iterations: 1` or `2` to relax blockout polygons into smooth organic curvature.
|
|
282
|
+
4. **Step 4: Game-Ready Retopology (Decimation, Shrinkwrap, Quad-Cage & Quad-Draw Strips)**:
|
|
283
|
+
- Call `modeler_retopologize_mesh`:
|
|
284
|
+
- **`mode: "decimate"`** (default): Simplifies high-poly geometry to `targetFaces` (e.g. `4000` for WebGL/mobile, `15000` for standard game characters) via Quadric Error Metric decimation.
|
|
285
|
+
- **`mode: "shrinkwrap"`**: Wraps a low-poly mesh (`meshName`) tightly onto a high-poly sculpt (`targetMeshName`) like a stretch film with configurable `surfaceOffset` and tangential `relaxIterations`.
|
|
286
|
+
- **`mode: "quad_cage"`**: Generates a structured quad-ring retopology cage (`rings`, `segments`) around a high-poly sculpt (`meshName` / `targetMeshName`) and shrinkwraps it onto the surface.
|
|
287
|
+
- **`mode: "quad_strip"`**: Draws clean 4-sided quad polygon strips (`stripPoints`, `stripWidth`) directly onto the high-poly surface (`targetMeshName`) with automatic vertex welding (`autoWeld: true`) for animation-ready edge loops.
|
|
288
|
+
5. **Step 5: UV Unwrapping, Texel Density & Baking (`modeler_uv_unwrap` & `modeler_bake_textures`)**:
|
|
289
|
+
- Call `modeler_uv_unwrap` on the low-poly mesh (`seamMode: "sharp_edges"`, `targetTexelDensity: 256`, `packIslands: true`) so all character parts share uniform texture resolution (`px/m`) without overlapping islands.
|
|
290
|
+
- When both a high-poly sculpt and a low-poly retopologized mesh exist, call `modeler_bake_textures` (`lowPolyMeshName`, `highPolyMeshName`, `cageOffset: 0.05`, `bakeNormals: true`, `bakeAO: true`, `applyToMaterial: true`) to project high-poly pores, wrinkles, and armor relief onto the low-poly PBR material.
|
|
291
|
+
6. **Step 6: Skeleton Rigging, Skinning & Weight Painting (`modeler_rig_and_weight`)**:
|
|
292
|
+
- Call `modeler_rig_and_weight` with `action: "auto_rig"`, `template: "humanoid"` (20-bone hierarchy), `"quadruped"` (11-bone hierarchy), or `"spine"` (5-bone chain), and `autoBindSkin: true` to bind normalized 4-bone skin weights (`matricesIndices` & `matricesWeights`) ready for Unreal, Unity, and glTF export.
|
|
293
|
+
- Fine-tune joint deformation zones using `action: "paint_weights"` (`boneName`, `mode: "add" | "subtract" | "smooth" | "replace"`, `strokes`, `symmetryX: true`) and verify deformations with `action: "pose_bone"` (`pitchDeg`, `yawDeg`, `rollDeg`).
|
|
294
|
+
7. **Step 7: PBR Material & Normal Maps**:
|
|
295
|
+
- Call `modeler_create_material` with PBR skin/clay parameters:
|
|
296
|
+
- Skin / Clay: `albedoColor: "#d9b38c"`, `roughness: 0.65`, `metallic: 0.0`.
|
|
297
|
+
- Normal maps: Use `normalMapUrl`, `modeler_bake_textures`, or procedural surface relief with `bumpLevel: 1.2` to retain fine wrinkles and skin pores without polygon overhead.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: image-to-mesh
|
|
3
|
+
name: Image to 3D Mesh Vision Analyzer
|
|
4
|
+
description: Guidance for reconstructing 3D meshes or updating existing 3D models from user-provided reference images or viewport screenshots.
|
|
5
|
+
enabled: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Image to 3D Mesh Vision Skill
|
|
9
|
+
|
|
10
|
+
When a user provides a reference image (concept art, photo, icon, screenshot, or 2D sprite):
|
|
11
|
+
1. **Proportional Decomposition**:
|
|
12
|
+
- Analyze main dimensions (width X, height Y, estimated depth Z).
|
|
13
|
+
- Deconstruct visible object into primary shapes, secondary features, and detail trims.
|
|
14
|
+
2. **Symmetry & Repetition**:
|
|
15
|
+
- Detect rotational symmetry (use `modeler_create_lathe`), mirror symmetry, and radial/linear repetition (`modeler_clone_array`).
|
|
16
|
+
3. **Colors & Materials**:
|
|
17
|
+
- Extract hex colors and surface properties (`roughness`, `metallic`, procedural textures) and apply them to parts.
|
|
18
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: mesh-updater
|
|
3
|
+
name: Mesh Updater & Scene Sculptor (Text/Image to Mesh Update)
|
|
4
|
+
description: Guidance for inspecting, modifying, transforming, carving, extending, recoloring, or restructuring existing meshes in the active 3D scene.
|
|
5
|
+
enabled: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Mesh Updater & Scene Sculptor Skill
|
|
9
|
+
|
|
10
|
+
Use this skill when meshes already exist in the scene and the user wants to adapt, extend, repair, recolor, hollow out, or rebuild an existing model ("Text to Mesh Update" / "Image to Mesh Update").
|
|
11
|
+
|
|
12
|
+
## Rules for Updating Existing Meshes
|
|
13
|
+
1. **Check Scene & Selection**:
|
|
14
|
+
- Inspect active meshes via context or `modeler_get_scene_info` for exact bounding boxes (`min`, `max`, `center`, `size`).
|
|
15
|
+
2. **Accurate Placement relative to existing meshes**:
|
|
16
|
+
- Use the bounding box of existing meshes to accurately position additions (e.g. roof on a house, handle on a cup, wheels on a vehicle, battlements on a tower).
|
|
17
|
+
3. **Modifying Existing Meshes**:
|
|
18
|
+
- **Transform**: Use `modeler_transform_mesh` to move, rotate, scale, rename, snap to ground (`snapToGround: true`), or center pivot (`centerPivot: true`).
|
|
19
|
+
- **Carve / Bore Holes / Fuse & Bevel**: Create a cutter tool mesh and call `modeler_boolean_operation` (`subtract`, `union`, `intersect`, `nonDestructive: true`, `bevelWidth`, `bevelProfile`) with the target mesh as `baseMeshName`.
|
|
20
|
+
- **Retopologize, Shrinkwrap & Quad-Draw**: Use `modeler_retopologize_mesh` (`mode: "decimate" | "shrinkwrap" | "quad_cage" | "quad_strip"`) to simplify dense meshes, wrap low-poly meshes onto high-poly targets, or draw quad-flow strips.
|
|
21
|
+
- **UV Unwrap, Texel Density & Island Packing**: Use `modeler_uv_unwrap` to mark smart seams, unfold UV charts, normalize Texel Density (`px/m`), and pack islands cleanly into `[0, 1]` UV space.
|
|
22
|
+
- **High-to-Low-Poly Baking**: Use `modeler_bake_textures` to project high-poly surface detail onto low-poly Tangent-Space Normal and Ambient Occlusion maps using a smooth Projection Cage.
|
|
23
|
+
- **Rigging, Skinning & Weight Painting**: Use `modeler_rig_and_weight` (`action: "auto_rig" | "paint_weights" | "pose_bone" | "reset_pose"`) to generate a `humanoid`, `quadruped`, or `spine` skeleton, bind normalized 4-bone skin weights, paint influence zones, and test joint bending.
|
|
24
|
+
- **Change Material & Texture**: Use `modeler_generate_texture` (`prompt`, `useAI: true`, `applyToMesh`, `uvScale`) to synthesize AI Albedo and Normal maps via external AI image engines or procedural synthesis, or `modeler_create_material` / `modeler_apply_material`.
|
|
25
|
+
- **Patterns & Repetition**: Use `modeler_clone_array` (`linear` or `radial`) to repeat parts along an axis or in a circle (pillars, gear teeth, fence posts, stairs).
|
|
26
|
+
- **Separate / Merge**: Use `modeler_separate_mesh` to break loose parts into separate meshes or `modeler_merge_meshes` to fuse parts.
|
|
27
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: neural-3d-generator
|
|
3
|
+
name: Neural 3D Generator Delegation (TRELLIS 2, Hunyuan3D & Hi3D)
|
|
4
|
+
description: Guidance for delegating full 3D assets or complex organic subtasks to external Neural 3D Generators (TRELLIS 2, Hunyuan3D, Hi3D) via oMLX, local endpoints, or cloud APIs.
|
|
5
|
+
enabled: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Neural 3D Generator Delegation Skill (TRELLIS 2 / Hunyuan3D / Hi3D)
|
|
9
|
+
|
|
10
|
+
Use this skill whenever one or more Neural 3D Generators (`trellis`, `hunyuan3d`, `hi3d`) are enabled in the scene configuration and the user requests complex organic 3D models, statues, creatures, characters, detailed props, 3D-printable high-resolution assets, or Image-to-3D reconstructions.
|
|
11
|
+
|
|
12
|
+
## 1. Backend Specializations & Selection (`backend` in `modeler_generate_neural_mesh`)
|
|
13
|
+
|
|
14
|
+
When multiple Neural 3D Generators are enabled, select the optimal `backend` for each task or subtask:
|
|
15
|
+
|
|
16
|
+
1. **`"trellis"` (TRELLIS 2 / TRELLIS)**:
|
|
17
|
+
- **Strengths**: Outstanding open-source image-to-3D and text-to-3D fidelity, clean Structured 3D Latent (SLAT) mesh topology, and sharp PBR material adherence.
|
|
18
|
+
- **When to choose**:
|
|
19
|
+
- Whenever a reference image is attached (`imageIndex: 0`).
|
|
20
|
+
- Detailed hero props, complex creatures, statues, and assets requiring clean mesh structure and textures.
|
|
21
|
+
2. **`"hunyuan3d"` (Hunyuan3D 2.0 / 2.1)**:
|
|
22
|
+
- **Strengths**: Fast open-source shape and PBR texture synthesis (`Hunyuan3D-DiT` + `Hunyuan3D-Paint`).
|
|
23
|
+
- **When to choose**:
|
|
24
|
+
- Rapid generation of textured game objects, stylized or realistic characters, vehicles, weapons, and everyday props from text or image prompts.
|
|
25
|
+
3. **`"hi3d"` (Hi3D V1.0 to V3.0)**:
|
|
26
|
+
- **Strengths**: High-resolution 2K watertight geometry optimized for fine surface relief and direct 3D printing.
|
|
27
|
+
- **When to choose**:
|
|
28
|
+
- Whenever the user mentions **3D printing**, **STL**, **watertight mesh**, **high-poly sculpt base**, **miniature**, or **2K geometry**.
|
|
29
|
+
- Pass `backend: "hi3d"`, `highResPrint: true`, and `generateTextures: false` (do not decimate print meshes unless requested).
|
|
30
|
+
4. **`"auto"`**:
|
|
31
|
+
- Automatically selects the best enabled provider based on whether an image is attached, whether `highResPrint` is set, or whether textures are requested.
|
|
32
|
+
|
|
33
|
+
## 2. Full Task vs. Hybrid Subtask Delegation
|
|
34
|
+
|
|
35
|
+
1. **Full Task Delegation**:
|
|
36
|
+
- If the user asks for a single complex organic object (e.g., *"Generate a roaring dragon statue"*, *"Create a 3D model from this reference photo"*, *"Build a 3D-printable miniature bust"*), call `modeler_generate_neural_mesh` directly.
|
|
37
|
+
2. **Hybrid Subtask Delegation (Combine Procedural + Neural 3D)**:
|
|
38
|
+
- If the user asks for an architectural or mechanical assembly that includes organic hero elements (e.g., *"Build a classical temple courtyard with a golden griffin statue on a central pedestal"*, *"Create a dungeon throne room with a carved dragon skull above the arch"*):
|
|
39
|
+
- **Build structural/architectural parts procedurally** using `modeler_create_wall`, `modeler_create_column`, `modeler_create_arch`, `modeler_create_stairs`, `modeler_create_roof`, and `modeler_create_rounded_box` (exact dimensions, crisp bevels, low polygon count).
|
|
40
|
+
- **Delegate ONLY the complex organic hero subtask(s)** to `modeler_generate_neural_mesh`.
|
|
41
|
+
3. **Exact Grounding & Placement**:
|
|
42
|
+
- `modeler_generate_neural_mesh` automatically normalizes the imported mesh to `targetHeight` (in meters, default `1.5`) and aligns its lowest bounding-box point to **`Y = 0`** before applying `position`.
|
|
43
|
+
- Therefore, to place a generated statue (`targetHeight: 1.4`) on top of a procedural pedestal whose top surface is at `Y = 0.8`, simply pass `position: { x: 0, y: 0.8, z: 0 }`.
|
|
44
|
+
|
|
45
|
+
## 3. Prompting & Post-Processing Best Practices
|
|
46
|
+
|
|
47
|
+
- **Isolated Object Prompts**: When calling `modeler_generate_neural_mesh`, write the `prompt` for a single isolated object in a neutral, well-lit, front-facing pose without background clutter (e.g., `"A single weathered stone gargoyle statue crouching with folded wings, isolated object, neutral front-facing pose"`).
|
|
48
|
+
- **Polygon Budget & Retopology**:
|
|
49
|
+
- For real-time game assets, pass `targetTriangles` (e.g., `4000` to `15000`) to automatically decimate the neural mesh via Quadric Error Metrics, or call `modeler_retopologize_mesh` afterwards.
|
|
50
|
+
- For 3D printing (`highResPrint: true` / `backend: "hi3d"`), omit `targetTriangles` so the full 2K high-resolution geometry is preserved.
|
|
51
|
+
- **Constructive Edits on Neural Meshes**:
|
|
52
|
+
- Once imported, the neural mesh is a standard Babylon.js `Mesh`. You can bore mounting holes or slice flat 3D-print bases using `modeler_boolean_operation`, refine proportions with `modeler_sculpt_mesh`, or assign custom PBR materials with `modeler_create_material`.
|
|
53
|
+
|