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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UVUnwrapEditorTool.js","sourceRoot":"","sources":["../../../../src/tools/editor/UVUnwrapEditorTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;GAIG;AACH,MAAM,OAAO,kBAAmB,SAAQ,kBAAkB;IACxC,IAAI,GAAG,WAAW,CAAC;IACnB,QAAQ,GAAG,kBAAkB,CAAC;IAC9B,eAAe,GAAG,mBAAmB,CAAC;IACtC,MAAM,GAAG,WAAW,CAAC;IACrB,SAAS,GAAG,2BAA2B,CAAC;IACxC,IAAI,GAAG,KAAK,CAAC;IACb,KAAK,GAAG,EAAE,CAAC;IACX,WAAW,GAAG,KAAK,CAAC;IACpB,iBAAiB,GAAG,IAAI,CAAC;IACzB,WAAW,GACzB,8GAA8G,CAAC;IAEjG,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsB5B,CAAC,IAAI,EAAE,CAAC;IAEA,QAAQ,CAAC,GAAQ;QACtB,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,CAAC;IACtD,CAAC;IAEM,UAAU,CAAC,GAAQ;QACxB,GAAG,CAAC,OAAO,EAAE,kBAAkB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;QACjD,GAAG,CAAC,uBAAuB,EAAE,EAAE,CAAC;QAChC,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC;IAC3B,CAAC;IAEM,YAAY,CAAC,GAAQ;QAC1B,GAAG,CAAC,OAAO,EAAE,kBAAkB,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;QAClD,GAAG,CAAC,uBAAuB,EAAE,EAAE,CAAC;QAChC,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,GAAQ;QACpB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACrB,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC;IAC3B,CAAC;IAEM,OAAO,CAAC,GAAQ;QACrB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,UAAU,CAAC,GAAQ;QACxB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,UAAU,CAAC,GAAQ;QACxB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAEM,UAAU,CAAC,GAAQ;QACxB,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Voxel Painter Tool.
|
|
4
|
+
* 3D voxel painting and block placement on grid surfaces with textures and atlas palettes.
|
|
5
|
+
*/
|
|
6
|
+
export declare class VoxelPainterEditorTool extends AbstractEditorTool {
|
|
7
|
+
readonly name = "voxel_painter";
|
|
8
|
+
readonly dialogId = "dialog-voxel-painter";
|
|
9
|
+
readonly triggerButtonId = "btnToggleVoxelPainter";
|
|
10
|
+
readonly menuId = "menuTools";
|
|
11
|
+
readonly menuLabel = "Voxel Painter";
|
|
12
|
+
readonly icon = "brush";
|
|
13
|
+
readonly order = 6;
|
|
14
|
+
readonly isExclusive3DTool = true;
|
|
15
|
+
readonly defaultOpen = false;
|
|
16
|
+
readonly description = "3D voxel painting and block placement on grid surfaces with textures and atlas palettes.";
|
|
17
|
+
readonly helpText: string;
|
|
18
|
+
isActive(app: any): boolean;
|
|
19
|
+
onActivate(app: any): void;
|
|
20
|
+
onDeactivate(app: any): void;
|
|
21
|
+
onOpen(app: any): void;
|
|
22
|
+
onClose(app: any): void;
|
|
23
|
+
onMinimize(app: any): void;
|
|
24
|
+
onMaximize(app: any): void;
|
|
25
|
+
onUpdateUI(app: any): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=VoxelPainterEditorTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoxelPainterEditorTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/editor/VoxelPainterEditorTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,kBAAkB;IAC5D,SAAgB,IAAI,mBAAmB;IACvC,SAAgB,QAAQ,0BAA0B;IAClD,SAAgB,eAAe,2BAA2B;IAC1D,SAAgB,MAAM,eAAe;IACrC,SAAgB,SAAS,mBAAmB;IAC5C,SAAgB,IAAI,WAAW;IAC/B,SAAgB,KAAK,KAAK;IAC1B,SAAgB,iBAAiB,QAAQ;IACzC,SAAgB,WAAW,SAAS;IACpC,SAAgB,WAAW,8FACkE;IAE7F,SAAgB,QAAQ,SAkBjB;IAEA,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;IAI3B,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAK1B,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAK5B,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAQtB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAIvB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAI1B,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAI1B,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;CAKlC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Voxel Painter Tool.
|
|
4
|
+
* 3D voxel painting and block placement on grid surfaces with textures and atlas palettes.
|
|
5
|
+
*/
|
|
6
|
+
export class VoxelPainterEditorTool extends AbstractEditorTool {
|
|
7
|
+
name = 'voxel_painter';
|
|
8
|
+
dialogId = 'dialog-voxel-painter';
|
|
9
|
+
triggerButtonId = 'btnToggleVoxelPainter';
|
|
10
|
+
menuId = 'menuTools';
|
|
11
|
+
menuLabel = 'Voxel Painter';
|
|
12
|
+
icon = 'brush';
|
|
13
|
+
order = 6;
|
|
14
|
+
isExclusive3DTool = true;
|
|
15
|
+
defaultOpen = false;
|
|
16
|
+
description = '3D voxel painting and block placement on grid surfaces with textures and atlas palettes.';
|
|
17
|
+
helpText = `
|
|
18
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
19
|
+
<p>The <strong>Voxel Painter</strong> turns your 3D canvas into a block-building and voxel painting studio. Place, paint, and sculpt textured voxel blocks directly onto the ground or existing 3D surfaces.</p>
|
|
20
|
+
|
|
21
|
+
<h4><i class="app-icon" data-lucide="mouse-pointer"></i> Viewport Controls</h4>
|
|
22
|
+
<ul>
|
|
23
|
+
<li><strong>Left Click:</strong> Place a new voxel block at the cursor raycast hit position.</li>
|
|
24
|
+
<li><strong>Shift + Left Click:</strong> Erase / remove an existing voxel block.</li>
|
|
25
|
+
<li><strong>Right Click + Drag:</strong> Orbit the 3D scene camera freely without placing or modifying blocks.</li>
|
|
26
|
+
</ul>
|
|
27
|
+
|
|
28
|
+
<h4><i class="app-icon" data-lucide="palette"></i> Materials & Palettes</h4>
|
|
29
|
+
<ul>
|
|
30
|
+
<li><strong>Color Swatches:</strong> Choose from vibrant preset color palettes or pick custom hex colors.</li>
|
|
31
|
+
<li><strong>Texture Atlas:</strong> Load Minecraft or custom texture atlas image grids to map different textures to cube faces.</li>
|
|
32
|
+
<li><strong>Individual Textures:</strong> Import custom image files (.png, .jpg) directly onto painted voxel surfaces.</li>
|
|
33
|
+
<li><strong>Bake Voxel Mesh:</strong> Combines all placed blocks into a single high-performance, greedy-meshed 3D scene solid ready for export.</li>
|
|
34
|
+
</ul>
|
|
35
|
+
`.trim();
|
|
36
|
+
isActive(app) {
|
|
37
|
+
return !!app?.service?.voxelPainter?.isActive;
|
|
38
|
+
}
|
|
39
|
+
onActivate(app) {
|
|
40
|
+
app.service?.voxelPainter?.setActive(true);
|
|
41
|
+
app.updatePanelButtonStates?.();
|
|
42
|
+
}
|
|
43
|
+
onDeactivate(app) {
|
|
44
|
+
app.service?.voxelPainter?.setActive(false);
|
|
45
|
+
app.updatePanelButtonStates?.();
|
|
46
|
+
}
|
|
47
|
+
onOpen(app) {
|
|
48
|
+
this.onActivate(app);
|
|
49
|
+
app.renderVoxelPalette?.();
|
|
50
|
+
app.renderVoxelAtlasOptions?.();
|
|
51
|
+
app.renderVoxelTextureGallery?.();
|
|
52
|
+
app.showToast('Voxel Painter active. Left click to paint, right click to orbit camera.', 'info');
|
|
53
|
+
}
|
|
54
|
+
onClose(app) {
|
|
55
|
+
this.onDeactivate(app);
|
|
56
|
+
}
|
|
57
|
+
onMinimize(app) {
|
|
58
|
+
this.onDeactivate(app);
|
|
59
|
+
}
|
|
60
|
+
onMaximize(app) {
|
|
61
|
+
this.onActivate(app);
|
|
62
|
+
}
|
|
63
|
+
onUpdateUI(app) {
|
|
64
|
+
app.renderVoxelPalette?.();
|
|
65
|
+
app.renderVoxelAtlasOptions?.();
|
|
66
|
+
app.renderVoxelTextureGallery?.();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=VoxelPainterEditorTool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VoxelPainterEditorTool.js","sourceRoot":"","sources":["../../../../src/tools/editor/VoxelPainterEditorTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AAC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C,GAAQ;QACxB,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAEM,UAAU,CAAC,GAAQ;QACxB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAEM,UAAU,CAAC,GAAQ;QACxB,GAAG,CAAC,kBAAkB,EAAE,EAAE,CAAC;QAC3B,GAAG,CAAC,uBAAuB,EAAE,EAAE,CAAC;QAChC,GAAG,CAAC,yBAAyB,EAAE,EAAE,CAAC;IACpC,CAAC;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Quick Prompts Definition and Catalog.
|
|
3
|
+
* Centralized registry of modeling prompt presets with technique tags,
|
|
4
|
+
* detailed modeling instructions, and reference image support.
|
|
5
|
+
*/
|
|
6
|
+
export interface AIQuickPrompt {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
technique: string;
|
|
10
|
+
category?: string;
|
|
11
|
+
tag: string;
|
|
12
|
+
description: string;
|
|
13
|
+
prompt: string;
|
|
14
|
+
image?: string;
|
|
15
|
+
images?: string[];
|
|
16
|
+
}
|
|
17
|
+
export declare const AI_QUICK_PROMPTS: AIQuickPrompt[];
|
|
18
|
+
export declare function getAllQuickPrompts(): AIQuickPrompt[];
|
|
19
|
+
export declare function getQuickPromptById(id: string): AIQuickPrompt | undefined;
|
|
20
|
+
export declare function addQuickPrompt(prompt: AIQuickPrompt): void;
|
|
21
|
+
/**
|
|
22
|
+
* Normalizes prompt image paths so they resolve consistently whether authored as:
|
|
23
|
+
* - 'promptImages/my_image.png'
|
|
24
|
+
* - 'src/promptImages/my_image.png'
|
|
25
|
+
* - './promptImages/my_image.png'
|
|
26
|
+
* - 'my_image.png' (automatically mapped to promptImages/...)
|
|
27
|
+
* - 'screenshots/my_image.jpg'
|
|
28
|
+
* - full http(s):// or data: URLs
|
|
29
|
+
*/
|
|
30
|
+
export declare function normalizePromptImageUrl(url: string | undefined): string | undefined;
|
|
31
|
+
//# sourceMappingURL=aiQuickPrompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiQuickPrompts.d.ts","sourceRoot":"","sources":["../../../../src/tools/editor/aiQuickPrompts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAqM3C,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,aAAa,EAAE,CAEpD;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAExE;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAO1D;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CA4BnF"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Quick Prompts Definition and Catalog.
|
|
3
|
+
* Centralized registry of modeling prompt presets with technique tags,
|
|
4
|
+
* detailed modeling instructions, and reference image support.
|
|
5
|
+
*/
|
|
6
|
+
export const AI_QUICK_PROMPTS = [
|
|
7
|
+
{
|
|
8
|
+
id: 'sdf_dragon',
|
|
9
|
+
title: 'Dragon Whelp',
|
|
10
|
+
technique: 'sdf',
|
|
11
|
+
tag: 'SDF',
|
|
12
|
+
category: 'Smooth Sculpting & SDF',
|
|
13
|
+
description: 'Smooth clay union of primitives & surface nets',
|
|
14
|
+
prompt: "Plan with modeler_plan_model, then use modeler_create_sdf_mesh (resolution: 56, taubinIterations: 6) to sculpt a smooth, seamless baby dragon sitting on its hind legs. Blend ellipsoid and tapered capsule primitives with smooth union (op: 'union', k: 0.14) and mirrorX: true for the torso, belly, curved neck, snout, lower jaw, haunches, forelegs, bat-like wing arms, curved horns, and a curling tail. Carve shallow eye sockets with op: 'subtract', then add two small glossy eye spheres with modeler_create_primitive (detailTier: 'tertiary', diameter: 0.07) so the eyes use far fewer polygons than the body.",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'clay_gargoyle',
|
|
18
|
+
title: 'Sphere Bust',
|
|
19
|
+
technique: 'clay_sphere',
|
|
20
|
+
tag: 'Clay',
|
|
21
|
+
category: 'Organic & Sculpting',
|
|
22
|
+
description: 'Sculpting from a digital clay sphere with directional brushes',
|
|
23
|
+
prompt: "Spawn a digital clay sphere using modeler_spawn_base_mesh (type: 'sculpt_sphere', name: 'Clay_Gargoyle_Bust'). Then sculpt an expressive stylized gargoyle head bust directly from the clay sphere using modeler_sculpt_mesh with symmetryX: true and subdivideIfCoarse: true: use directional 'grab' strokes (from -> to) to pull out the jaw, chin, cheekbones, pointed ears, and swept-back horns; use 'clay' and 'inflate' strokes to build the heavy brow ridge, nose bridge, and muzzle; use 'crease' strokes to carve the eye sockets and grinning mouth; and finish with 'smooth' and a weathered stone PBR material.",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'temple_portico',
|
|
27
|
+
title: 'Temple Portico',
|
|
28
|
+
technique: 'architecture',
|
|
29
|
+
tag: 'Arch',
|
|
30
|
+
category: 'Classical Architecture',
|
|
31
|
+
description: 'Stepped podium, fluted Ionic columns, plinth & gable roof',
|
|
32
|
+
prompt: "Plan with modeler_plan_model, then build a classical Greco-Roman temple portico using parametric architecture tools: 1) a stepped stone podium and front staircase with modeler_create_stairs (type: 'straight', width: 3.2, height: 0.6, depth: 1.2, steps: 6), 2) four fluted Ionic columns along the front porch using modeler_create_column (style: 'ionic', height: 3.0, radius: 0.22, flutes: 20, entasis: 0.04), 3) a sanctuary wall behind the columns using modeler_create_wall with an arched central doorway and two arched side windows with frames, plinth, and cornice, 4) a perimeter frieze with modeler_create_molding, 5) a pitched terracotta roof with overhang using modeler_create_roof (style: 'gable'), and 6) call modeler_generate_texture with useAI: true to generate and apply authentic PBR textures: fluted white marble on the columns and stairs, ancient ashlar limestone on the sanctuary wall and frieze, and weathered terracotta clay tiles on the roof.",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'gothic_courtyard',
|
|
36
|
+
title: 'Arch & Spiral Stairs',
|
|
37
|
+
technique: 'gothic',
|
|
38
|
+
tag: 'Gothic',
|
|
39
|
+
category: 'Medieval & Gothic',
|
|
40
|
+
description: 'Pointed stone archways, lancet window wall & spiral stairs',
|
|
41
|
+
prompt: "Build a medieval Gothic courtyard ruin corner using parametric architecture tools: create two pointed stone archways with modeler_create_arch (style: 'pointed', span: 2.2, height: 3.4, keystone: true, impost: true), connect them to a stone wall using modeler_create_wall featuring two pointed Gothic lancet window openings (shape: 'pointed', hasFrame: true, hasSill: true) and a ground-level arched doorway, crown the wall with a stepped cornice via modeler_create_molding, and place a stone spiral staircase alongside it using modeler_create_stairs (type: 'spiral', height: 3.4, outerRadius: 1.3, turns: 1.25, centralColumn: true, railing: 'both').",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'treasure_chest',
|
|
45
|
+
title: 'Treasure Chest',
|
|
46
|
+
technique: 'bevel',
|
|
47
|
+
tag: 'Bevel',
|
|
48
|
+
category: 'Hard-Surface & Props',
|
|
49
|
+
description: 'Ornate oak & iron chest with rounded boxes & sweep handles',
|
|
50
|
+
prompt: "Plan with modeler_plan_model, then build an ornate medieval oak and forged-iron treasure chest with smooth beveled edges: use modeler_create_rounded_box (bevelRadius: 0.04, bevelSegments: 3) for the wooden chest body, beveled iron corner brackets, and reinforcement straps. Add a vaulted barrel lid, a front brass lock plate with keyhole, and two curved side carry handles using modeler_create_tube. Keep small rivets and hinges in detailTier: 'tertiary' so they stay lightweight, and apply weathered oak and brushed gold PBR materials.",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 'alchemist_flask',
|
|
54
|
+
title: 'Alchemist Flask',
|
|
55
|
+
technique: 'lathe',
|
|
56
|
+
tag: 'Lathe',
|
|
57
|
+
category: 'Rotational & Sweep',
|
|
58
|
+
description: 'Profile-lathed glass body, emissive mana core & filigree handles',
|
|
59
|
+
prompt: "Build an ornate alchemist potion vessel using rotational and sweep modeling: 1) use modeler_create_lathe with a 12-point silhouette profile to turn a flared pedestal foot, a ribbed bulbous glass body, a slender collared neck, and a flared pouring lip, 2) create a glowing emissive mana core inside the bulb, 3) add a tapered cork stopper on top, and 4) sweep two S-curved golden filigree handles along the sides using modeler_create_tube.",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'stylized_knight',
|
|
63
|
+
title: 'Stylized Hero Figurine',
|
|
64
|
+
technique: 'figure',
|
|
65
|
+
tag: 'Figure',
|
|
66
|
+
category: 'Character & Retopo',
|
|
67
|
+
description: 'Proportional chibi base mesh, sculpted armor & retopology',
|
|
68
|
+
prompt: "Spawn an organic stylized character base mesh using modeler_spawn_base_mesh (type: 'chibi', pose: 'a_pose', style: 'organic', coloredMaterials: true). Refine the torso and facial planes using modeler_sculpt_mesh with symmetryX: true, then equip the character with beveled shoulder pauldrons and a belt buckle using modeler_create_rounded_box, a knight helmet visor, and a cape. Keep small rivets and buckles in detailTier: 'tertiary', and finish with modeler_retopologize_mesh (targetFaces: 12000, symmetryX: true).",
|
|
69
|
+
image: 'promptImages/mario_tpose.png',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'planetary_gear',
|
|
73
|
+
title: 'Planetary Gear',
|
|
74
|
+
technique: 'csg',
|
|
75
|
+
tag: 'CSG',
|
|
76
|
+
category: 'Mechanical & Precision',
|
|
77
|
+
description: 'CSG boolean subtraction, shaft bores & radial gear tooth array',
|
|
78
|
+
prompt: "Build a precision steampunk planetary gear wheel assembly: create the main bronze gear rim, use modeler_csg_boolean (operation: 'subtract') to carve out a central shaft bore and 6 circular weight-reduction holes around the web, distribute 16 beveled gear teeth evenly around the outer perimeter using modeler_clone_array (mode: 'radial', count: 16), and add a central steel hub with small hex bolts (detailTier: 'tertiary').",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'voxel_island',
|
|
82
|
+
title: 'Floating Island',
|
|
83
|
+
technique: 'voxel',
|
|
84
|
+
tag: 'Voxel',
|
|
85
|
+
category: 'Voxel & Terrain',
|
|
86
|
+
description: 'Multi-material voxel grid, torii gate, waterfall & cherry tree',
|
|
87
|
+
prompt: "Use modeler_build_voxel_mesh (voxelSize: 0.2) to construct a multi-material voxel floating island: build tapered dark-stone cliff layers underneath, grassy terraced terrain on top, a traditional red torii gate and stone lantern with a warm emissive light core, a cascading blue voxel waterfall on the front edge, and a cherry blossom tree with pink canopy clusters.",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'mesh_update',
|
|
91
|
+
title: 'Mesh Update',
|
|
92
|
+
technique: 'update',
|
|
93
|
+
tag: 'Edit',
|
|
94
|
+
category: 'Selection & Refinement',
|
|
95
|
+
description: 'Inspect selected mesh, add beveled trim & upgrade materials',
|
|
96
|
+
prompt: "Inspect the currently selected mesh (or active scene): add beveled trim or architectural molding around its primary silhouette using modeler_create_rounded_box or modeler_create_molding, carve recessed surface details with modeler_csg_boolean, and upgrade its PBR materials with procedural surface textures and normal maps.",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'stone_pillar',
|
|
100
|
+
title: 'Ancient Fluted Pillar',
|
|
101
|
+
technique: 'pillar',
|
|
102
|
+
tag: 'Pillar',
|
|
103
|
+
category: 'Classical Architecture',
|
|
104
|
+
description: 'Monumental fluted column with decorative capital and marble PBR',
|
|
105
|
+
prompt: "Build a monumental ancient fluted column using modeler_create_column (style: 'corinthian', height: 4.2, radius: 0.3, flutes: 24, entasis: 0.05). Add a stepped square marble pedestal underneath using modeler_create_primitive (shape: 'box', sizeX: 1.2, sizeY: 0.4, sizeZ: 1.2) with beveled base molding via modeler_create_molding, and top it with an ornate carved stone capital and weathered white marble PBR materials with subtle procedural micro-cracks.",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 'vintage_cinema_chair',
|
|
109
|
+
title: 'Vintage Cinema Chair',
|
|
110
|
+
technique: 'seating',
|
|
111
|
+
tag: 'Seating',
|
|
112
|
+
category: 'Hard-Surface & Props',
|
|
113
|
+
description: 'Folded velvet theater seat, cast-iron frame & cup holder',
|
|
114
|
+
prompt: "Build a vintage cinema auditorium seat: 1) create the folding cushioned seat cushion and curved backrest with padded velvet PBR material using modeler_create_rounded_box, 2) construct ornate black cast-iron armrests and pedestal stanchions with floor mounting bolts, 3) add a wooden armrest top with an integrated round cup holder using modeler_csg_boolean, and 4) attach a small brass seat row number plate on the side.",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: 'cinema_chair',
|
|
118
|
+
title: 'Cinema Theater Chair',
|
|
119
|
+
technique: 'seating',
|
|
120
|
+
tag: 'Seating',
|
|
121
|
+
category: 'Hard-Surface & Props',
|
|
122
|
+
description: 'Leather theater seat with lights and cup holder',
|
|
123
|
+
prompt: "Build a leather cinema seat with lights and cup holder according to the input image",
|
|
124
|
+
image: 'promptImages/cinema_chair.jpg',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'chibi_bathrobe',
|
|
128
|
+
title: 'Hero in Cozy Bathrobe',
|
|
129
|
+
technique: 'chibi_costume',
|
|
130
|
+
tag: 'Costume',
|
|
131
|
+
category: 'Character & Retopo',
|
|
132
|
+
description: 'Stylized character with custom sculpted bathrobe and belt sash',
|
|
133
|
+
prompt: "Spawn a chibi character base mesh using modeler_spawn_base_mesh (type: 'chibi', pose: 'a_pose', style: 'organic'). Sculpt a plush wrap-around bathrobe over the character body using modeler_sculpt_mesh: build a thick draped shawl collar around the neck, add a tied waist belt sash with dangling knot ends, sculpt soft fabric folds around the sleeves, and apply a cozy warm fleece PBR material.",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'scifi_crate_bevel',
|
|
137
|
+
title: 'Beveled Sci-Fi Crate',
|
|
138
|
+
technique: 'bevel_modifier',
|
|
139
|
+
tag: 'Bevel',
|
|
140
|
+
category: 'Hard-Surface & CSG',
|
|
141
|
+
description: 'Non-destructive CSG boolean carving with chamfer & fillet live bevel modifier',
|
|
142
|
+
prompt: "Plan with modeler_plan_model, then build a modular sci-fi armor transport crate using non-destructive CSG booleans and live edge beveling: 1) create the base container using modeler_create_rounded_box, 2) carve recessed panel insets on the top and sides using modeler_boolean_operation (operation: 'subtract', nonDestructive: true, bevelWidth: 0.04, bevelSegments: 2, bevelProfile: 'chamfer') so the carved edges catch specular glints cleanly, 3) add reinforced corner brackets and magnetic latch handles using modeler_create_tube, and 4) finish with a dark gunmetal and safety hazard orange PBR material with metallic: 0.85 and roughness: 0.28.",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: 'shrinkwrap_quad_retopo',
|
|
146
|
+
title: 'Shrinkwrap & Quad Retopo',
|
|
147
|
+
technique: 'retopology',
|
|
148
|
+
tag: 'Retopo',
|
|
149
|
+
category: 'Game Retopology',
|
|
150
|
+
description: 'High-poly sculpt surface projection with Shrinkwrap modifier & quad-flow cage',
|
|
151
|
+
prompt: "Spawn an organic creature sculpt using modeler_spawn_base_mesh (type: 'creature', name: 'Alien_HighPoly'). Then demonstrate clean game retopology: 1) generate a low-poly structured quad-cage around the sculpt using modeler_retopologize_mesh (mode: 'quad_cage', meshName: 'Alien_HighPoly', rings: 20, segments: 20, surfaceOffset: 0.003, relaxIterations: 3), 2) project and wrap the low-poly mesh tightly onto the high-poly sculpt surface via shrinkwrap, and 3) ensure the retopologized mesh maintains clean quad topology suitable for mobile and indie game engines.",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 'smart_uv_texel_density',
|
|
155
|
+
title: 'Smart UV & Texel Density',
|
|
156
|
+
technique: 'uv_unwrap',
|
|
157
|
+
tag: 'UV',
|
|
158
|
+
category: 'UV & Texturing',
|
|
159
|
+
description: 'Sharp seam detection, uniform 256 px/m Texel Density & 2D island bin-packing',
|
|
160
|
+
prompt: "Build an architectural watchtower with stone battlements and a timber entrance door. Once geometry is merged, perform game-ready UV unwrapping: call modeler_uv_unwrap with seamMode: 'sharp_edges' (angleThreshold: 45) to detect logical cut seams, unfold charts with harmonic relaxation, normalize Texel Density to targetTexelDensity: 256 px/m (at textureSize: 1024) across all walls and timber beams, and pack UV islands tightly into [0, 1] space using packIslands: true with paddingPixels: 4 so no texture stretching or inconsistent resolution occurs.",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: 'baking_normal_ao_cage',
|
|
164
|
+
title: 'Normal & AO Texture Baking',
|
|
165
|
+
technique: 'texture_baking',
|
|
166
|
+
tag: 'Bake',
|
|
167
|
+
category: 'Baking & Materials',
|
|
168
|
+
description: 'Raycast projection cage to bake Tangent Normal & AO maps from high-poly',
|
|
169
|
+
prompt: "Create a detailed high-poly carved stone monolith ('Monolith_HighPoly') with deep surface cracks, runes, and ornate bevels using modeler_sculpt_mesh and modeler_boolean_operation. Then build a simple 12-face low-poly bounding monolith ('Monolith_LowPoly'). Bake all high-resolution micro-details onto the low-poly game model using modeler_bake_textures: generate a smooth-normal projection cage with cageOffset: 0.06, raycast Tangent-Space Normal Maps and Ambient Occlusion (AO) with dilationPixels: 4, and assign the resulting 1024x1024 textures directly to the low-poly PBR material.",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
id: 'auto_rig_weight_paint',
|
|
173
|
+
title: 'Humanoid Auto-Rig & Skinning',
|
|
174
|
+
technique: 'rigging',
|
|
175
|
+
tag: 'Rig',
|
|
176
|
+
category: 'Rigging & Animation',
|
|
177
|
+
description: '20-bone Humanoid skeleton auto-rig, 4-bone skin binding & joint pose testing',
|
|
178
|
+
prompt: "Spawn a humanoid character blockout in T-Pose using modeler_spawn_base_mesh (type: 'humanoid', pose: 't_pose', name: 'Hero_Humanoid'). Prepare it for game engine animation: 1) auto-generate a 20-bone humanoid skeleton hierarchy matched to mesh bounding bounds using modeler_rig_and_weight (action: 'auto_rig', template: 'humanoid', autoBindSkin: true), 2) bind normalized 4-bone capsule skin weights summing strictly to 1.0, and 3) test joint articulation by rotating the right forearm and left knee using action: 'pose_bone' (pitchDeg: 45) to verify natural limb flexion without pinch distortion.",
|
|
179
|
+
},
|
|
180
|
+
];
|
|
181
|
+
export function getAllQuickPrompts() {
|
|
182
|
+
return AI_QUICK_PROMPTS;
|
|
183
|
+
}
|
|
184
|
+
export function getQuickPromptById(id) {
|
|
185
|
+
return AI_QUICK_PROMPTS.find((p) => p.id === id);
|
|
186
|
+
}
|
|
187
|
+
export function addQuickPrompt(prompt) {
|
|
188
|
+
const existingIdx = AI_QUICK_PROMPTS.findIndex((p) => p.id === prompt.id);
|
|
189
|
+
if (existingIdx >= 0) {
|
|
190
|
+
AI_QUICK_PROMPTS[existingIdx] = prompt;
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
AI_QUICK_PROMPTS.push(prompt);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Normalizes prompt image paths so they resolve consistently whether authored as:
|
|
198
|
+
* - 'promptImages/my_image.png'
|
|
199
|
+
* - 'src/promptImages/my_image.png'
|
|
200
|
+
* - './promptImages/my_image.png'
|
|
201
|
+
* - 'my_image.png' (automatically mapped to promptImages/...)
|
|
202
|
+
* - 'screenshots/my_image.jpg'
|
|
203
|
+
* - full http(s):// or data: URLs
|
|
204
|
+
*/
|
|
205
|
+
export function normalizePromptImageUrl(url) {
|
|
206
|
+
if (!url)
|
|
207
|
+
return undefined;
|
|
208
|
+
const trimmed = url.trim();
|
|
209
|
+
if (!trimmed)
|
|
210
|
+
return undefined;
|
|
211
|
+
// Preserve absolute URLs, data URIs, blob URIs
|
|
212
|
+
if (trimmed.startsWith('data:') ||
|
|
213
|
+
trimmed.startsWith('http://') ||
|
|
214
|
+
trimmed.startsWith('https://') ||
|
|
215
|
+
trimmed.startsWith('blob:')) {
|
|
216
|
+
return trimmed;
|
|
217
|
+
}
|
|
218
|
+
let clean = trimmed.startsWith('./') ? trimmed.slice(2) : trimmed;
|
|
219
|
+
// Rewrite src/promptImages/ -> promptImages/
|
|
220
|
+
if (clean.startsWith('src/promptImages/')) {
|
|
221
|
+
clean = clean.replace('src/promptImages/', 'promptImages/');
|
|
222
|
+
}
|
|
223
|
+
// If bare filename without any directory slash, default to promptImages/
|
|
224
|
+
if (!clean.includes('/')) {
|
|
225
|
+
clean = 'promptImages/' + clean;
|
|
226
|
+
}
|
|
227
|
+
return clean;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=aiQuickPrompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiQuickPrompts.js","sourceRoot":"","sources":["../../../../src/tools/editor/aiQuickPrompts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAcH,MAAM,CAAC,MAAM,gBAAgB,GAAoB;IAC/C;QACE,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,KAAK;QAChB,GAAG,EAAE,KAAK;QACV,QAAQ,EAAE,wBAAwB;QAClC,WAAW,EAAE,gDAAgD;QAC7D,MAAM,EACJ,gmBAAgmB;KACnmB;IACD;QACE,EAAE,EAAE,eAAe;QACnB,KAAK,EAAE,aAAa;QACpB,SAAS,EAAE,aAAa;QACxB,GAAG,EAAE,MAAM;QACX,QAAQ,EAAE,qBAAqB;QAC/B,WAAW,EAAE,+DAA+D;QAC5E,MAAM,EACJ,+lBAA+lB;KAClmB;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,gBAAgB;QACvB,SAAS,E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Tool } from './AbstractEditorTool';
|
|
3
|
+
import { AIAgentEditorTool } from './AIAgentEditorTool';
|
|
4
|
+
import { AnimationPlayerEditorTool } from './AnimationPlayerEditorTool';
|
|
5
|
+
import { BakingEditorTool } from './BakingEditorTool';
|
|
6
|
+
import { CreatePrimitiveEditorTool } from './CreatePrimitiveEditorTool';
|
|
7
|
+
import { CSGEditorTool } from './CSGEditorTool';
|
|
8
|
+
import { FacetEditorTool } from './FacetEditorTool';
|
|
9
|
+
import { MaterialEditorTool } from './MaterialEditorTool';
|
|
10
|
+
import { MeshPropertiesEditorTool } from './MeshPropertiesEditorTool';
|
|
11
|
+
import { OutlinerEditorTool } from './OutlinerEditorTool';
|
|
12
|
+
import { PathExtrusionEditorTool } from './PathExtrusionEditorTool';
|
|
13
|
+
import { RiggingEditorTool } from './RiggingEditorTool';
|
|
14
|
+
import { SceneEnvironmentEditorTool } from './SceneEnvironmentEditorTool';
|
|
15
|
+
import { TextureOptimizerEditorTool } from './TextureOptimizerEditorTool';
|
|
16
|
+
import { CompressModelEditorTool } from './CompressModelEditorTool';
|
|
17
|
+
import { UVUnwrapEditorTool } from './UVUnwrapEditorTool';
|
|
18
|
+
import { VoxelPainterEditorTool } from './VoxelPainterEditorTool';
|
|
19
|
+
import { SculptEditorTool } from './SculptEditorTool';
|
|
20
|
+
import { AITextureEditorTool } from './AITextureEditorTool';
|
|
21
|
+
import { TextMeshEditorTool } from './TextMeshEditorTool';
|
|
22
|
+
import { DecalEditorTool } from './DecalEditorTool';
|
|
23
|
+
import { TOOL_VIEWS, getToolViewTemplate } from './toolViews';
|
|
24
|
+
export { AbstractEditorTool, AIAgentEditorTool, AnimationPlayerEditorTool, BakingEditorTool, CreatePrimitiveEditorTool, CSGEditorTool, FacetEditorTool, MaterialEditorTool, MeshPropertiesEditorTool, OutlinerEditorTool, PathExtrusionEditorTool, RiggingEditorTool, SceneEnvironmentEditorTool, TextureOptimizerEditorTool, CompressModelEditorTool, UVUnwrapEditorTool, VoxelPainterEditorTool, SculptEditorTool, AITextureEditorTool, TextMeshEditorTool, DecalEditorTool, TOOL_VIEWS, getToolViewTemplate, };
|
|
25
|
+
/**
|
|
26
|
+
* Creates instances of all decentralized built-in editor tool classes.
|
|
27
|
+
*/
|
|
28
|
+
export declare function createBuiltinEditorTools(): ToolInterface[];
|
|
29
|
+
/**
|
|
30
|
+
* Backwards compatibility alias for `createBuiltinEditorTools`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const getBuiltinEditorTools: typeof createBuiltinEditorTools;
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,mBAAmB,GACpB,CAAC;AAEF;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,aAAa,EAAE,CAuB1D;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,iCAA2B,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
import { AIAgentEditorTool } from './AIAgentEditorTool';
|
|
3
|
+
import { AnimationPlayerEditorTool } from './AnimationPlayerEditorTool';
|
|
4
|
+
import { BakingEditorTool } from './BakingEditorTool';
|
|
5
|
+
import { CreatePrimitiveEditorTool } from './CreatePrimitiveEditorTool';
|
|
6
|
+
import { CSGEditorTool } from './CSGEditorTool';
|
|
7
|
+
import { FacetEditorTool } from './FacetEditorTool';
|
|
8
|
+
import { MaterialEditorTool } from './MaterialEditorTool';
|
|
9
|
+
import { MeshPropertiesEditorTool } from './MeshPropertiesEditorTool';
|
|
10
|
+
import { OutlinerEditorTool } from './OutlinerEditorTool';
|
|
11
|
+
import { PathExtrusionEditorTool } from './PathExtrusionEditorTool';
|
|
12
|
+
import { RiggingEditorTool } from './RiggingEditorTool';
|
|
13
|
+
import { SceneEnvironmentEditorTool } from './SceneEnvironmentEditorTool';
|
|
14
|
+
import { TextureOptimizerEditorTool } from './TextureOptimizerEditorTool';
|
|
15
|
+
import { CompressModelEditorTool } from './CompressModelEditorTool';
|
|
16
|
+
import { UVUnwrapEditorTool } from './UVUnwrapEditorTool';
|
|
17
|
+
import { VoxelPainterEditorTool } from './VoxelPainterEditorTool';
|
|
18
|
+
import { SculptEditorTool } from './SculptEditorTool';
|
|
19
|
+
import { AITextureEditorTool } from './AITextureEditorTool';
|
|
20
|
+
import { TextMeshEditorTool } from './TextMeshEditorTool';
|
|
21
|
+
import { DecalEditorTool } from './DecalEditorTool';
|
|
22
|
+
import { TOOL_VIEWS, getToolViewTemplate } from './toolViews';
|
|
23
|
+
export { AbstractEditorTool, AIAgentEditorTool, AnimationPlayerEditorTool, BakingEditorTool, CreatePrimitiveEditorTool, CSGEditorTool, FacetEditorTool, MaterialEditorTool, MeshPropertiesEditorTool, OutlinerEditorTool, PathExtrusionEditorTool, RiggingEditorTool, SceneEnvironmentEditorTool, TextureOptimizerEditorTool, CompressModelEditorTool, UVUnwrapEditorTool, VoxelPainterEditorTool, SculptEditorTool, AITextureEditorTool, TextMeshEditorTool, DecalEditorTool, TOOL_VIEWS, getToolViewTemplate, };
|
|
24
|
+
/**
|
|
25
|
+
* Creates instances of all decentralized built-in editor tool classes.
|
|
26
|
+
*/
|
|
27
|
+
export function createBuiltinEditorTools() {
|
|
28
|
+
return [
|
|
29
|
+
new OutlinerEditorTool(),
|
|
30
|
+
new CreatePrimitiveEditorTool(),
|
|
31
|
+
new CSGEditorTool(),
|
|
32
|
+
new FacetEditorTool(),
|
|
33
|
+
new SculptEditorTool(),
|
|
34
|
+
new VoxelPainterEditorTool(),
|
|
35
|
+
new PathExtrusionEditorTool(),
|
|
36
|
+
new AIAgentEditorTool(),
|
|
37
|
+
new MeshPropertiesEditorTool(),
|
|
38
|
+
new MaterialEditorTool(),
|
|
39
|
+
new UVUnwrapEditorTool(),
|
|
40
|
+
new BakingEditorTool(),
|
|
41
|
+
new TextureOptimizerEditorTool(),
|
|
42
|
+
new CompressModelEditorTool(),
|
|
43
|
+
new SceneEnvironmentEditorTool(),
|
|
44
|
+
new AnimationPlayerEditorTool(),
|
|
45
|
+
new RiggingEditorTool(),
|
|
46
|
+
new AITextureEditorTool(),
|
|
47
|
+
new TextMeshEditorTool(),
|
|
48
|
+
new DecalEditorTool(),
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Backwards compatibility alias for `createBuiltinEditorTools`.
|
|
53
|
+
*/
|
|
54
|
+
export const getBuiltinEditorTools = createBuiltinEditorTools;
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/editor/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;A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,IAAI,eAAe,EAAE;QACrB,IAAI,gBAAgB,EAAE;QACtB,IAAI,sBAAsB,EAAE;QAC5B,IAAI,uBAAuB,EAAE;QAC7B,IAAI,iBAAiB,EAAE;QACvB,IAAI,wBAAwB,EAAE;QAC9B,IAAI,kBAAkB,EAAE;QACxB,IAAI,kBAAkB,EAAE;QACxB,IAAI,gBAAgB,EAAE;QACtB,IAAI,0BAA0B,EAAE;QAChC,IAAI,uBAAuB,EAAE;QAC7B,IAAI,0BAA0B,EAAE;QAChC,IAAI,yBAAyB,EAAE;QAC/B,IAAI,iBAAiB,EAAE;QACvB,IAAI,mBAAmB,EAAE;QACzB,IAAI,kBAAkB,EAAE;QACxB,IAAI,eAAe,EAAE;KACtB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated tool view HTML templates.
|
|
3
|
+
* Generated from src/tools/editor/*.ejs view templates.
|
|
4
|
+
* Do not edit this file directly; edit the corresponding .ejs files or run 'node scripts/sync-templates.js'.
|
|
5
|
+
*/
|
|
6
|
+
export declare const TOOL_VIEWS: Record<string, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves the compiled HTML view template for a specific tool class or dialog ID.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getToolViewTemplate(identifier: string): string;
|
|
11
|
+
//# sourceMappingURL=toolViews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolViews.d.ts","sourceRoot":"","sources":["../../../../src/tools/editor/toolViews.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyC7C,CAAC;AAEF;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE9D"}
|