It is currently Thu Sep 02, 2010 9:56 pm
@@max_weld_distance=1.to_l if not @@max_weld_distancedefaults = [@@max_weld_distance]Well, as I see it, I'd usually use the move tool to move a single point to another single point. This script was made for those areas with a bunch of points, that are mostly unnecessary, and you just want to make them all into a single point.Ken wrote:BTM
I have tried you script and find it useful. However, is it necessary to pick a distance? Why not, pick point A, a point B, and have point A move to point B.
Thanks for all your work
Ken
Not yet, sorry.mitcorb wrote:…you construct a line or curve, or loop along which you can snap nearby vertices to it?
Pilou, je ne sais pas exactement ce que tu veux dire, mais je pense que tu demande si c’est possible de changer la code, pour qu’il puisse attacher des points proches à une ligne sélectionner. Sinon, peux-tu expliquer plus?Pilou wrote:Does it possible to make the same but collapse points on an axe (X,Y,Z) or on a straight line given?
I've tried some similar things, but I always seem to get the error that @@max_weld_distance is an 'uninitialized class variable'.TIG wrote:To keep 'max_weld_distance' set during a session call it @@max_weld_distance, on activate set it to 1" at the start if it's not set in the formand in the inputbox use
- Code: Select all
@@max_weld_distance=1.to_l if not @@max_weld_distanceto use it...
- Code: Select all
defaults = [@@max_weld_distance]
I'll try.Jim wrote:…make it highlight each point within the weld distance so you know what is about to happen when you click.
@@max_weld_distance=1.to_l if not @@max_weld_distancemitcorb wrote:BTM:
I have not tried the ruby yet, but I have some questions.
Is there an upper and lower limit to the selection radius?
From the description, this could be used as a seam stitcher, maybe? In other words, you construct a line or curve, or loop along which you can snap nearby vertices to it?
Is there a practical application for that type of functionality?
dist = pos.distance @mouse_point
if dist <= @max_weld_distance
vec = p.position.vector_to @mouse_point
@entities.transform_entities(vec,p)
end
enddist = pos.distance @mouse_point
if dist <= @max_weld_distance
t = Geom::Transformation.new(@mouse_point)
@entities.transform_entities(t,p)
end
end
Users browsing this forum: Google Adsense Bot, MSN Bot and 2 guests