Fill a mesh with solid materials

how i can fill a mesh with solid materials, for example the inside of an STL file?

hello,
i mean fill in the empty space with solid materials after using clipping planes.

Like so?

image

You can already do this now with the stencil test but it might be easier if the following PR gets merged. The screenshot is from the new example the PR adds.

https://github.com/mrdoob/three.js/pull/15611

2 Likes

yes like this, what about PR get merged examples

Caps are rendered with sharp pixels. Anti-aliasing does not seem to work. Specifying antialias:true on WebGLRenderer is not enough.

Is there any way of doing this?

It seems the owner of the PR already posted an answer on your question: https://github.com/mrdoob/three.js/pull/15611#issuecomment-473480550