Skip to main content
Glama

MCP 3D Printer Server

TIFFLoader.js572 B
import { DataTextureLoader, LinearFilter, LinearMipmapLinearFilter } from 'three'; import UTIF from '../libs/utif.module.js'; class TIFFLoader extends DataTextureLoader { constructor( manager ) { super( manager ); } parse( buffer ) { const ifds = UTIF.decode( buffer ); UTIF.decodeImage( buffer, ifds[ 0 ] ); const rgba = UTIF.toRGBA8( ifds[ 0 ] ); return { width: ifds[ 0 ].width, height: ifds[ 0 ].height, data: rgba, flipY: true, magFilter: LinearFilter, minFilter: LinearMipmapLinearFilter }; } } export { TIFFLoader };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/mcp-3D-printer-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server