Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 12,495
» Latest member: Richard B
» Forum threads: 5,481
» Forum posts: 47,185
Full Statistics
|
Online Users |
There are currently 511 online users. » 1 Member(s) | 505 Guest(s) Applebot, Baidu, Bing, Google, Yandex, Rene Rechthaler
|
Latest Threads |
Welcome to new parts auth...
Forum: Parts Tracker Discussion
Last Post: Willy Tschager
Yesterday, 8:12
» Replies: 5
» Views: 428
|
Plug34.dat and related pa...
Forum: Parts Authoring
Last Post: Javier Orquera
2024-03-27, 21:09
» Replies: 10
» Views: 3,028
|
Technic 1982
Forum: Official Models
Last Post: Takeshi Takahashi
2024-03-27, 16:09
» Replies: 1
» Views: 494
|
Official Part Fix Submiss...
Forum: Parts Tracker Discussion
Last Post: Orion Pobursky
2024-03-27, 4:35
» Replies: 6
» Views: 268
|
[LDPE] 1.8.77 Released (a...
Forum: Parts Author Tools
Last Post: Philippe Hurbain
2024-03-26, 19:53
» Replies: 1
» Views: 108
|
LDRAW Wiki Logo broken
Forum: Website Suggestions/Requests/Discussion
Last Post: Steffen
2024-03-26, 15:03
» Replies: 2
» Views: 66
|
Technic 2002
Forum: Official Models
Last Post: aefferen
2024-03-26, 11:03
» Replies: 3
» Views: 2,799
|
Sesame Street (21324) Min...
Forum: Parts Authoring
Last Post: Steffen
2024-03-26, 0:58
» Replies: 8
» Views: 351
|
Lego Technic 1981
Forum: Official Models
Last Post: N. W. Perry
2024-03-25, 23:08
» Replies: 18
» Views: 18,448
|
linking to a specific par...
Forum: Website Suggestions/Requests/Discussion
Last Post: Steffen
2024-03-25, 22:32
» Replies: 2
» Views: 93
|
|
|
LDraw Torus Generator |
Posted by: Kevin - 2017-06-06, 9:04 - Forum: Parts Author Tools
- Replies (37)
|
|
UPDATE: To save scrolling all the way through this thread, here is the latest version of my LDraw Torus Generator, converted to a web page and hosted on the Google Cloud Platform: http://ldtorgen.appspot.com/
-----
I've been using 3D arrows for a while in the instructions I create, assembling the components from LDraw primitives. Recently I've wanted to create curved arrows, but I've found there aren't enough existing LDraw torus primitives to give me the fine control over the major and minor radii that I need. And there are even fewer high-definition torus primitives--necessary to create smoothly-curved arrows when rendering with POV-Ray.
I built a simple spreadsheet to generate the specific torus sections I needed, then generalized it to make it more useful. I've uploaded the spreadsheet to Google Docs so that anyone can use it. It generates the quadrilaterals and all conditional lines for each section.
LDraw Torus Generator
Simply enter the number of sections in a full torus (LDraw uses 16 for low-def and 48 for high-def), the major radius (the radius of the full torus), and the minor radius (radius of a cross-section) in the green cells. The spreadsheet generates a complete .dat file with a file name consistent with the LDraw torus naming standard. Then copy the blue cells to a file in your LDraw directory or a new model in your MPD file.
The torus segments are generated with 16-sided cross sections aligned for compatibility with existing disc and edge primitives. This has provided sufficient resolution for my purposes, even with POV-Ray rendering. I may expand to include 48-sided cross sections in the next iteration.
To generate a complete arrow, you will need to copy and rotate the torus segment to build the desired arc, then add a cone, two discs, and three circles of edges.
I'd appreciate any feedback or recommendations for improvements.
Thank you.
Kevin
|
|
|
LDDP Relevancy |
Posted by: Orion Pobursky - 2017-06-02, 18:54 - Forum: Parts Author Tools
- Replies (6)
|
|
With the advent of LDPE is LDDP still relevant? I've had a bug to start development again but if LDPE has completely supplanted LDDP functionality then I'll redirect my effort to other LDraw related projects.
|
|
|
|