Skip to content
  • Categories
Collapse
Solibri Society Forum
  1. Home
  2. General Discussion
  3. Is there a way to higlight clash volumes?

Is there a way to higlight clash volumes?

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 677 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mats_KnutssonM Offline
    Mats_KnutssonM Offline
    Mats_Knutsson
    wrote on last edited by
    #1

    …and make the rest transparent in one colour? Rule checkining in all its glory but visual check can be a very good alternative and highlighting the volume where models/component clash would be helpful. Is it possible?

    1 Reply Last reply
    5
    • john.lippJ Offline
      john.lippJ Offline
      john.lipp
      wrote on last edited by
      #2

      Hi @Mats_Knutsson

      You can use the intersections of the TriangleMesh of the components that clash. I modified the example https://solibri.github.io/Developer-Platform/9.12.9/clashDetectionExample.html with the following:

      .withVisualization(visualization -> {
        visualization.addComponent(source, transparency);
        visualization.addComponent(target, transparency);
        
        ARGBColor intersectionColor = ARGBColor.create(255, 0, 0, 255);
        TriangleMesh intersectionMesh = source.getTriangleMesh().intersection(target.getTriangleMesh());
        visualization.addVisualizationItem(Mesh.create(intersectionColor, intersectionMesh.toTriangleCollection()));
      });
      
      

      Results in the following visualizations:
      67931c65-d93a-4c8b-af17-f99a4272c074-image.png

      Mats_KnutssonM 1 Reply Last reply
      1
      • Mats_KnutssonM Offline
        Mats_KnutssonM Offline
        Mats_Knutsson
        replied to john.lipp on last edited by
        #3

        @john-lipp I’m not worthy…

        1 Reply Last reply
        0

        Copyright © 2025 Solibri Inc. | Powered by NodeBB

        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories