XbimWebUI icon indicating copy to clipboard operation
XbimWebUI copied to clipboard

InteractiveClipping plugin anomaly

Open theextremeandy opened this issue 4 years ago • 3 comments

Hi we are testing the InteractiveClipping plugin, with the sample SampleHouse model after positioning the line and clicking, the model disappears completely

we observed that in this typescript version there is no difference between the clippingPlaneA and clippingPlaneB functions and the clippingPlane function of the javascript version

can you please check on your work?

are there any suggestions to understand the reason for the anomaly?

Thanks in advance

Version of the xBIM Viewer: ^2.0.1-pre202103091921

theextremeandy avatar Mar 30 '21 13:03 theextremeandy

Hi...

This code works 4 me (interactive-clipping.ts line 124):

        //Compute normal in WCS
        var BA = vec3.subtract(vec3.create(), A, B);
        var BC = vec3.subtract(vec3.create(), C, B);
        var N = vec3.normalize(vec3.create(),vec3.cross(vec3.create(), BA, BC));
        //https://github.com/xBimTeam/XbimWebUI/issues/310

adam9000 avatar Apr 06 '21 18:04 adam9000

Hi Adam works for me too thank you very much andrea

On Tue, Apr 6, 2021 at 8:53 PM Adam Stefan Costa @.***> wrote:

Hi...

The above code works 4 me (interactive-clipping.ts):

    //Compute normal in WCS
    var BA = vec3.subtract(vec3.create(), A, B);
    var BC = vec3.subtract(vec3.create(), C, B);
    var N = vec3.normalize(vec3.create(),vec3.cross(vec3.create(), BA, BC));
    //https://github.com/xBimTeam/XbimWebUI/issues/310

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xBimTeam/XbimWebUI/issues/333#issuecomment-814361794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKRWMTA23OCIAMVE2D4KN3THNKBNANCNFSM42CABOVQ .

theextremeandy avatar Apr 07 '21 06:04 theextremeandy

You welcome Andrea!

Glad I can help you.

adam9000 avatar Apr 12 '21 20:04 adam9000