Over the years different programmers have added a snapping feature to their programs. This thread aims to work out a standard which they can adopted or modified to their needs.
due to other things which I have to do and I just do in my free-time [ I play the Cello for about one year... ], I intend to make a little LDraw development break for about a month, but I will still read the forums from time to time.
Just for your information!
# This 2.54 mean about centimeter. For DPI parameter use screen.physicalDpiX or screen.physicalDpiY.
def convert_pixels_to_cms(pixels, dpi):
return (pixels / dpi) * 2.54
[quote Small Car Official Set 3177]
Source brickset.com/sets/3177-1/Small-Car
Minimum -45.00 -92.00 -90.00
Maximum 45.00 23.00 70.00
Perimeter 90x115x169
[/quote]
First question is how translate length from Z axis to physical metric.
Second question is when you have LDU how get width and height in physical metric.
I know about LDCalc but we work in this scenario with 3D without scaling and without transformation.
Hope this is OK to post here, if not my apologies.
Here is a thread for LEGO parts that you wish existed, but don't currently.
Please feel free to post DAT files, or if you don't have skill with LDraw then you can post images instead.
My first submission is a 1X1 pyramid sloped at 75 degrees (I think that was the angle)
It does look like LEGO will be coming out with a somewhat similar piece though sloped at 31 degrees.
So in working on adding some part snapping info I've got some questions about guidelines. Maybe it's the perfectionist in me and I'm over thinking this, but I'm not sure about the "correct" way to add snapping meta to a couple parts I've run across. I'm also pretty new to all this, so maybe it's spelled out somewhere else and I just haven't run across it yet. Anyway, two examples below with questions about how to "correctly" add the snap meta.
First Example:
Above is Part 60849, Minifig Hose Nozzle with Side String Hole Simplified. For this piece, it would make sense to stop a piece from sliding past the trigger on the nozzle and the handle, highlighted in green in the picture on the left. However, if you configure it this way and as you can see in the middle picture, the red area has no snap meta and parts will not snap to that area. Clips should, however, be able to snap to the red area. If I modify the part to allow clips to snap to the red area, then that allows parts to slide past the handle and end up in an "illegal" (overlapping) position, as in the picture on the right.
Second Example:
Same as the first example, but with part 3959, Minifig Torch. If you want to prevent pieces from sliding past the handle, as in the top set of pics, you'll end up with an area (see red square on second row) where there's no snap meta and pieces (clips) will not snap to that location. However, clips should be able to snap to the red area.
Also, as you can see in the bottom set of pictures, depending on the piece, one could end up colliding with the nozzle and end up in an overlap position.
So, my questions...
It would seem that in order to get clips to snap in the red area you would also have to allow pieces to end up in positions where they overlap. Same goes for allowing all parts to travel the full distance of the handle in the second example. Is this how it should be done (i.e. allow overlap)? Or, is there a way to add meta to allow all of these combinations without allowing overlap? Are there any guidelines I should be following in situations like this? Am I over thinking this?
The 2015-01 LDraw Parts Update has been now been released. This adds 502 new files to the core library, including 338 new parts and 34 new primitives. This update includes an unusually large, but welcome, proportion of improved and corrected parts. This is largely due to the work of Roland Melkert with the 'libfix version' of LDCad. Significant effort has also been expended by Magnus Forsberg to inline dithered colour subfiles (a now obsolete technique). Most of the obsoleted subfiles will be released in a future update.
Thanks are once again due to all the part authors who created or corrected parts for this release. The reviewers also play an important role in keeping files moving through the tracker and deserve just as much credit. Whilst I can see the attraction of working on new parts, it is slightly disappointing to me that the number of parts held for further work is not decreasing.
With the main LDraw website currently out of commission, you can preview the new parts in 2015-01 here, download the zip-file update here or download the Windows install package here. Alternatively you can use the LDView menu option File | Check for Library Updates... to install the update.
Once again, no new "Physical colour" parts are included in this update as we still intend to move these to a separate section of the LDraw file structure, to more closely fit with the "DesignID" vs. "ItemID" concept. A number of such parts on the Parts Tracker are awaiting admin review, but will not be released until this concept has been implemented. I am conscious that support for texture maps also needs to be added to the Parts Tracker and have that on my to-do list.
This update has only just kept pace with the number of new files submitted since Parts Update 2014-02 was released in December 2014. I'd like to repeat my appeal for authors and reviewers to try and reduce the backlog of held or insufficiently reviewed parts. Let's see if we can certify enough of these for the traditional end-of-year holiday season update.
It took over a year since 1.4 Beta 1 but I'm hoping it is worth the wait / time spend.
For those who somehow missed the massive 1.5 Alpha thread on the forum, the major new features of 1.5 are:
Detachable color and part bin windows, of whom you can have multiple instances or none at all.
Extensive (optional) LDraw source window, with full nested editing support and a growing selection of line type property editing dialogs.
LDraw file reloading and external changes detection, and you can finally close files now.
Library part (shadow) editing, mostly intended for myself in order to add part snapping info so it is disabled by default and far from a full LDraw part editing solution.
Compressed (e.g. complete.zip) library support.
Single instance protection.
There are also loads of minor improvements etc, some of which are:
Better scrollbar handling
Bin window(s) can be used at a smaller width.
Part bin windows can render vertical or horizontal orientated.
And many more tweaks and adjustments etc.
I also added almost 600 new part snapping files to the default shadow library including info for doors, windows, windscreens, fences, bars, antenna's, plane parts, boat parts, minifig hats/hair and minifig accessories. Do note some (especially the doors and windows) need some additional work as I'm not sure how they behave/fit in real life any help on that is welcome.
Here are a couple of screen shots showing possible window configurations.
The windows setup version can be used to upgrade any previous version including ones installed by the AIOI.
I will update the documentation on my website to reflect the newest version in the next couple of days / week. For now the only thing you might need to know is how to dock windows. This is done by holding down 'ctrl' after you position the loose window roughly at the place you want it to go.
Lastly there might still be a problem with occasional crashes during closing the program at seemingly random intervals. I have tried a number of things to fix this and I haven't had a crash since the last adjustment myself, but as it might sometimes take days between occurrences I'm not sure it's really fixed.
So if you do have a crash on close down, please send me the contents of the logs folder as I added some extra messages to help pinpoint the crash location. The crash it self is relatively innocent as it will only result in a failure to write/update configuration files as it happens fairly late in the shutdown procedure.
Hope you like the new major version, any feedback / questions / suggestions are welcome.