Skip to content

Feature request: set clip style #10269

@NicolasRannou

Description

@NicolasRannou
Description of the problem

When clipping like in https://threejs.org/examples/webgl_clipping.html, it would be nice to be able to define the style of the clipping: highlight borders, fill intersection, etc.

I know there are some solutions out there ([1], [2]), but would be awesome to be able to set it as a clip property somehow.

My use case it to "highlight" the intersection of the mesh and the clipping plane, in order to overlap nicely the intersection with the clipping plane filled with a texture:
alt text

Which would be the best way to follow to achieve such an effect? (in a nice clean/efficient way?) I'd be happy to write a demo with some guidance...

[1] - http://stackoverflow.com/questions/37090942/how-to-render-clipped-surfaces-as-solid-objects/37093210#37093210
[2] - http://stackoverflow.com/questions/36557486/three-js-object-clipping/36558152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions