A browser tool for splitting a fused 3D model (body, clothes and props all one mesh) into separate pieces.
Paint each part a colour and export one file per part.
Try it · What it does · Pin notes · Limits · MeshTailor
Note
AI-made. Built by the developer with AI help (Claude, by Anthropic).
Part of a pair. MeshShears cuts the pieces; MeshTailor puts them back on a body: pick a garment up, drape it with real cloth, pin it, tighten it and export the dressed model. Open a MeshShears export there as it is.
I kept getting character models where the clothes, the body and the props were all fused into one mesh. Splitting them in Blender meant selecting thousands of faces by hand, so I made this instead. You paint each part a colour, hit export, and get one file per part. It runs in your browser and your model never gets uploaded anywhere.
Try it: https://khelevaster-ship-it.github.io/Meshshears/
- Hugging Face Space: https://huggingface.co/spaces/Khelevaster/Meshshears
- Mobile & tablet support: Phones and tablets can pick model files directly in the import buttons.
Or grab a copy (the green Code button, then Download ZIP), unzip it and double-click index.html. That works
offline.
You open a model (.glb, .gltf, .obj, .fbx, .stl or .ply) and paint on it. Every colour you use becomes a
piece. Fill follows colour edges and folds, so a shirt usually takes a click or two. When you're done, export gives you
a zip with each piece as its own .glb, still at the right size, the right way up, with its texture.
Label names: each label's name box suggests names as you type, with a list you can scroll: Tunic, Shirt, Dress, Toga, Belt, Footwear, Strap, Pelt, Knife, Pouch and the rest. These are the names MeshTailor knows. A piece labelled with one is fitted there with no questions. Any other name still works, and MeshTailor asks what that piece is.
There's also a piece finder. It takes photos of your model from 40 angles, works out where the outlines are, and splits the model into pieces for you, so Fill can grab a whole sleeve or boot in one click. It runs in the background while you keep painting, and the first pieces show up about a quarter of the way in. Afterwards a slider makes the pieces bigger or smaller, and Split a piece / Join two pieces fix the odd one by hand. Tick Quick for a run with half the photos.
And a clone brush, for when part of a texture looks wrong: Alt-click a good area, paint over the bad one, and it copies the look across, colours and all.
Fuse: to make two labels one piece, select the label, pick the other in the Fuse box under the labels and press Fuse. Its cloth becomes part of that label, so they export as one piece, joined where they touch (a strap cut in two under a shoulder pad, fused with the pad, leaves as one). Undo takes it back.
Keep joined: pieces that touch, like a bag and its strap, are listed in the Keep joined card. Tick a pair and the
export carries the points they share (in each piece's file and in a .joins.json), so they arrive in
MeshTailor already joined where they meet. Parts of one label that
don't touch (two boots) are exported as separate pieces.
For the small fixes you would rather hand to an AI coding helper. Switch on Pin a note (in the Pin notes card),
click the model where something is wrong, and write what it is. Each click drops the next numbered pin; add as many as
you like. Hand off to agent saves a zip with notes_for_agent.md (each pin's number, note, label, face number and
point in the model's own units), notes.json (the same, as data) and view.png (the view with the pins drawn on).
Copy notes puts the text on the clipboard. Pins are kept with your paint and in the paint file.
Pin notes change none of the controls: no new keys, and only a plain click (or a one-finger tap) while Pin a note is on drops a pin. Right drag, the wheel, two fingers and every key work as always. MeshTailor has the same pins.
- Left drag paints, right drag turns, the wheel zooms, middle drag slides. W A S D and the arrow keys move too, R resets the view. Every key is listed in the corner of the screen (click its title to fold it away).
- On a touch screen: one finger paints, two fingers slide, pinch and twist.
- Brush, Fill, Lasso and Eraser are in the panel on the right. Wall draws a line that Fill won't cross.
- Preview the cut shows only what you're keeping.
- Save keeps your work in the browser. File, then Save paint to a file, gives you a file you can open on another computer.
- The piece finder takes a few minutes. It works on several cores side by side (up to four, fewer on a computer with little memory), and on a graphics card that can run it, it uses that too. If the graphics card gives a wrong answer at any point, it carries on without it. If a run goes wrong, File, then Copy piece finder report, gives you text to send.
- Models up to about 4 million triangles. Big ones want a computer with a decent graphics card.
.stland.plyfiles have no texture, so they open grey.- From
.usdzor.blend, export a.glbfirst (in Blender: File, Export, glTF 2.0). - Chrome and Edge are fastest. Firefox works.
File formats and other details
- Textures that sit in separate files (an
.obj's.mtl, a.gltf's.bin, image files) need to be opened or dropped together with the model. - Draco-compressed
.glbfiles open. Meshopt and KTX2 compression don't yet. - A model far from person size (one made in centimetres, say) is scaled to 1.75 m while you paint so the brush sizes make sense. The export puts it back.
- All of a model's meshes are joined into one surface for painting. Several materials are laid side by side in one texture; the export carries that texture.
- Colours to fix (the switch at the top of the panel) is a second layer for marking places whose colour should change. It's saved with the paint.
- Paint files (
.paint.json) store one mark per face. Cloned faces carry colour mark 16, and the file'sclonesfield lists each one with the face it copies, as pairs of 32-bit numbers (base64). - Found pieces are kept in the browser. File, then Save found pieces to a file, writes a
.pieces.json.
index.htmlis the whole tool.vendor/holds three.js and its loaders.finder/holds the piece finder:finder_core.jsand the outline model it runs (model/).pin_notes.jsis the pin notes (the same file as in MeshTailor).data/TOBB/is the test model (File → Load the test model): Tobb, a villager from our game, already painted into his pieces. It opens on the website or withstart.py; a page opened straight from disk can't read its files.test/label_checks.jschecks the label name suggestions (node test/label_checks.js, 3 checks; breakslabelsuggest,labelfocus).test/phone_guide_checks.jschecks How it works on a phone: it fits, scrolls and closes (node test/phone_guide_checks.js, 3 checks; breaksguidescroll,guideclose).test/fuse_checks.jschecks Fuse: Tobb's shoulder pelt fused into his strap leaves as one strap piece, and Undo takes it back (node test/fuse_checks.js, 4 checks; breaknofuse).test/test_model_checks.jschecks the test model: "Load the test model" opens Tobb painted into his pieces (node test/test_model_checks.js, 3 checks; breakstestbutton,testpaint).test/pin_checks.jschecks the pin notes and that every control still works with them on (node test/pin_checks.js, needs Playwright with Chromium); each check is proven by breaking its feature (BREAK=<name>).
Splitting a character mesh into separate clothing, accessories, props and body parts; separating clothes from an AI-generated 3D character so they can be fitted, rigged or swapped; cutting up scanned or photogrammetry models; preparing game assets for Unity, Unreal, Godot or Blender. It is a browser-based mesh segmentation tool (paint to select, fill by colour and folds, plus an automatic piece finder built on Segment Anything) that reads GLB, glTF, OBJ, FBX, STL and PLY and exports each piece as its own GLB.
MeshShears is AI-made (built by the developer with AI help).
MeshShears is MIT licensed (see LICENSE). It's built on three.js, uses Meta's SAM 2.1 model for the piece finder
(Apache 2.0) run by Microsoft's ONNX Runtime Web (MIT), and Google's Draco decoder (Apache 2.0). Full details are in
THIRD_PARTY.md.
The test model in data/TOBB/ is Tobb, a character from our game, generated with Meshy (meshy.ai) by the developer and painted into pieces by hand; it's there for trying MeshShears and MeshTailor.