| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,801
» Latest member: makabaka
» Forum threads: 6,464
» Forum posts: 53,566
Full Statistics
|
| Online Users |
There are currently 221 online users. » 0 Member(s) | 214 Guest(s) Applebot, Baidu, Bing, Facebook, Google, Twitter, Yandex
|
| Latest Threads |
Technic 1993
Forum: Official Models
Last Post: Takeshi Takahashi
3 hours ago
» Replies: 17
» Views: 11,798
|
LDView 4.7 Released
Forum: LDraw Editors and Viewers
Last Post: Takeshi Takahashi
3 hours ago
» Replies: 6
» Views: 1,170
|
Teenage Mutant Ninja Turt...
Forum: Official Models
Last Post: Chris Böhnke
9 hours ago
» Replies: 3
» Views: 1,083
|
4559-1 Cargo Railway Trai...
Forum: Official Models
Last Post: Chris Böhnke
10 hours ago
» Replies: 1
» Views: 124
|
Pokemon
Forum: Official Models
Last Post: Florent Faramond
2026-04-15, 19:50
» Replies: 18
» Views: 2,950
|
Wheels needed for Set 772...
Forum: Part Requests
Last Post: Philippe Hurbain
2026-04-15, 17:17
» Replies: 9
» Views: 1,018
|
Ideas 2026
Forum: Official Models
Last Post: Philippe Hurbain
2026-04-15, 10:01
» Replies: 1
» Views: 346
|
Some Parts id like for MO...
Forum: Part Requests
Last Post: Chris Böhnke
2026-04-15, 0:26
» Replies: 3
» Views: 548
|
5687pb01 Dragonborn Palad...
Forum: Part Requests
Last Post: Hylian Waffle
2026-04-14, 1:27
» Replies: 4
» Views: 536
|
Request for new primitive...
Forum: Parts Authoring
Last Post: Mark Kennedy
2026-04-13, 20:10
» Replies: 24
» Views: 2,794
|
|
|
| Advanced rotation techniques |
|
Posted by: N. W. Perry - 2022-07-22, 13:40 - Forum: LDraw Editors and Viewers
- Replies (12)
|
 |
I feel like I'm under-using LDCad's advanced rotation capabilities. But instead of a question, I think it's easier to just give an example—and sort of a challenge. 
In the attached test file I have an oddly-shaped piece that I want to rest on the ground, here represented by a nice big tile. This part has four lower extremities, all with different y-values, and to be realistic it would need to rest against the lowest three of them. What's the best way to do this using LDCad?
test.ldr (Size: 173 bytes / Downloads: 2)
Here's how I would approach it:
- Find the lowest point and set it as the rotation center. You could use a helper part or a marker, but how do you find the point itself? Easiest way would be if you could directly select the vertex—LDCad can't do this, but LDPE can.
- Find the next lowest point the same way, then using more helper parts and some trigonometry (or the handy, but unofficial, right angle calc script), rotate the part so this hits the ground.
- For the final rotation, select the third low point, and rotate around a vector formed by the first two points. LDCad does allow custom vector rotation—but how do I find the vector and enter it into the rotation dialog?
Even better would be if you could select all three points at once and use them to define a plane, then set the part's absolute rotation just once so that this plane matches the ground plane. This could probably be scripted, but there's still the problem of selecting the points in the first place.
Is there a better way? How would you approach this problem?
(Can't attach the .lua file for the angle script, but here it is
Code: function onRun()
local sel=ldc.selection()
if sel:getRefCount()<3 then
return
end
local a=sel:getRef(1):getPos()
local b=sel:getRef(2):getPos()
local c=sel:getRef(3):getPos()
local ba=a-b
local bc=c-b
local n=bc:getCross(ba)
n:normalize()
local bb1=n:getSignedAngle(ba, bc)
local bb2=math.deg(math.acos(bc:getLength()/ba:getLength()))
local angle=-(bb1-bb2)
ldc.setClipboardText(angle)
ldc.dialog.runMessage(angle)
end
function register()
local macro=ldc.macro('Right angle rotation calc')
macro:setEvent('run', 'onRun')
end
register()
|
|
|
| merge brick |
|
Posted by: HWQ - 2022-07-19, 8:11 - Forum: LDraw File Processing and Conversion
- Replies (2)
|
 |
I created a model in software using 1X1plate I created a model in software using 1X1plate
Is there a way or a script (preferably a script..) to quickly convert or convert to 1x2 1x3 1x4 tiles
thanks
|
|
|
| LDraw.org 2022-04 Parts Update Now Available |
|
Posted by: Orion Pobursky - 2022-07-19, 4:42 - Forum: LDraw.org Announcements
- Replies (6)
|
 |
The 2022-04 LDraw Parts Update has been released. This update adds 631 new files to the core library, including 391 new parts and 20 new primitives.
Thanks are due to all the part authors who created or corrected parts for this release. The small, but dedicated, band of reviewers also play an important role in keeping files moving through the Parts Tracker and deserve just as much credit. This update wouldn't have been possible without their dedication and attention to detail.
You can preview the new parts in 2022-04 here, and download the zip-file update or Windows install package here. Alternatively you can use the LDView menu option File | Check for Library Updates... to install the update.
Orion Pobursky
LDraw.org Parts Library Admin
|
|
|
|