STL/glTF model trimming on the browser

Are there libraries for stl or glTF model manipulation on the browser?

I am not talking a full blown model editor (like Blender) on the browser, but a more barebones functionality like trimmming a model.

Imagine if you had a straight line, that would intersect with the model, and would remove the intersected portion.

Does a library like that exists?

If yes, do you know what would it take to build something like this? I mentioned two files formats, stl and glTF. Is it possible to removed the tesselating triangles that are intersecting with my hypothetical tool?

Are there functions or libraries that support such actions?

May be related:

As far as I can get that’s what you are looking for i guess
https://threejs.org/examples/?q=stencil#webgl_clipping_stencil

Stencils are useful for scraping the objects

1 Like