LDCad geometry - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html) +--- Thread: LDCad geometry (/thread-28207.html) |
LDCad geometry - Paweł Turalski - 2024-04-13 Hi everyone! In last months I use LDCad a lot and I can use it quite fast, but I still have some troubles in geometry connections. The first and the main I would like to focus is the isosceles trapezoid. I know there are some tools and tricks, I know how to use the traingle angles to make a closed triangle, but for trapezoid this function does not make any sense. The goal is to connect the pink pins: sample.png (Size: 45.46 KB / Downloads: 95) Now how can I use the existng functions to do it? Close the triangle to find the middle point? This is the first step I was thinking about... triangle 1.png (Size: 46.27 KB / Downloads: 95) triangle 2.png (Size: 31.57 KB / Downloads: 95) This connection is very useful in many models with various lenghts. Here is what I need it for: 42152 manual.png (Size: 80.78 KB / Downloads: 95) RE: LDCad geometry - Roland Melkert - 2024-04-13 (2024-04-13, 18:56)Paweł Turalski Wrote: This connection is very useful in many models with various lenghts. Here is what I need it for: There is currently no hard-coded helper for this, but it should be possible to make something using a macro. The manual solution would be to position the smaller beam at the correct place using pythagoras. After that you can get the bottom trapezium angles using the angle helper. Example: Assuming the two beams are parallel on the x axis the smaller beam,s y coordinate should differ by √(80^2−20^2) = 77.4597 RE: LDCad geometry - Paweł Turalski - 2024-04-13 Ok found it! And I used only triangle tool yay! Others, note it please You already know how many studs should it be tilted, the pin should be "somewhere" on the orange axle: Add helper mirrored arm/lenght on the axis: Construct a triangle, in this case the angle is 14.47751 - you can skip the helper: Because you know the angle, tilt the opposite arm but with negative value, you can also delete the helper: Move the upper base to close the shape: I really hope it will be useful for other users in different models And the plane problem has been solved RE: LDCad geometry - David Manley - 2024-04-13 (2024-04-13, 21:43)Paweł Turalski Wrote: Ok found it! And I used only triangle tool yay! For your future reference, you may want to download the LUA scripts from this thread (or more quickly here is the link to the post within the thread that references the most recent download). The scripts provide a means to rotate either one or parts by pointing-and-clicking rather than calculating rotation angles. Regards, David |