mesheditor 0.0.0-stage → 1.0.3
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 +106 -0
- package/dist-lib/esm/AIAgentService.js +1471 -0
- package/dist-lib/esm/MeshEditorApp.d.ts +412 -0
- package/dist-lib/esm/MeshEditorApp.js +9092 -0
- package/dist-lib/esm/MeshEditorService.d.ts +459 -0
- package/dist-lib/esm/MeshEditorService.js +7083 -0
- package/dist-lib/esm/Neural3DGeneratorService.d.ts +88 -0
- package/dist-lib/esm/Neural3DGeneratorService.js +1397 -0
- package/dist-lib/esm/adapters/BrowserPlatformAdapter.d.ts +16 -0
- package/dist-lib/esm/adapters/BrowserPlatformAdapter.js +25 -0
- package/dist-lib/esm/adapters/ElectronPlatformAdapter.d.ts +32 -0
- package/dist-lib/esm/adapters/ElectronPlatformAdapter.js +336 -0
- package/dist-lib/esm/adapters/HostAppAdapter.d.ts +54 -0
- package/dist-lib/esm/adapters/HostAppAdapter.js +75 -0
- package/dist-lib/esm/adapters/PlatformAdapter.d.ts +98 -0
- package/dist-lib/esm/adapters/PlatformAdapter.js +1 -0
- package/dist-lib/esm/adapters/index.d.ts +13 -0
- package/dist-lib/esm/adapters/index.js +15 -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 +84 -0
- package/dist-lib/esm/baking/TextureBaker.js +709 -0
- package/dist-lib/esm/builtInSkills.d.ts +19 -0
- package/dist-lib/esm/builtInSkills.js +186 -0
- package/dist-lib/esm/compression/ModelCompressor.d.ts +87 -0
- package/dist-lib/esm/compression/ModelCompressor.js +553 -0
- package/dist-lib/esm/decals/DecalController.d.ts +147 -0
- package/dist-lib/esm/decals/DecalController.js +1031 -0
- package/dist-lib/esm/decals/decalAssetUrls.d.ts +1 -0
- package/dist-lib/esm/decals/decalAssetUrls.js +16 -0
- package/dist-lib/esm/geometry/architecture.d.ts +114 -0
- package/dist-lib/esm/geometry/architecture.js +832 -0
- package/dist-lib/esm/geometry/bevelModifier.d.ts +59 -0
- package/dist-lib/esm/geometry/bevelModifier.js +345 -0
- package/dist-lib/esm/geometry/facetSurfaceUtils.d.ts +127 -0
- package/dist-lib/esm/geometry/facetSurfaceUtils.js +676 -0
- package/dist-lib/esm/geometry/roundedBox.d.ts +15 -0
- package/dist-lib/esm/geometry/roundedBox.js +133 -0
- package/dist-lib/esm/index.d.ts +21 -0
- package/dist-lib/esm/index.js +50 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionController.d.ts +59 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionController.js +483 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionStudio.d.ts +76 -0
- package/dist-lib/esm/pathExtrusion/PathExtrusionStudio.js +1792 -0
- package/dist-lib/esm/pathExtrusion/PathFactory.d.ts +95 -0
- package/dist-lib/esm/pathExtrusion/PathFactory.js +627 -0
- package/dist-lib/esm/pathExtrusion/index.d.ts +4 -0
- package/dist-lib/esm/pathExtrusion/index.js +4 -0
- package/dist-lib/esm/pathExtrusion/types.d.ts +50 -0
- package/dist-lib/esm/pathExtrusion/types.js +1 -0
- package/dist-lib/esm/plugin.d.ts +250 -0
- package/dist-lib/esm/plugin.js +144 -0
- package/dist-lib/esm/rigging/WeightPaintController.d.ts +162 -0
- package/dist-lib/esm/rigging/WeightPaintController.js +1421 -0
- package/dist-lib/esm/sculpting/SculptController.d.ts +146 -0
- package/dist-lib/esm/sculpting/SculptController.js +2038 -0
- package/dist-lib/esm/sdf/index.d.ts +2 -0
- package/dist-lib/esm/sdf/index.js +2 -0
- package/dist-lib/esm/sdf/sdfPrimitives.d.ts +97 -0
- package/dist-lib/esm/sdf/sdfPrimitives.js +402 -0
- package/dist-lib/esm/sdf/surfaceNets.d.ts +29 -0
- package/dist-lib/esm/sdf/surfaceNets.js +399 -0
- package/dist-lib/esm/styles.d.ts +11 -0
- package/dist-lib/esm/styles.js +32 -0
- package/dist-lib/esm/template.d.ts +12 -0
- package/dist-lib/esm/template.js +19 -0
- package/dist-lib/esm/textMesh/TextMeshController.d.ts +61 -0
- package/dist-lib/esm/textMesh/TextMeshController.js +405 -0
- package/dist-lib/esm/textures/AITextureGenerator.d.ts +119 -0
- package/dist-lib/esm/textures/AITextureGenerator.js +945 -0
- package/dist-lib/esm/textures/ExternalImageGeneratorService.d.ts +62 -0
- package/dist-lib/esm/textures/ExternalImageGeneratorService.js +879 -0
- package/dist-lib/esm/tools/AbstractTool.d.ts +68 -0
- package/dist-lib/esm/tools/AbstractTool.js +128 -0
- package/dist-lib/esm/tools/ToolExecutionContext.d.ts +40 -0
- package/dist-lib/esm/tools/ToolExecutionContext.js +1 -0
- package/dist-lib/esm/tools/ToolInterface.d.ts +104 -0
- package/dist-lib/esm/tools/ToolInterface.js +1 -0
- package/dist-lib/esm/tools/ToolRegistry.d.ts +43 -0
- package/dist-lib/esm/tools/ToolRegistry.js +115 -0
- package/dist-lib/esm/tools/builtin/ApplyMaterialTool.d.ts +34 -0
- package/dist-lib/esm/tools/builtin/ApplyMaterialTool.js +48 -0
- package/dist-lib/esm/tools/builtin/AutoUVMappingTool.d.ts +34 -0
- package/dist-lib/esm/tools/builtin/AutoUVMappingTool.js +54 -0
- package/dist-lib/esm/tools/builtin/BakeTexturesTool.d.ts +42 -0
- package/dist-lib/esm/tools/builtin/BakeTexturesTool.js +81 -0
- package/dist-lib/esm/tools/builtin/BooleanOperationTool.d.ts +51 -0
- package/dist-lib/esm/tools/builtin/BooleanOperationTool.js +86 -0
- package/dist-lib/esm/tools/builtin/BuildVoxelMeshTool.d.ts +78 -0
- package/dist-lib/esm/tools/builtin/BuildVoxelMeshTool.js +170 -0
- package/dist-lib/esm/tools/builtin/CloneArrayTool.d.ts +75 -0
- package/dist-lib/esm/tools/builtin/CloneArrayTool.js +115 -0
- package/dist-lib/esm/tools/builtin/CreateArchTool.d.ts +118 -0
- package/dist-lib/esm/tools/builtin/CreateArchTool.js +89 -0
- package/dist-lib/esm/tools/builtin/CreateColumnTool.d.ts +114 -0
- package/dist-lib/esm/tools/builtin/CreateColumnTool.js +105 -0
- package/dist-lib/esm/tools/builtin/CreateLatheTool.d.ts +87 -0
- package/dist-lib/esm/tools/builtin/CreateLatheTool.js +60 -0
- package/dist-lib/esm/tools/builtin/CreateMaterialTool.d.ts +114 -0
- package/dist-lib/esm/tools/builtin/CreateMaterialTool.js +212 -0
- package/dist-lib/esm/tools/builtin/CreateMoldingTool.d.ts +120 -0
- package/dist-lib/esm/tools/builtin/CreateMoldingTool.js +95 -0
- package/dist-lib/esm/tools/builtin/CreatePrimitiveTool.d.ts +162 -0
- package/dist-lib/esm/tools/builtin/CreatePrimitiveTool.js +302 -0
- package/dist-lib/esm/tools/builtin/CreateRoofTool.d.ts +120 -0
- package/dist-lib/esm/tools/builtin/CreateRoofTool.js +108 -0
- package/dist-lib/esm/tools/builtin/CreateRoundedBoxTool.d.ts +101 -0
- package/dist-lib/esm/tools/builtin/CreateRoundedBoxTool.js +79 -0
- package/dist-lib/esm/tools/builtin/CreateSdfMeshTool.d.ts +224 -0
- package/dist-lib/esm/tools/builtin/CreateSdfMeshTool.js +238 -0
- package/dist-lib/esm/tools/builtin/CreateStairsTool.d.ts +135 -0
- package/dist-lib/esm/tools/builtin/CreateStairsTool.js +119 -0
- package/dist-lib/esm/tools/builtin/CreateTextMeshTool.d.ts +94 -0
- package/dist-lib/esm/tools/builtin/CreateTextMeshTool.js +131 -0
- package/dist-lib/esm/tools/builtin/CreateTubeTool.d.ts +87 -0
- package/dist-lib/esm/tools/builtin/CreateTubeTool.js +59 -0
- package/dist-lib/esm/tools/builtin/CreateWallTool.d.ts +145 -0
- package/dist-lib/esm/tools/builtin/CreateWallTool.js +124 -0
- package/dist-lib/esm/tools/builtin/DecalTool.d.ts +76 -0
- package/dist-lib/esm/tools/builtin/DecalTool.js +143 -0
- package/dist-lib/esm/tools/builtin/DeleteMeshTool.d.ts +20 -0
- package/dist-lib/esm/tools/builtin/DeleteMeshTool.js +42 -0
- package/dist-lib/esm/tools/builtin/ExecuteBabylonCodeTool.d.ts +21 -0
- package/dist-lib/esm/tools/builtin/ExecuteBabylonCodeTool.js +96 -0
- package/dist-lib/esm/tools/builtin/ExtrudePolygonTool.d.ts +114 -0
- package/dist-lib/esm/tools/builtin/ExtrudePolygonTool.js +77 -0
- package/dist-lib/esm/tools/builtin/ExtrudeShapeTool.d.ts +104 -0
- package/dist-lib/esm/tools/builtin/ExtrudeShapeTool.js +68 -0
- package/dist-lib/esm/tools/builtin/FacetArcTool.d.ts +36 -0
- package/dist-lib/esm/tools/builtin/FacetArcTool.js +57 -0
- package/dist-lib/esm/tools/builtin/FacetCutThroughTool.d.ts +30 -0
- package/dist-lib/esm/tools/builtin/FacetCutThroughTool.js +49 -0
- package/dist-lib/esm/tools/builtin/FacetExtrudeTool.d.ts +30 -0
- package/dist-lib/esm/tools/builtin/FacetExtrudeTool.js +49 -0
- package/dist-lib/esm/tools/builtin/FacetInsetTool.d.ts +34 -0
- package/dist-lib/esm/tools/builtin/FacetInsetTool.js +55 -0
- package/dist-lib/esm/tools/builtin/GenerateNeuralMeshTool.d.ts +131 -0
- package/dist-lib/esm/tools/builtin/GenerateNeuralMeshTool.js +455 -0
- package/dist-lib/esm/tools/builtin/GenerateTextureTool.d.ts +87 -0
- package/dist-lib/esm/tools/builtin/GenerateTextureTool.js +216 -0
- package/dist-lib/esm/tools/builtin/GetSceneInfoTool.d.ts +11 -0
- package/dist-lib/esm/tools/builtin/GetSceneInfoTool.js +12 -0
- package/dist-lib/esm/tools/builtin/MergeMeshesTool.d.ts +28 -0
- package/dist-lib/esm/tools/builtin/MergeMeshesTool.js +56 -0
- package/dist-lib/esm/tools/builtin/PlanModelTool.d.ts +87 -0
- package/dist-lib/esm/tools/builtin/PlanModelTool.js +155 -0
- package/dist-lib/esm/tools/builtin/RetopologizeMeshTool.d.ts +50 -0
- package/dist-lib/esm/tools/builtin/RetopologizeMeshTool.js +116 -0
- package/dist-lib/esm/tools/builtin/RigWeightTool.d.ts +55 -0
- package/dist-lib/esm/tools/builtin/RigWeightTool.js +139 -0
- package/dist-lib/esm/tools/builtin/SculptMeshTool.d.ts +138 -0
- package/dist-lib/esm/tools/builtin/SculptMeshTool.js +255 -0
- package/dist-lib/esm/tools/builtin/SeparateMeshTool.d.ts +21 -0
- package/dist-lib/esm/tools/builtin/SeparateMeshTool.js +31 -0
- package/dist-lib/esm/tools/builtin/SolidifyMeshTool.d.ts +30 -0
- package/dist-lib/esm/tools/builtin/SolidifyMeshTool.js +57 -0
- package/dist-lib/esm/tools/builtin/SpawnBaseMeshTool.d.ts +66 -0
- package/dist-lib/esm/tools/builtin/SpawnBaseMeshTool.js +105 -0
- package/dist-lib/esm/tools/builtin/SubDSmoothTool.d.ts +23 -0
- package/dist-lib/esm/tools/builtin/SubDSmoothTool.js +37 -0
- package/dist-lib/esm/tools/builtin/SubdivideMeshTool.d.ts +23 -0
- package/dist-lib/esm/tools/builtin/SubdivideMeshTool.js +39 -0
- package/dist-lib/esm/tools/builtin/TransformMeshTool.d.ts +78 -0
- package/dist-lib/esm/tools/builtin/TransformMeshTool.js +69 -0
- package/dist-lib/esm/tools/builtin/UVUnwrapTool.d.ts +48 -0
- package/dist-lib/esm/tools/builtin/UVUnwrapTool.js +107 -0
- package/dist-lib/esm/tools/builtin/VoxelPainterTool.d.ts +60 -0
- package/dist-lib/esm/tools/builtin/VoxelPainterTool.js +153 -0
- package/dist-lib/esm/tools/builtin/index.d.ts +44 -0
- package/dist-lib/esm/tools/builtin/index.js +44 -0
- package/dist-lib/esm/tools/editor/AIAgentEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/AIAgentEditorTool.js +43 -0
- package/dist-lib/esm/tools/editor/AITextureEditorTool.d.ts +15 -0
- package/dist-lib/esm/tools/editor/AITextureEditorTool.js +28 -0
- package/dist-lib/esm/tools/editor/AbstractEditorTool.d.ts +29 -0
- package/dist-lib/esm/tools/editor/AbstractEditorTool.js +56 -0
- package/dist-lib/esm/tools/editor/AnimationPlayerEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/AnimationPlayerEditorTool.js +29 -0
- package/dist-lib/esm/tools/editor/BakingEditorTool.d.ts +21 -0
- package/dist-lib/esm/tools/editor/BakingEditorTool.js +44 -0
- package/dist-lib/esm/tools/editor/CSGEditorTool.d.ts +20 -0
- package/dist-lib/esm/tools/editor/CSGEditorTool.js +42 -0
- package/dist-lib/esm/tools/editor/CompressModelEditorTool.d.ts +20 -0
- package/dist-lib/esm/tools/editor/CompressModelEditorTool.js +48 -0
- package/dist-lib/esm/tools/editor/CreatePrimitiveEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/CreatePrimitiveEditorTool.js +36 -0
- package/dist-lib/esm/tools/editor/DecalEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/DecalEditorTool.js +36 -0
- package/dist-lib/esm/tools/editor/FacetEditorTool.d.ts +23 -0
- package/dist-lib/esm/tools/editor/FacetEditorTool.js +80 -0
- package/dist-lib/esm/tools/editor/MaterialEditorTool.d.ts +18 -0
- package/dist-lib/esm/tools/editor/MaterialEditorTool.js +43 -0
- package/dist-lib/esm/tools/editor/MeshPropertiesEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/MeshPropertiesEditorTool.js +37 -0
- package/dist-lib/esm/tools/editor/OutlinerEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/OutlinerEditorTool.js +34 -0
- package/dist-lib/esm/tools/editor/PathExtrusionEditorTool.d.ts +26 -0
- package/dist-lib/esm/tools/editor/PathExtrusionEditorTool.js +72 -0
- package/dist-lib/esm/tools/editor/RiggingEditorTool.d.ts +27 -0
- package/dist-lib/esm/tools/editor/RiggingEditorTool.js +66 -0
- package/dist-lib/esm/tools/editor/SceneEnvironmentEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/SceneEnvironmentEditorTool.js +35 -0
- package/dist-lib/esm/tools/editor/SculptEditorTool.d.ts +28 -0
- package/dist-lib/esm/tools/editor/SculptEditorTool.js +70 -0
- package/dist-lib/esm/tools/editor/TextMeshEditorTool.d.ts +16 -0
- package/dist-lib/esm/tools/editor/TextMeshEditorTool.js +30 -0
- package/dist-lib/esm/tools/editor/TextureOptimizerEditorTool.d.ts +17 -0
- package/dist-lib/esm/tools/editor/TextureOptimizerEditorTool.js +28 -0
- package/dist-lib/esm/tools/editor/UVUnwrapEditorTool.d.ts +27 -0
- package/dist-lib/esm/tools/editor/UVUnwrapEditorTool.js +70 -0
- package/dist-lib/esm/tools/editor/VoxelPainterEditorTool.d.ts +26 -0
- package/dist-lib/esm/tools/editor/VoxelPainterEditorTool.js +68 -0
- package/dist-lib/esm/tools/editor/aiQuickPrompts.d.ts +30 -0
- package/dist-lib/esm/tools/editor/aiQuickPrompts.js +228 -0
- package/dist-lib/esm/tools/editor/index.d.ts +32 -0
- package/dist-lib/esm/tools/editor/index.js +54 -0
- package/dist-lib/esm/tools/editor/toolViews.d.ts +10 -0
- package/dist-lib/esm/tools/editor/toolViews.js +53 -0
- package/dist-lib/esm/tools/editorTools.d.ts +5 -0
- package/dist-lib/esm/tools/editorTools.js +5 -0
- package/dist-lib/esm/tools/index.d.ts +8 -0
- package/dist-lib/esm/tools/index.js +8 -0
- package/dist-lib/esm/tools/textureUtils.d.ts +18 -0
- package/dist-lib/esm/tools/textureUtils.js +288 -0
- package/dist-lib/esm/types.d.ts +164 -0
- package/dist-lib/esm/types.js +1 -0
- package/dist-lib/esm/uv/UVUnwrapController.d.ts +108 -0
- package/dist-lib/esm/uv/UVUnwrapController.js +1022 -0
- package/dist-lib/esm/voxel/CustomVoxelMesher.d.ts +15 -0
- package/dist-lib/esm/voxel/CustomVoxelMesher.js +169 -0
- package/dist-lib/esm/voxel/TextureAtlasManager.d.ts +54 -0
- package/dist-lib/esm/voxel/TextureAtlasManager.js +630 -0
- package/dist-lib/esm/voxel/VoxelPainterController.d.ts +100 -0
- package/dist-lib/esm/voxel/VoxelPainterController.js +671 -0
- package/dist-lib/esm/voxel/index.d.ts +4 -0
- package/dist-lib/esm/voxel/index.js +4 -0
- package/dist-lib/esm/voxel/types.d.ts +78 -0
- package/dist-lib/esm/voxel/types.js +1 -0
- package/dist-lib/esm/web-component/MeshEditorElement.d.ts +103 -0
- package/dist-lib/esm/web-component/MeshEditorElement.js +246 -0
- package/dist-lib/esm/web-component/index.d.ts +1 -0
- package/dist-lib/esm/web-component/index.js +1 -0
- package/dist-lib/index.umd.js +3 -0
- package/dist-lib/mesheditor.css +2 -0
- package/dist-lib/mesheditor.css.map +1 -0
- package/dist-lib/standalone/mesheditor-element.bundle.js +3 -0
- package/package.json +114 -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,80 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Facet & Vertex Editor Tool.
|
|
4
|
+
* Advanced 3D polygon modeling, face manipulation, extrusion, inset, bevel, subdivision, and topology editing.
|
|
5
|
+
*/
|
|
6
|
+
export class FacetEditorTool extends AbstractEditorTool {
|
|
7
|
+
name = 'facet_editor';
|
|
8
|
+
dialogId = 'dialog-facet';
|
|
9
|
+
triggerButtonId = 'btnToggleFacetEditor';
|
|
10
|
+
menuId = 'menuTools';
|
|
11
|
+
menuLabel = 'Facet & Vertex Editor';
|
|
12
|
+
icon = 'triangle';
|
|
13
|
+
order = 4;
|
|
14
|
+
defaultOpen = true;
|
|
15
|
+
isExclusive3DTool = true;
|
|
16
|
+
description = 'Advanced polygon modeling plus per-facet UV mapping, atlas tiles, and per-facet material/texture assignment.';
|
|
17
|
+
helpText = `
|
|
18
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
19
|
+
<p>The <strong>Facet & Vertex Editor</strong> gives you high-precision polygon mesh modeling tools, per-facet UV coordinate editing, and per-facet material or texture assignment directly in the 3D viewport.</p>
|
|
20
|
+
|
|
21
|
+
<h4><i class="app-icon" data-lucide="sparkles"></i> 3D Mesh Modeling Tools</h4>
|
|
22
|
+
<ul>
|
|
23
|
+
<li><strong>Extrude (X):</strong> Pulls a new polygon volume outward along face normals with connecting quad sides.</li>
|
|
24
|
+
<li><strong>Inset (I):</strong> Shrinks a face inward toward its centroid, generating an inner polygon surrounded by quads.</li>
|
|
25
|
+
<li><strong>Arc (Shift+A):</strong> Extrudes a face along a curved, segmented circular arch.</li>
|
|
26
|
+
<li><strong>Knife (C):</strong> Splits a triangle across its longest edge with precision midpoint cutting.</li>
|
|
27
|
+
<li><strong>Loop Cut (Shift+E):</strong> Cuts a quad subdivision strip through selected edges or adjacent faces.</li>
|
|
28
|
+
<li><strong>Bevel (-):</strong> Chamfers perimeter edges and transitions smoothly with beveled facets.</li>
|
|
29
|
+
<li><strong>Solidify (H):</strong> Adds real wall thickness to open surface sheets or hollow meshes.</li>
|
|
30
|
+
<li><strong>Array:</strong> Duplicates faces or objects with progressive linear offsets.</li>
|
|
31
|
+
<li><strong>Cut Through (T):</strong> Punches an open recessed portal or through-hole through the mesh.</li>
|
|
32
|
+
<li><strong>Relax (V):</strong> Applies Laplacian vertex relaxation to even out polygon proportions.</li>
|
|
33
|
+
<li><strong>Subdivide (K):</strong> Splits selected faces into 4 smaller equilateral subtriangles.</li>
|
|
34
|
+
<li><strong>Sub-D (Shift+S):</strong> Smooth subdivision surface with organic Laplacian curvature smoothing.</li>
|
|
35
|
+
<li><strong>Invert Normal (N):</strong> Flips polygon winding order to fix inside-out or transparent faces.</li>
|
|
36
|
+
<li><strong>Delete Face (Del):</strong> Removes selected face geometry.</li>
|
|
37
|
+
</ul>
|
|
38
|
+
|
|
39
|
+
<h4><i class="app-icon" data-lucide="grid"></i> Per-Facet UVs & Atlas Tiles</h4>
|
|
40
|
+
<ul>
|
|
41
|
+
<li><strong>Shared Vertex Isolation:</strong> Any UV edit automatically isolates vertices belonging to the selected facet so adjacent faces are never distorted.</li>
|
|
42
|
+
<li><strong>Fit [0..1] / Planar:</strong> Re-projects normalized local UVs or consistent world-scale planar UVs onto the picked facet.</li>
|
|
43
|
+
<li><strong>Transforms & Region:</strong> Rotate UVs by 90°, flip U/V, remap exact <code>[uMin..uMax, vMin..vMax]</code> bounds, or edit individual corner <code>(U, V)</code> values.</li>
|
|
44
|
+
<li><strong>Atlas Tiles:</strong> Click any atlas tile swatch to map the facet onto that tile's UV coordinates (and optionally assign the shared atlas material).</li>
|
|
45
|
+
</ul>
|
|
46
|
+
|
|
47
|
+
<h4><i class="app-icon" data-lucide="palette"></i> Per-Facet Materials & Textures</h4>
|
|
48
|
+
<ul>
|
|
49
|
+
<li><strong>SubMesh Splitting:</strong> Assign an existing scene material, a newly created colored PBR material, or an embedded/uploaded image texture exclusively to the picked facet using automatic <code>MultiMaterial</code> SubMeshes.</li>
|
|
50
|
+
<li><strong>Single Tri Mode:</strong> Enable <em>Single Tri</em> in the status bar to target one individual triangle instead of pairing coplanar triangles into a quad.</li>
|
|
51
|
+
</ul>
|
|
52
|
+
|
|
53
|
+
<h4><i class="app-icon" data-lucide="mouse-pointer"></i> Viewport Controls</h4>
|
|
54
|
+
<ul>
|
|
55
|
+
<li><strong>Face Mode:</strong> Click any face to select. On cubes and planar meshes, adjacent coplanar triangles sharing the same material are paired as a Quad unless <em>Single Tri</em> is enabled.</li>
|
|
56
|
+
<li><strong>Vertex Mode:</strong> Click interactive sphere handles or click on the mesh to select vertices and drag them with the 3D Move Gizmo.</li>
|
|
57
|
+
<li><strong>WASD Navigation:</strong> Camera navigation (W, A, S, D, Arrow keys) always works smoothly in the 3D viewport without interfering with modeling tools.</li>
|
|
58
|
+
<li><strong>Keyboard Shortcuts:</strong> Press X, I, C, H, T, K, Shift+A, Shift+E, Shift+S while editing to trigger operations instantly.</li>
|
|
59
|
+
</ul>
|
|
60
|
+
`.trim();
|
|
61
|
+
isActive(app) {
|
|
62
|
+
return !!app?.service?.facetEditorActive;
|
|
63
|
+
}
|
|
64
|
+
onOpen(app) {
|
|
65
|
+
app.service?.toggleFacetEditor(true);
|
|
66
|
+
app.updatePanelButtonStates?.();
|
|
67
|
+
}
|
|
68
|
+
onClose(app) {
|
|
69
|
+
app.service?.toggleFacetEditor(false);
|
|
70
|
+
app.updatePanelButtonStates?.();
|
|
71
|
+
}
|
|
72
|
+
onActivate(app) {
|
|
73
|
+
app.service?.toggleFacetEditor(true);
|
|
74
|
+
app.updatePanelButtonStates?.();
|
|
75
|
+
}
|
|
76
|
+
onDeactivate(app) {
|
|
77
|
+
app.service?.toggleFacetEditor(false);
|
|
78
|
+
app.updatePanelButtonStates?.();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Material & Texture Tool.
|
|
4
|
+
* Configure PBR material properties, colors, textures, roughness, metallic, bump/normal mapping, and UV projections.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MaterialEditorTool extends AbstractEditorTool {
|
|
7
|
+
readonly name = "material_uv";
|
|
8
|
+
readonly dialogId = "dialog-material";
|
|
9
|
+
readonly triggerButtonId = "btnToggleMaterialPanel";
|
|
10
|
+
readonly menuId = "menuTools";
|
|
11
|
+
readonly menuLabel = "Material & Texture";
|
|
12
|
+
readonly icon = "palette";
|
|
13
|
+
readonly order = 10;
|
|
14
|
+
readonly defaultOpen = true;
|
|
15
|
+
readonly description = "Configure PBR material properties, colors, textures, roughness, metallic, bump/normal mapping, and UV projections.";
|
|
16
|
+
readonly helpText: string;
|
|
17
|
+
onOpen(app: any): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Material & Texture Tool.
|
|
4
|
+
* Configure PBR material properties, colors, textures, roughness, metallic, bump/normal mapping, and UV projections.
|
|
5
|
+
*/
|
|
6
|
+
export class MaterialEditorTool extends AbstractEditorTool {
|
|
7
|
+
name = 'material_uv';
|
|
8
|
+
dialogId = 'dialog-material';
|
|
9
|
+
triggerButtonId = 'btnToggleMaterialPanel';
|
|
10
|
+
menuId = 'menuTools';
|
|
11
|
+
menuLabel = 'Material & Texture';
|
|
12
|
+
icon = 'palette';
|
|
13
|
+
order = 10;
|
|
14
|
+
defaultOpen = true;
|
|
15
|
+
description = 'Configure PBR material properties, colors, textures, roughness, metallic, bump/normal mapping, and UV projections.';
|
|
16
|
+
helpText = `
|
|
17
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
18
|
+
<p>The <strong>Material & Texture</strong> panel configures Physically Based Rendering (PBR) metallic-roughness materials, texture maps, normal/bump maps, and automated UV coordinate projections.</p>
|
|
19
|
+
|
|
20
|
+
<h4><i class="app-icon" data-lucide="sparkles"></i> PBR Properties</h4>
|
|
21
|
+
<ul>
|
|
22
|
+
<li><strong>Albedo Tint:</strong> Base diffuse surface color with live RGB and HEX color pickers.</li>
|
|
23
|
+
<li><strong>Metallic & Roughness:</strong> Sliders spanning mirror-smooth polished chrome to matte rough ceramics.</li>
|
|
24
|
+
<li><strong>Alpha & Transparency:</strong> Opacity slider supporting transparent glass, plastics, and translucent overlays.</li>
|
|
25
|
+
<li><strong>Emissive Glow:</strong> Self-illuminating color for lamps, neon signs, and glowing sci-fi elements.</li>
|
|
26
|
+
<li><strong>Bump & Normal Mapping:</strong> Simulates detailed surface micro-relief and creases with adjustable intensity, DirectX/OpenGL normal inversion (Invert X / Invert Y), Parallax Mapping, and Parallax Occlusion.</li>
|
|
27
|
+
<li><strong>Generate Normal from Texture:</strong> Automatically extracts a tangent-space normal map with depth-encoded alpha channel directly from the active diffuse/albedo texture.</li>
|
|
28
|
+
</ul>
|
|
29
|
+
|
|
30
|
+
<h4><i class="app-icon" data-lucide="grid"></i> UV Projection & Textures</h4>
|
|
31
|
+
<ul>
|
|
32
|
+
<li>Load diffuse, bump, and normal image maps. Dropping <code>*_normal</code> or <code>*_bump</code> textures automatically maps them.</li>
|
|
33
|
+
<li><strong>uScale & vScale:</strong> Adjust independent horizontal and vertical texture tiling scales in real-time.</li>
|
|
34
|
+
<li><strong>uOffset & vOffset:</strong> Pan texture coordinates across the surface.</li>
|
|
35
|
+
<li>Auto-generate clean <strong>Box / Triplanar</strong>, <strong>Planar</strong> (Top XZ, Front XY, Side ZY), and <strong>Cylindrical</strong> UV texture mappings respecting the configured <code>uScale</code> and <code>vScale</code>.</li>
|
|
36
|
+
<li><strong>Bake UV Scale to Mesh:</strong> Permanently bake current <code>uScale</code>, <code>vScale</code>, and UV offsets directly into the mesh vertex UV coordinates.</li>
|
|
37
|
+
<li>Manage embedded textures bundled directly within saved scene projects.</li>
|
|
38
|
+
</ul>
|
|
39
|
+
`.trim();
|
|
40
|
+
onOpen(app) {
|
|
41
|
+
app.renderEmbeddedTextures?.();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Mesh Properties Tool.
|
|
4
|
+
* Inspect and modify transform (position, rotation, scale), pivots, bounding boxes, and hierarchy.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MeshPropertiesEditorTool extends AbstractEditorTool {
|
|
7
|
+
readonly name = "mesh_properties";
|
|
8
|
+
readonly dialogId = "dialog-mesh";
|
|
9
|
+
readonly triggerButtonId = "btnToggleMeshPanel";
|
|
10
|
+
readonly menuId = "menuTools";
|
|
11
|
+
readonly menuLabel = "Mesh Properties";
|
|
12
|
+
readonly icon = "box";
|
|
13
|
+
readonly order = 9;
|
|
14
|
+
readonly defaultOpen = true;
|
|
15
|
+
readonly description = "Inspect and modify transform (position, rotation, scale), pivots, bounding boxes, and hierarchy.";
|
|
16
|
+
readonly helpText: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Mesh Properties Tool.
|
|
4
|
+
* Inspect and modify transform (position, rotation, scale), pivots, bounding boxes, and hierarchy.
|
|
5
|
+
*/
|
|
6
|
+
export class MeshPropertiesEditorTool extends AbstractEditorTool {
|
|
7
|
+
name = 'mesh_properties';
|
|
8
|
+
dialogId = 'dialog-mesh';
|
|
9
|
+
triggerButtonId = 'btnToggleMeshPanel';
|
|
10
|
+
menuId = 'menuTools';
|
|
11
|
+
menuLabel = 'Mesh Properties';
|
|
12
|
+
icon = 'box';
|
|
13
|
+
order = 9;
|
|
14
|
+
defaultOpen = true;
|
|
15
|
+
description = 'Inspect and modify transform (position, rotation, scale), pivots, bounding boxes, and hierarchy.';
|
|
16
|
+
helpText = `
|
|
17
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
18
|
+
<p>The <strong>Mesh Properties</strong> panel provides CAD-grade numeric transform controls, pivot alignment tools, and geometry decomposition utilities for selected objects.</p>
|
|
19
|
+
|
|
20
|
+
<h4><i class="app-icon" data-lucide="sliders"></i> Transform Controls</h4>
|
|
21
|
+
<ul>
|
|
22
|
+
<li><strong>Position (X, Y, Z):</strong> Numeric coordinates in scene units.</li>
|
|
23
|
+
<li><strong>Rotation (X, Y, Z):</strong> Angular rotations in degrees.</li>
|
|
24
|
+
<li><strong>Scale (X, Y, Z):</strong> Axis scaling factors and convenient Uniform Scale slider.</li>
|
|
25
|
+
<li><strong>Bounding Box:</strong> Toggle visual wireframe bounding box volume.</li>
|
|
26
|
+
</ul>
|
|
27
|
+
|
|
28
|
+
<h4><i class="app-icon" data-lucide="wrench"></i> Geometric Operations</h4>
|
|
29
|
+
<ul>
|
|
30
|
+
<li><strong>Snap to Ground:</strong> Automatically drops the selected object onto the ground plane (Y = 0) based on its lowest bounding vertex.</li>
|
|
31
|
+
<li><strong>Center Pivot:</strong> Recalculates the mesh origin and sets the transform pivot to the exact geometric center.</li>
|
|
32
|
+
<li><strong>Bake Transform:</strong> Applies current position, rotation, and scale permanently into vertex buffer data and resets transform vectors to identity.</li>
|
|
33
|
+
<li><strong>Separate Loose Parts:</strong> Scans disconnected mesh vertex clusters and splits them into separate, individually selectable scene meshes.</li>
|
|
34
|
+
<li><strong>Merge Meshes:</strong> Combines multiple selected meshes into a single mesh while preserving individual sub-materials.</li>
|
|
35
|
+
</ul>
|
|
36
|
+
`.trim();
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Scene Objects Outliner Tool.
|
|
4
|
+
* Hierarchical tree view of all scene meshes, submeshes, and parent-child transforms.
|
|
5
|
+
*/
|
|
6
|
+
export declare class OutlinerEditorTool extends AbstractEditorTool {
|
|
7
|
+
readonly name = "scene_outliner";
|
|
8
|
+
readonly dialogId = "dialog-outliner";
|
|
9
|
+
readonly triggerButtonId = "btnToggleOutliner";
|
|
10
|
+
readonly menuId = "menuTools";
|
|
11
|
+
readonly menuLabel = "Scene Objects";
|
|
12
|
+
readonly icon = "list-tree";
|
|
13
|
+
readonly order = 1;
|
|
14
|
+
readonly defaultOpen = true;
|
|
15
|
+
readonly description = "Hierarchical tree view of all scene meshes, submeshes, and parent-child transforms.";
|
|
16
|
+
readonly helpText: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Scene Objects Outliner Tool.
|
|
4
|
+
* Hierarchical tree view of all scene meshes, submeshes, and parent-child transforms.
|
|
5
|
+
*/
|
|
6
|
+
export class OutlinerEditorTool extends AbstractEditorTool {
|
|
7
|
+
name = 'scene_outliner';
|
|
8
|
+
dialogId = 'dialog-outliner';
|
|
9
|
+
triggerButtonId = 'btnToggleOutliner';
|
|
10
|
+
menuId = 'menuTools';
|
|
11
|
+
menuLabel = 'Scene Objects';
|
|
12
|
+
icon = 'list-tree';
|
|
13
|
+
order = 1;
|
|
14
|
+
defaultOpen = true;
|
|
15
|
+
description = 'Hierarchical tree view of all scene meshes, submeshes, and parent-child transforms.';
|
|
16
|
+
helpText = `
|
|
17
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
18
|
+
<p>The <strong>Scene Objects Outliner</strong> provides a structured hierarchy tree of every 3D mesh, submesh, and helper node in your Babylon.js scene.</p>
|
|
19
|
+
|
|
20
|
+
<h4><i class="app-icon" data-lucide="sparkles"></i> Key Capabilities</h4>
|
|
21
|
+
<ul>
|
|
22
|
+
<li><strong>Instant Filtering:</strong> Type in the search bar at the top to filter objects by name in real-time.</li>
|
|
23
|
+
<li><strong>Submesh Hierarchy:</strong> Expand parent mesh nodes to inspect individual constituent submeshes, loose parts, and bones.</li>
|
|
24
|
+
<li><strong>Selection & Focus:</strong> Click any mesh row in the tree to select it in the 3D viewport and highlight its bounding volume.</li>
|
|
25
|
+
<li><strong>Quick Delete:</strong> Click the trash icon next to any selected item to safely delete it from the scene with full Undo support.</li>
|
|
26
|
+
</ul>
|
|
27
|
+
|
|
28
|
+
<h4><i class="app-icon" data-lucide="mouse-pointer"></i> Controls & Tips</h4>
|
|
29
|
+
<ul>
|
|
30
|
+
<li>Click an item to select it. The viewport orbit camera will center on your selection when focused.</li>
|
|
31
|
+
<li>Use <kbd>Cmd</kbd> / <kbd>Ctrl</kbd> + <kbd>Z</kbd> to restore any accidentally deleted meshes.</li>
|
|
32
|
+
</ul>
|
|
33
|
+
`.trim();
|
|
34
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Path Extrusion Tool.
|
|
4
|
+
* Create 3D extrusions along smooth Catmull-Rom spline curves with 2D cross-section shapes.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PathExtrusionEditorTool extends AbstractEditorTool {
|
|
7
|
+
readonly name = "path_extrusion";
|
|
8
|
+
readonly dialogId = "dialog-path-extrusion";
|
|
9
|
+
readonly triggerButtonId = "btnTogglePathExtrusion";
|
|
10
|
+
readonly menuId = "menuTools";
|
|
11
|
+
readonly menuLabel = "Path Extrusion";
|
|
12
|
+
readonly icon = "route";
|
|
13
|
+
readonly order = 7;
|
|
14
|
+
readonly isExclusive3DTool = true;
|
|
15
|
+
readonly defaultOpen = false;
|
|
16
|
+
readonly description = "Create 3D extrusions along smooth Catmull-Rom spline curves with 2D cross-section shapes.";
|
|
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
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PathExtrusionStudio } from '../../pathExtrusion';
|
|
2
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
3
|
+
/**
|
|
4
|
+
* Path Extrusion Tool.
|
|
5
|
+
* Create 3D extrusions along smooth Catmull-Rom spline curves with 2D cross-section shapes.
|
|
6
|
+
*/
|
|
7
|
+
export class PathExtrusionEditorTool extends AbstractEditorTool {
|
|
8
|
+
name = 'path_extrusion';
|
|
9
|
+
dialogId = 'dialog-path-extrusion';
|
|
10
|
+
triggerButtonId = 'btnTogglePathExtrusion';
|
|
11
|
+
menuId = 'menuTools';
|
|
12
|
+
menuLabel = 'Path Extrusion';
|
|
13
|
+
icon = 'route';
|
|
14
|
+
order = 7;
|
|
15
|
+
isExclusive3DTool = true;
|
|
16
|
+
defaultOpen = false;
|
|
17
|
+
description = 'Create 3D extrusions along smooth Catmull-Rom spline curves with 2D cross-section shapes.';
|
|
18
|
+
helpText = `
|
|
19
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
20
|
+
<p>The <strong>Path Extrusion</strong> tool procedurally sweeps 2D cross-section profiles along smooth 3D Catmull-Rom spline curves to create pipes, roads, railings, rollercoasters, structural beams, and architectural moldings.</p>
|
|
21
|
+
|
|
22
|
+
<h4><i class="app-icon" data-lucide="sparkles"></i> Key Capabilities</h4>
|
|
23
|
+
<ul>
|
|
24
|
+
<li><strong>Catmull-Rom 3D Splines:</strong> Smooth interpolation through interactive 3D control points.</li>
|
|
25
|
+
<li><strong>Interactive 3D Gizmos:</strong> Click any spline point sphere in the scene to translate it along X, Y, and Z axes with precision.</li>
|
|
26
|
+
<li><strong>Cross-Section Presets:</strong> Pipe, Hollow Pipe, Flat Ribbon, U-Profile, Rectangle, Star, and Triangle.</li>
|
|
27
|
+
<li><strong>Path Extrusion Studio:</strong> A dedicated 2D vector canvas to interactively sketch, pan, zoom, and sculpt custom cross-section contours.</li>
|
|
28
|
+
<li><strong>Procedural Modifiers:</strong> Live controls for curve smooth steps, profile width, height, thickness, twist rotation, and scale tapers.</li>
|
|
29
|
+
<li><strong>Bake Mesh:</strong> Generates a clean, watertight 3D solid in the scene ready for export (.glb, .obj, .stl).</li>
|
|
30
|
+
</ul>
|
|
31
|
+
|
|
32
|
+
<h4><i class="app-icon" data-lucide="list-ordered"></i> Getting Started</h4>
|
|
33
|
+
<ul>
|
|
34
|
+
<li>Click <strong>➕ Add Path</strong> in the panel or in the Studio to create your first path extrusion curve.</li>
|
|
35
|
+
<li>Shift + Click in the 3D scene to add more spline anchor points.</li>
|
|
36
|
+
<li>Click <strong>Open Studio</strong> to customize the 2D cross-section profile.</li>
|
|
37
|
+
</ul>
|
|
38
|
+
`.trim();
|
|
39
|
+
isActive(app) {
|
|
40
|
+
return !!app?.service?.pathExtrusion?.isActive;
|
|
41
|
+
}
|
|
42
|
+
onActivate(app) {
|
|
43
|
+
app.service?.pathExtrusion?.setActive(true);
|
|
44
|
+
app.updatePanelButtonStates?.();
|
|
45
|
+
}
|
|
46
|
+
onDeactivate(app) {
|
|
47
|
+
app.service?.pathExtrusion?.setActive(false);
|
|
48
|
+
app.updatePanelButtonStates?.();
|
|
49
|
+
}
|
|
50
|
+
onOpen(app) {
|
|
51
|
+
this.onActivate(app);
|
|
52
|
+
app.renderPathExtrusionUI?.();
|
|
53
|
+
PathExtrusionStudio.open(app.service, app.service.pathExtrusion, () => {
|
|
54
|
+
app.updatePanelButtonStates?.();
|
|
55
|
+
});
|
|
56
|
+
app.showToast?.('Path Extrusion Studio active. 2D Cross-section canvas ready.', 'info');
|
|
57
|
+
}
|
|
58
|
+
onClose(app) {
|
|
59
|
+
this.onDeactivate(app);
|
|
60
|
+
PathExtrusionStudio.close();
|
|
61
|
+
}
|
|
62
|
+
onMinimize(app) {
|
|
63
|
+
this.onDeactivate(app);
|
|
64
|
+
PathExtrusionStudio.close();
|
|
65
|
+
}
|
|
66
|
+
onMaximize(app) {
|
|
67
|
+
this.onActivate(app);
|
|
68
|
+
}
|
|
69
|
+
onUpdateUI(app) {
|
|
70
|
+
app.renderPathExtrusionUI?.();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Rigging, Skeleton & 3D Weight Painting Tool.
|
|
4
|
+
* Generates game-ready Humanoid/Quadruped/Prop skeletons, binds smooth skin envelopes,
|
|
5
|
+
* paints per-bone vertex influence weights with a live color heatmap, and tests joint bending.
|
|
6
|
+
*/
|
|
7
|
+
export declare class RiggingEditorTool extends AbstractEditorTool {
|
|
8
|
+
readonly name = "rigging_skinning";
|
|
9
|
+
readonly dialogId = "dialog-rigging";
|
|
10
|
+
readonly triggerButtonId = "btnToggleRiggingTool";
|
|
11
|
+
readonly menuId = "menuTools";
|
|
12
|
+
readonly menuLabel = "Rigging & Weight Paint";
|
|
13
|
+
readonly icon = "bone";
|
|
14
|
+
readonly order = 15;
|
|
15
|
+
readonly defaultOpen = false;
|
|
16
|
+
readonly isExclusive3DTool = true;
|
|
17
|
+
readonly description = "Auto-rig 3D models with Humanoid/Quadruped skeletons, paint vertex bone weights with live heatmap, and test joint poses.";
|
|
18
|
+
readonly helpText: string;
|
|
19
|
+
isActive(app: any): boolean;
|
|
20
|
+
onActivate(app: any): void;
|
|
21
|
+
onDeactivate(app: any): void;
|
|
22
|
+
onOpen(app: any): void;
|
|
23
|
+
onClose(app: any): void;
|
|
24
|
+
onMinimize(app: any): void;
|
|
25
|
+
onMaximize(app: any): void;
|
|
26
|
+
onUpdateUI(app: any): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Rigging, Skeleton & 3D Weight Painting Tool.
|
|
4
|
+
* Generates game-ready Humanoid/Quadruped/Prop skeletons, binds smooth skin envelopes,
|
|
5
|
+
* paints per-bone vertex influence weights with a live color heatmap, and tests joint bending.
|
|
6
|
+
*/
|
|
7
|
+
export class RiggingEditorTool extends AbstractEditorTool {
|
|
8
|
+
name = 'rigging_skinning';
|
|
9
|
+
dialogId = 'dialog-rigging';
|
|
10
|
+
triggerButtonId = 'btnToggleRiggingTool';
|
|
11
|
+
menuId = 'menuTools';
|
|
12
|
+
menuLabel = 'Rigging & Weight Paint';
|
|
13
|
+
icon = 'bone';
|
|
14
|
+
order = 15;
|
|
15
|
+
defaultOpen = false;
|
|
16
|
+
isExclusive3DTool = true;
|
|
17
|
+
description = 'Auto-rig 3D models with Humanoid/Quadruped skeletons, paint vertex bone weights with live heatmap, and test joint poses.';
|
|
18
|
+
helpText = `
|
|
19
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
20
|
+
<p>The <strong>Rigging & Weight Paint</strong> tool prepares characters, creatures, and props for animation in Unreal Engine, Unity, and Babylon.js by binding a hierarchical skeleton and painting smooth per-vertex skin weights.</p>
|
|
21
|
+
|
|
22
|
+
<h4><i class="app-icon" data-lucide="bone"></i> Skeleton Auto-Rigging</h4>
|
|
23
|
+
<ul>
|
|
24
|
+
<li><strong>Humanoid Rig (20 Bones):</strong> Standard game-engine biped hierarchy (Root, Hips, Spine, Chest, Neck, Head, Left/Right Arms & Legs) automatically fitted to your mesh's bounding volume.</li>
|
|
25
|
+
<li><strong>Quadruped Beast Rig:</strong> Pelvis, Spine, Neck, Head, Tail, and 4 articulated legs.</li>
|
|
26
|
+
<li><strong>Prop / Spine Chain:</strong> 5-bone articulated chain for tails, tentacles, banners, and turrets.</li>
|
|
27
|
+
</ul>
|
|
28
|
+
|
|
29
|
+
<h4><i class="app-icon" data-lucide="brush"></i> Interactive 3D Weight Painting</h4>
|
|
30
|
+
<ul>
|
|
31
|
+
<li><strong>Weight Heatmap:</strong> Colors vertices from <strong>Blue (0.0)</strong> → Cyan → Green → Yellow → <strong>Red (1.0)</strong> to show the exact influence of the selected bone.</li>
|
|
32
|
+
<li><strong>Add / Subtract / Smooth / Replace:</strong> Paint directly on the 3D mesh to refine how joints bend. Weights across all 4 bone slots per vertex are normalized to <code>1.0</code> automatically.</li>
|
|
33
|
+
<li><strong>X-Symmetry:</strong> Automatically mirrors painted weights across Left (<code>_L</code>) and Right (<code>_R</code>) bones.</li>
|
|
34
|
+
<li><strong>Joint Pose Bend Test:</strong> Rotate the active bone right in the viewport to test joint deformation and click <em>Reset Bind Pose</em> when finished.</li>
|
|
35
|
+
</ul>
|
|
36
|
+
`.trim();
|
|
37
|
+
isActive(app) {
|
|
38
|
+
return !!app?.service?.weightPaintController?.isActive;
|
|
39
|
+
}
|
|
40
|
+
onActivate(app) {
|
|
41
|
+
app.service?.weightPaintController?.setActive(true);
|
|
42
|
+
app.updatePanelButtonStates?.();
|
|
43
|
+
app.updateRiggingUI?.();
|
|
44
|
+
}
|
|
45
|
+
onDeactivate(app) {
|
|
46
|
+
app.service?.weightPaintController?.setActive(false);
|
|
47
|
+
app.updatePanelButtonStates?.();
|
|
48
|
+
app.updateRiggingUI?.();
|
|
49
|
+
}
|
|
50
|
+
onOpen(app) {
|
|
51
|
+
this.onActivate(app);
|
|
52
|
+
app.updateRiggingUI?.();
|
|
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.updateRiggingUI?.();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Scene & Environment Tool.
|
|
4
|
+
* Adjust scene background color, ground grid, ambient lighting, sunlight intensity, and camera speed.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SceneEnvironmentEditorTool extends AbstractEditorTool {
|
|
7
|
+
readonly name = "scene_environment";
|
|
8
|
+
readonly dialogId = "dialog-scene";
|
|
9
|
+
readonly triggerButtonId = "btnToggleScenePanel";
|
|
10
|
+
readonly menuId = "menuTools";
|
|
11
|
+
readonly menuLabel = "Scene & Environment";
|
|
12
|
+
readonly icon = "sun-medium";
|
|
13
|
+
readonly order = 13;
|
|
14
|
+
readonly defaultOpen = true;
|
|
15
|
+
readonly description = "Adjust scene background color, ground grid, ambient lighting, sunlight intensity, camera speed, and transform grid snapping.";
|
|
16
|
+
readonly helpText: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Scene & Environment Tool.
|
|
4
|
+
* Adjust scene background color, ground grid, ambient lighting, sunlight intensity, and camera speed.
|
|
5
|
+
*/
|
|
6
|
+
export class SceneEnvironmentEditorTool extends AbstractEditorTool {
|
|
7
|
+
name = 'scene_environment';
|
|
8
|
+
dialogId = 'dialog-scene';
|
|
9
|
+
triggerButtonId = 'btnToggleScenePanel';
|
|
10
|
+
menuId = 'menuTools';
|
|
11
|
+
menuLabel = 'Scene & Environment';
|
|
12
|
+
icon = 'sun-medium';
|
|
13
|
+
order = 13;
|
|
14
|
+
defaultOpen = true;
|
|
15
|
+
description = 'Adjust scene background color, ground grid, ambient lighting, sunlight intensity, camera speed, and transform grid snapping.';
|
|
16
|
+
helpText = `
|
|
17
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
18
|
+
<p>The <strong>Scene & Environment</strong> panel manages world lighting, sky background color, camera navigation speed, ground grid reference markers, and transform grid snapping.</p>
|
|
19
|
+
|
|
20
|
+
<h4><i class="app-icon" data-lucide="sun"></i> Environment Settings</h4>
|
|
21
|
+
<ul>
|
|
22
|
+
<li><strong>Clear Color:</strong> Viewport background color picker (default dark studio aesthetic).</li>
|
|
23
|
+
<li><strong>Ground Grid:</strong> Toggle the dynamic ground plane grid and adjust grid cell size for metric modeling reference.</li>
|
|
24
|
+
<li><strong>Ambient Lighting:</strong> Hemispheric ambient light brightness for overall scene visibility.</li>
|
|
25
|
+
<li><strong>Sun Light:</strong> Directional sunlight key light intensity for sharp cast shadows and specular highlights.</li>
|
|
26
|
+
<li><strong>Camera Speed:</strong> Multiplier for orbit camera zoom, pan, and rotation responsiveness.</li>
|
|
27
|
+
</ul>
|
|
28
|
+
|
|
29
|
+
<h4><i class="app-icon" data-lucide="grid"></i> Transform Snapping (Command Key)</h4>
|
|
30
|
+
<ul>
|
|
31
|
+
<li><strong>Move Snap:</strong> Grid increment in units for translating meshes when holding the Command (or Ctrl) key (default: 0.1).</li>
|
|
32
|
+
<li><strong>Rotate Snap:</strong> Angle increment in degrees for rotating meshes when holding the Command (or Ctrl) key (default: 5°).</li>
|
|
33
|
+
</ul>
|
|
34
|
+
`.trim();
|
|
35
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Figure Sculpt & Retopology Tool.
|
|
4
|
+
* Digital figure sculpting (Clay, Grab, Smooth, Flatten, Inflate, Pinch, Quad-Draw),
|
|
5
|
+
* anatomical humanoid/creature base-mesh blockouts, X-axis symmetry,
|
|
6
|
+
* Shrinkwrap surface projection, and game-ready Quadric Error retopology decimation.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SculptEditorTool extends AbstractEditorTool {
|
|
9
|
+
readonly name = "sculpt_retopo";
|
|
10
|
+
readonly dialogId = "dialog-sculpt";
|
|
11
|
+
readonly triggerButtonId = "btnToggleSculptTool";
|
|
12
|
+
readonly menuId = "menuTools";
|
|
13
|
+
readonly menuLabel = "Figure Sculpt & Retopo";
|
|
14
|
+
readonly icon = "sparkles";
|
|
15
|
+
readonly order = 5;
|
|
16
|
+
readonly defaultOpen = false;
|
|
17
|
+
readonly isExclusive3DTool = true;
|
|
18
|
+
readonly description = "Digital figure sculpting, Quad-Draw retopology strips, Shrinkwrap mesh projection, humanoid & creature blockouts, and game-ready LOD decimation.";
|
|
19
|
+
readonly helpText: string;
|
|
20
|
+
isActive(app: any): boolean;
|
|
21
|
+
onActivate(app: any): void;
|
|
22
|
+
onDeactivate(app: any): void;
|
|
23
|
+
onOpen(app: any): void;
|
|
24
|
+
onClose(app: any): void;
|
|
25
|
+
onMinimize(app: any): void;
|
|
26
|
+
onMaximize(app: any): void;
|
|
27
|
+
onUpdateUI(app: any): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
/**
|
|
3
|
+
* Figure Sculpt & Retopology Tool.
|
|
4
|
+
* Digital figure sculpting (Clay, Grab, Smooth, Flatten, Inflate, Pinch, Quad-Draw),
|
|
5
|
+
* anatomical humanoid/creature base-mesh blockouts, X-axis symmetry,
|
|
6
|
+
* Shrinkwrap surface projection, and game-ready Quadric Error retopology decimation.
|
|
7
|
+
*/
|
|
8
|
+
export class SculptEditorTool extends AbstractEditorTool {
|
|
9
|
+
name = 'sculpt_retopo';
|
|
10
|
+
dialogId = 'dialog-sculpt';
|
|
11
|
+
triggerButtonId = 'btnToggleSculptTool';
|
|
12
|
+
menuId = 'menuTools';
|
|
13
|
+
menuLabel = 'Figure Sculpt & Retopo';
|
|
14
|
+
icon = 'sparkles';
|
|
15
|
+
order = 5;
|
|
16
|
+
defaultOpen = false;
|
|
17
|
+
isExclusive3DTool = true;
|
|
18
|
+
description = 'Digital figure sculpting, Quad-Draw retopology strips, Shrinkwrap mesh projection, humanoid & creature blockouts, and game-ready LOD decimation.';
|
|
19
|
+
helpText = `
|
|
20
|
+
<h4><i class="app-icon" data-lucide="info"></i> Overview</h4>
|
|
21
|
+
<p>The <strong>Figure Sculpt & Retopo</strong> tool brings organic character sculpting, anatomical base-mesh blockouts, Quad-Draw strip retopology, Shrinkwrap projection, and real-time game decimation into Mesh Editor.</p>
|
|
22
|
+
|
|
23
|
+
<h4><i class="app-icon" data-lucide="brush"></i> Digital Sculpting & Quad-Draw Brushes</h4>
|
|
24
|
+
<ul>
|
|
25
|
+
<li><strong>Clay:</strong> Pushes and carves surface volume along local face normals with a soft plateau profile.</li>
|
|
26
|
+
<li><strong>Grab:</strong> Pulls vertices smoothly along mouse drag movements (essential for silhouettes and primary forms).</li>
|
|
27
|
+
<li><strong>Smooth:</strong> Applies Laplacian smoothing to relax wrinkles, surface bumps, and uneven vertices.</li>
|
|
28
|
+
<li><strong>Flatten:</strong> Projects vertices onto the average contact plane to carve planar bone landmarks and facial planes.</li>
|
|
29
|
+
<li><strong>Inflate:</strong> Expands or deflates mesh volume along individual vertex normals.</li>
|
|
30
|
+
<li><strong>Pinch:</strong> Pulls vertices toward the center of the brush to sculpt sharp creases, muscle cuts, and wrinkles.</li>
|
|
31
|
+
<li><strong>Quad-Draw (Strips):</strong> Draws clean 4-sided quad polygon strips directly onto the high-poly surface and automatically welds adjacent vertices for animation-ready edge flow.</li>
|
|
32
|
+
</ul>
|
|
33
|
+
|
|
34
|
+
<h4><i class="app-icon" data-lucide="layers"></i> Retopology: Shrinkwrap & Quad Cage</h4>
|
|
35
|
+
<ul>
|
|
36
|
+
<li><strong>Shrinkwrap (Mesh Projection):</strong> Wraps the selected low-poly mesh tightly onto the target high-poly sculpt like a stretch film with configurable surface offset and tangential relaxation.</li>
|
|
37
|
+
<li><strong>Generate Quad Cage:</strong> Builds a structured quad-ring retopology cage around the target mesh and shrinkwraps it onto the surface.</li>
|
|
38
|
+
<li><strong>Quadric Error Simplification:</strong> Decimates high-poly sculpts down to game budgets (Mobile ~4k, Standard ~15k, Hero ~32k) while preserving silhouette and submeshes.</li>
|
|
39
|
+
</ul>
|
|
40
|
+
`.trim();
|
|
41
|
+
isActive(app) {
|
|
42
|
+
return !!(app?.service?.isSculptModeActive?.() ?? app?.service?.sculptController?.isActive);
|
|
43
|
+
}
|
|
44
|
+
onActivate(app) {
|
|
45
|
+
app.service?.sculptController?.setActive(true);
|
|
46
|
+
app.updatePanelButtonStates?.();
|
|
47
|
+
app.updateSculptUI?.();
|
|
48
|
+
}
|
|
49
|
+
onDeactivate(app) {
|
|
50
|
+
app.service?.sculptController?.setActive(false);
|
|
51
|
+
app.updatePanelButtonStates?.();
|
|
52
|
+
app.updateSculptUI?.();
|
|
53
|
+
}
|
|
54
|
+
onOpen(app) {
|
|
55
|
+
this.onActivate(app);
|
|
56
|
+
app.updateSculptUI?.();
|
|
57
|
+
}
|
|
58
|
+
onClose(app) {
|
|
59
|
+
this.onDeactivate(app);
|
|
60
|
+
}
|
|
61
|
+
onMinimize(app) {
|
|
62
|
+
this.onDeactivate(app);
|
|
63
|
+
}
|
|
64
|
+
onMaximize(app) {
|
|
65
|
+
this.onActivate(app);
|
|
66
|
+
}
|
|
67
|
+
onUpdateUI(app) {
|
|
68
|
+
app.updateSculptUI?.();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEditorTool } from './AbstractEditorTool';
|
|
2
|
+
export declare class TextMeshEditorTool extends AbstractEditorTool {
|
|
3
|
+
readonly name = "text_mesh";
|
|
4
|
+
readonly dialogId = "dialog-text-mesh";
|
|
5
|
+
readonly triggerButtonId = "btnToggleTextMeshTool";
|
|
6
|
+
readonly menuId = "menuTools";
|
|
7
|
+
readonly menuLabel = "3D Text";
|
|
8
|
+
readonly icon = "type";
|
|
9
|
+
readonly order = 17;
|
|
10
|
+
readonly isExclusive3DTool = false;
|
|
11
|
+
readonly description = "Create and edit extruded 3D text meshes with customizable fonts, depth, curve resolution, and PBR materials.";
|
|
12
|
+
readonly helpText = "\n <h4>3D Text Tool</h4>\n <p>Generate and edit extruded 3D typography meshes directly in the scene.</p>\n <ul>\n <li><strong>Create 3D Text:</strong> Type your text, select a font family (<em>Kenney Future</em>, <em>Droid Sans Bold</em>, or <em>Droid Sans Regular</em>), adjust size, extrusion depth, and curve resolution, then click <strong>Create 3D Text</strong>.</li>\n <li><strong>Edit Existing Text:</strong> Select any 3D Text mesh in the viewport or Outliner. Its settings automatically load into the dialog so you can modify the text, font, depth, or material and click <strong>Update Selected</strong>.</li>\n <li><strong>Surface Placement:</strong> Enable <em>Shift + Left-Click in 3D view</em> to stamp new 3D text directly onto any clicked surface or ground point.</li>\n </ul>\n ";
|
|
13
|
+
onOpen(app: any): void;
|
|
14
|
+
onClose(app: any): void;
|
|
15
|
+
onUpdateUI(app: any): void;
|
|
16
|
+
}
|