Point at intersection of line with face?
-
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
-
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.
-
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!
-
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...
-
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
Advertisement