Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can ClippingPlane's incision be solid? #474

Open
AHSss opened this issue Oct 13, 2024 · 3 comments
Open

Can ClippingPlane's incision be solid? #474

AHSss opened this issue Oct 13, 2024 · 3 comments

Comments

@AHSss
Copy link

AHSss commented Oct 13, 2024

Expected behavior:

When I used the InteractiveClippingPlane,I want to achieve the following effect.
image
it's incision is solid.

Actual behavior or exception details:

But InteractiveClippingPlane's defualt incision effect is open. Can InteractiveClippingPlane's incision be solid?

Version of the xBIM Viewer:

2.1.0-pre202409212148

Minimal code (or steps) to reproduce the issue:

    const clipplan = new InteractiveClippingPlane();
    viewer.addPlugin(clipplan);
    plan.value.stopped = false

Minimal file to reproduce the issue:

(IFC files need to be zipped to be uploaded. Than just drag & drop here)
@martin1cerny @andyward

@krosoftware
Copy link

Without opening a new topic - how do you even define a clippingPlane?
Is there an example?
Thanks.

@andyward
Copy link
Member

andyward commented Jan 6, 2025

Programatically: there are a few ways depending on whether you use one or a pair of planes, or a section box:

See docs:

https://docs.xbim.net/XbimWebUI/classes/Viewer.html#setClippingPlaneA
https://docs.xbim.net/XbimWebUI/classes/SectionBox.html

There's also a viewer Plugin that lets you set clipping planes via an interactive widget: e.g. in the featured-viewer example

@krosoftware
Copy link

Awesome, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants