mirror of
https://github.com/CNCKitchen/stlTexturizer.git
synced 2026-04-07 22:11:32 +00:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -8,7 +8,7 @@ Load any `.stl` file, pick a texture, tune the parameters, and export a new disp
|
||||
|
||||
## Features
|
||||
|
||||
- **Texture presets** — 12 built-in seamless textures (basket, brick, bubble, crystal, hexagon, knitting, knurling, leather, weave, wood, noise, and more)
|
||||
- **Texture presets** — 17 built-in seamless textures (basket, brick, bubble, carbon fiber, crystal, grip surface, hexagons, knitting, knurling, leather, noise, voronoi, weave variations, wood, and more)
|
||||
- **Custom textures** — upload your own image as a displacement map
|
||||
- **Projection modes** — Triplanar, Cubic (Box), Cylindrical, Spherical, Planar XY/XZ/YZ
|
||||
- **UV transform** — independent U/V scale, offset, and rotation controls
|
||||
|
||||
@@ -32,20 +32,19 @@ const IMAGE_PRESETS = [
|
||||
{ name: 'Basket', url: 'textures/basket.jpg' },
|
||||
{ name: 'Brick', url: 'textures/brick.jpg' },
|
||||
{ name: 'Bubble', url: 'textures/bubble.jpg' },
|
||||
{ name: 'Carbon Fiber', url: 'textures/carbonFiber.jpg' },
|
||||
{ name: 'Crystal', url: 'textures/crystal.jpg' },
|
||||
{ name: 'Grip Surface', url: 'textures/gripSurface.jpg' },
|
||||
{ name: 'Hexagon', url: 'textures/hexagon.jpg' },
|
||||
{ name: 'Hexagons', url: 'textures/hexagons.jpg' },
|
||||
{ name: 'Knitting', url: 'textures/knitting.jpg' },
|
||||
{ name: 'Knurling', url: 'textures/knurling.jpg' },
|
||||
{ name: 'Leather', url: 'textures/leather.jpg' },
|
||||
{ name: 'Leather 2', url: 'textures/leather2.jpg' },
|
||||
{ name: 'Melt', url: 'textures/melt.jpg' },
|
||||
{ name: 'Noise', url: 'textures/noise.jpg' },
|
||||
{ name: 'Rhombic', url: 'textures/rhombic.jpg' },
|
||||
{ name: 'Voronoi', url: 'textures/voronoi.jpg' },
|
||||
{ name: 'Weave', url: 'textures/weave.jpg' },
|
||||
{ name: 'Weave 02', url: 'textures/weave_02.jpg' },
|
||||
{ name: 'Weave 03', url: 'textures/weave_03.jpg' },
|
||||
{ name: 'Wood', url: 'textures/wood.jpg' },
|
||||
];
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 80 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 71 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 84 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
Reference in New Issue
Block a user