MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / formatInputValue

Function formatInputValue

js/main.js:2723–2727  ·  view source on GitHub ↗
(input, value)

Source from the content-addressed store, hash-verified

2721 const mesh = getCurrentMesh();
2722 if (!mesh) { brushCursorEl.style.display = 'none'; canvas.style.cursor = ''; return; }
2723 _raycaster.setFromCamera(_canvasNDC(e), getCamera());
2724 const hits = _raycaster.intersectObject(mesh);
2725 const frontHit = getFrontFaceHit(hits, mesh);
2726 if (!frontHit) { brushCursorEl.style.display = 'none'; canvas.style.cursor = ''; return; }
2727 canvas.style.cursor = 'none';
2728
2729 const hitPt = frontHit.point;
2730 const cam = getCamera();

Callers 2

applyLinkedValueFunction · 0.85
linkSliderFunction · 0.85

Calls 1

getInputPrecisionFunction · 0.85

Tested by

no test coverage detected