sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Grid Search

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    24 Posts 7 Posters 574 Views 7 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Crossing lines made with the API don't auto-intersect - unlike the basic Sketchup setup.
      However, since they are in a group, so use something like.
      tr=Geom::Transformation.new() group.entities.intersect_with(true, tr, group.entities, tr, true, group.entities.to_a)

      TIG

      1 Reply Last reply Reply Quote 0
      • BoxB Offline
        Box
        last edited by

        Thanks for the explanation Trog.

        Tig on a side note, does that mean you could turn off auto intersect in normal life? Sometimes it would be nice to move a bunch of curves around and then only have them intersect when you have finished positioning them.

        1 Reply Last reply Reply Quote 0
        • T Offline
          Trogluddite
          last edited by

          Thanks for the code tips, TIG, I was about to ask someone how to make a collection of entities intersect with themselves using that method.
          So far, I have it working using a nested group which I later explode, which seems to work well enough - is there any advantage using 'intersect_with' compared to group.explode in this case? (i.e. a single collection of entities that must all intersect each other).

          1 Reply Last reply Reply Quote 0
          • M Offline
            mal
            last edited by

            Trogluddite!

            What a champ! Thats amazing what you've done. Thanks so much. The TileGrid plugin works perfectly, and the instructions you gave to install it are idiot-proof! Just what I need πŸ˜„

            Thanks also to sdmitch, thom thom and tig for the tips they gave you. πŸ‘ Trog I think you're ready to join the Axis of Awesome!

            Thanks to you too Box. Your input on this was very much appreciated.

            Cheers

            Mal

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

            Advertisement