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

    Point at intersection of line with face?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    5 Posts 3 Posters 689 Views 3 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.
    • H Offline
      henriquebsoares
      last edited by

      Hello everyone!
      I've been looking around for ruby scripts to place construction points at the intersection of lines with faces but I've found nothing that would help. Does anyone know any tips on how to accomplish this?
      Many thanks! πŸ˜„

      Henrique

      1 Reply Last reply Reply Quote 0
      • Jean LemireJ Offline
        Jean Lemire
        last edited by

        Hi Henrique, hi folks.

        Draw a circle centered on the intersection of the line and the face.

        Rigth click the circle to get a contextual menu and choose "Point at center" in the contextual menu.

        Delete the circle.

        You are left with the required construction point.

        To get the "Point at center" choice in the contextual menu, you must have enabled the required extension in Menu Window --> Preferences --> Extensions. Check the box labeled "Ruby Script Example".

        Just ideas.

        Jean (Johnny) Lemire from Repentigny, Quebec, Canada.

        1 Reply Last reply Reply Quote 0
        • H Offline
          henriquebsoares
          last edited by

          Hello!
          Thanks for your idea, it's a start, but I can't make points for more than one circle or arc at a time, and I have too many points to plot.
          I'm actually trying to make an orthogonal grid terrain out of a TIN and was hoping to do this by intersecting regularly spaced lines with the TIN surface and then triangulating the resulting intersection points (with points_cloud_triangulation.rb from the Ruby Library Depot - http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm ) to create a new, more regular-meshed terrain.

          Thanks again! πŸ˜„

          1 Reply Last reply Reply Quote 0
          • plot-parisP Offline
            plot-paris
            last edited by

            you may want to have a look at a script of Didier Bur, the 'Terrain Reshaper'
            it is still quite buggy sometimes. but it may help with cleaning up your terrain a bit.

            if it doesn't work for you you could do it the manual way:

            • draw a vertical line and make a component
            • create an array with the spacing of the components as wide as you want your later terrain to be.
            • place the whole bunch of lines well above your terrain and use the 'drop' script to drop all the lines down onto the terrain
            • now select all the components, explode them and (while they are still selected) run the 'from contours' function of the sandbox tools
            • once you deleted all the now unnecessary lines you are left with a beautiful new terrain...
            1 Reply Last reply Reply Quote 0
            • H Offline
              henriquebsoares
              last edited by

              Excelent, thanks, your technique worked wonderfully!
              I've already tried Terrain Reshaper, yes, but I had quite large terrains and it was unable to retriangulate it correctly.
              Thanks again!! πŸ˜„
              Henrique

              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