mirror of
https://github.com/CNCKitchen/stlTexturizer.git
synced 2026-04-07 22:11:32 +00:00
Refactor mapping modes and improve UV mapping logic; update viewer axes and camera settings
This commit is contained in:
@@ -35,8 +35,6 @@ function setupGeometry(geometry) {
|
||||
const centre = new THREE.Vector3();
|
||||
box.getCenter(centre);
|
||||
geometry.translate(-centre.x, -centre.y, -centre.z);
|
||||
// Convert Z-up (3D-print convention) to Y-up (Three.js convention)
|
||||
geometry.rotateX(-Math.PI / 2);
|
||||
geometry.computeBoundingBox();
|
||||
if (!geometry.attributes.normal) geometry.computeVertexNormals();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user