[req] fixed area plugin
-
This would be a great tool for planning and design based on prescribed areas for offices, etc. User could find the appropriate proportions of the space for best fit and usability. A long time ago, I stumbled upon something in a book relating to this which the author called the Doctrine of Fluctions??(not fluctuation) It had to do with analysis of fixed areas with variable proportions. I cannot seem to find anything on Google about it, however.
-
There is similar function in autocad dealing with parametric constraints. Constraints can be applied to edges to keep them, for example, always perpendicular or parallel when an object is stretched, or to keep a one object a set distance from a radius point or edge of a second object when the overall component is scaled. These functions may be more robust than what you're requesting, but they are very useful for mechanical designs and other things where relationship of elements is very important. Maybe something similar could be created in ruby, though I haven't the foggiest idea how. Perhaps someone will find the parallel to these existing CAD tools useful.
-
Ok, I'm back, but not with the solution. I think Monsieur Bur is eminently more qualified, if he sees fit. I was just going to say that changing the spelling of the word to "fluxion" did I find that Sir Isaac Newton coined this term in his independent and almost simultaneous development of calculus. Liebniz was the other guy and he got the credit. Newton only devised calculus as a tool to develop his Laws of Thermodynamics. Sorry, this is way off topic, rc5.
-
Hi,
I haven't got much time to do it but here is what I achieved so far. A tool that let you click on a side of a square, rectangle or parallelogram and that let you click another point to define the scale value (or enter it in the VCB) and preserves the area of the selected face.
Still some bugs to fix but could be released in a week or so.
Regards, -
Since I have a lot more free time than Didier, here is my solution to the problem. The face must be a four sided figure with opposite sides of equal length. Run plugin, select face, select edge to be moved. Point to new location or keyin dimension desired. Left click to finish.
-
Hi,
Good job sdmitch. Since our scripts are almost the same, I'll stop mine.
Sometimes the bug you can see on the image below appears. It's related to the order of the vertices of the face I suppose, because I was facing it too. Apparently face vertices in SketchUp are not always stored clockwise ?
-
@didier bur said:
Apparently face vertices in SketchUp are not always stored clockwise ?
Are you using
face.outer_loop.vertices?
Vertices fromLoop
objects should always be in order.
Also, if you get position from edges, check if the edge is reversed in the face (edge.reversed_in?( face )
) to check if the vertices in the edge runs in the direction of the face's loop. -
@unknownuser said:
Apparently face vertices in SketchUp are not always stored clockwise ?
Didier, No they are not. It seems to depend on how the rectangle is defined. That's why, as thomthom suggests, I used the
@unknownuser said:edge.reversed_in?
to check for that. -
And you still get such bug?
-
Advertisement