sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Bounding box of a nested solid

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 183 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      GWD
      last edited by

      Is there a way to get the 'real' bounding box of a nested solid? I need this bounding box to get the min z and the max z of the solid. But i need the real z value with all transformation. I tried to do the transformation to a point created from the max x,y,z value of the bounding box but this gives a wrong result. And it's not possible to do a transformation of a bounding box.

      1 Reply Last reply Reply Quote 0
      • honoluludesktopH Offline
        honoluludesktop
        last edited by

        What's a real bb? As far as I know, the bb is aligned to the world axis at the time of its creation. So the same geometry, oriented differently can have different bb. Creating components out of the same geometry at different orientations.
        Temp00.pngThe components rotated.
        Temp01.pngExploded then remade.
        Temp02.png

        1 Reply Last reply Reply Quote 0
        • honoluludesktopH Offline
          honoluludesktop
          last edited by

          @unknownuser said:

          .......... And it's not possible to do a transformation of a bounding box.

          There is a hack that can accomplish this. Save the component original transformation, transform the component (along with its bb), then transform its entities back to their original transformation (previously transformed bb remains). I did this once, but don't recall the exact procedure. Maybe someone here with more smarts can explain it better.

          1 Reply Last reply Reply Quote 0
          • G Offline
            GWD
            last edited by

            What i need is a quick check if the sectionplane cuts the solid. Because the .intersect_with is a very slow function i want first to check if solid wil be sectioned by the sectionplane to speed up the script. And the check with the bounding box works good except for nested solids. Anybody a tip for solving my problem?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement