LDCad Part Snapping missing/errors


RE: Part Snapping missing/errors
4599a tap does not snap to 4740 dish 2x2 inverted at the top, does work at the bottom?

   

I was trying to achieve the one with the red arrows to create a lamp :-)
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Part Snapping missing/errors
(2023-03-24, 6:51)Jaco van der Molen Wrote: 4599a tap does not snap to 4740 dish 2x2 inverted at the top, does work at the bottom?

The hole was capped for some reason, fix:
Code:
0 LDCad shadow info for "~Dish  2 x  2 Inverted without Convex Surface"

0 Author: LDCad Shadow Library
0 !LICENSE CC BY-SA 4.0, see LICENSE.md

0 !HISTORY 2015-01-24 {Roland Melkert} Initial info for s\4740s01.dat
0 !HISTORY 2023-03-24 {Roland Melkert} Fixed antistud

0 !LDCAD SNAP_CYL [gender=F] [caps=none] [secs=R 6 5.3   R 4 6.7] [slide=true] [pos=0 8 0]
0 !LDCAD SNAP_CYL [gender=M] [caps=one] [secs=R 20 2] [pos=0 6 0] [ori=1 0 0 0 -1 0 0 0 -1]
Reply
RE: Part Snapping missing/errors
44861 is missing info at the bottom like a normal 1x2 plate for 2 studs.

Add 0 !LDCAD SNAP_INCL [ref=3023.dat] ?
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Part Snapping missing/errors
79389 Bracket 1x1-2x1 down is missing info at the bottom of the 1x1 plate part

Could be
Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 0]

derived from 36841

Its couterpart bracket 1x1-2x1 up 73825 is missing this connection info too.
Could be:
Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 0]

derived from 36840
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Part Snapping missing/errors
(2023-03-23, 18:30)Roland Melkert Wrote: Adding it to the new pin primitive should fix it for all in one go.

Code:
0 LDCad shadow info for "Technic Friction Pin 1.0 with Base Collar and Small Rectangular Centre Hole"

0 Author: LDCad Shadow Library
0 !LICENSE CC BY-SA 4.0, see LICENSE.md

0 !HISTORY 2023-03-23 {Roland Melkert} Initial info for confric11.dat

0 !LDCAD SNAP_CYL [ID=fpin11] [gender=M] [caps=one] [secs=R 8 2   R 6 16   _L 6.25 2]

Hello,

The same goes for 'confric10' I guess.
Do I have to open a GIT issue?
Reply
RE: Part Snapping missing/errors
Hello,

87079: Snaps with the stud at the midlle are missing.

I added this line in 87079s01.dat:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 8 0] [grid=C 3 C 1 20 20]


   
Reply
RE: Part Snapping missing/errors
44861: Snaps are missing.

I added for test this line in 44861.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 0] [grid=C 2 1 20 0]
Reply
RE: Part Snapping missing/errors
79194: Snaps are missing.

I added for test this line in 79194.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=one] [secs=R 4 20] [pos=10 10 0] [ori=0 1 0 -1 0 0 0 0 1]
Reply
RE: Part Snapping missing/errors
Does any Connectivity for 4mm bars (10LDU diameter) exist? Maybe for the floating boat hulls and the weighed keel tab.
Reply
RE: Part Snapping missing/errors
61332: Snaps are missing.

I added for test this line in 61332.dat, it seems to work:

Code:
0 !LDCAD SNAP_INCL [ref=3673.dat]
Reply
RE: Part Snapping missing/errors
78258: Snaps are missing.

I added for test this line in 78258.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 4 16   R 6 8   R 4 16] [slide=true] [pos=0 20 0]
Reply
RE: Part Snapping missing/errors
86876: Snaps are missing.

I added for test this line in 86876.dat, it seems to work:

Code:
0 !LDCAD SNAP_INCL [ref=s\3004s01.dat]
Reply
RE: Part Snapping missing/errors
69729: Snaps are missing.

I added for test this line in 69729s01.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 8 0] [grid=C 6 C 2 20 20]
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 8 0] [grid=C 5 C 1 20 20]
Reply
RE: Part Snapping missing/errors
(2023-04-18, 6:03)Florent Faramond Wrote: The same goes for 'confric10' I guess.
Do I have to open a GIT issue?

I'd prefer to use this thread as the main contact point.
Reply
RE: Part Snapping missing/errors
(2023-04-18, 16:01)Rene Rechthaler Wrote: Does any Connectivity for 4mm bars (10LDU diameter) exist? Maybe for the floating boat hulls and the weighed keel tab.

Any pin using a 10ldu male cylinder meta should snap to it, if its counter part has 10ldu female ones.

Not sure how many parts have the appropriate meta information in the current shadow though.
Reply
RE: Part Snapping missing/errors
(2023-04-20, 18:47)Roland Melkert Wrote: Any pin using a 10ldu male cylinder meta should snap to it, if its counter part has 10ldu female ones.

Not sure how many parts have the appropriate meta information in the current shadow though.

Do partial cylinders also count? My motor has only 2x 1-8cylo in the front...

And the boatside pegs are too short, thats why I defined the connectivity (is that ok?)
Reply
RE: Part Snapping missing/errors
(2023-04-20, 19:05)Rene Rechthaler Wrote: Do partial cylinders also count? My motor has only 2x 1-8cylo in the front...

And the boatside pegs are too short, thats why I defined the connectivity (is that ok?)

LDCad uses pattern matching for its snapping like keys and keyholes.

So it should snap, or slide depending on meta options.

Which part is this?
Reply
RE: Part Snapping missing/errors
(2023-04-20, 19:10)Roland Melkert Wrote: LDCad uses pattern matching for its snapping like keys and keyholes.

So it should snap, or slide depending on meta options.

Which part is this?

t1210 (https://library.ldraw.org/tracker/31095)

connects to the floating boat hulls, but except for the weighed keel with peg these are too short to completely fit.

And its too rigid to snap, they get slid on.
Reply
RE: Part Snapping missing/errors
(2023-04-20, 19:52)Rene Rechthaler Wrote: t1210 (https://library.ldraw.org/tracker/31095)

connects to the floating boat hulls, but except for the weighed keel with peg these are too short to completely fit.

And its too rigid to snap, they get slid on.

Not sure how this works in real-life, but it might be better/easier to use a generic shape meta instead.

For example:
PHP Code:
<?php 
0
!LDCAD SNAP_GEN [group=mabuchi] [gender=F] [bounding=box 5 5 30] [pos=0 -37 30]

And a "gender=M" counter part on the matching boat parts.
Reply
RE: Part Snapping missing/errors
(2023-04-20, 20:06)Roland Melkert Wrote: Not sure how this works in real-life, but it might be better/easier to use a generic shape meta instead.

For example:
PHP Code:
<?php 
0
!LDCAD SNAP_GEN [group=mabuchi] [gender=F] [bounding=box 5 5 30] [pos=0 -37 30]

And a "gender=M" counter part on the matching boat parts.
ah thanks, the motor connector works like a very long clip on a ship-sided bar, too rigid to clip but possible to slide in from the back.

Motor connector starts at 0 -37 0 and ends at 0 -37 60.

Do these connectors snap center-center or start-start?
Reply
RE: Part Snapping missing/errors
(2023-04-21, 14:05)Rene Rechthaler Wrote: ah thanks, the motor connector works like a very long clip on a ship-sided bar, too rigid to clip but possible to slide in from the back.

Motor connector starts at 0 -37 0 and ends at 0 -37 60.

Do these connectors snap center-center or start-start?

The generic box example will snap centre to centre forcing a matching orientation.

Sounds like this needs a clip meta with forced orientation. This is not an option (yet Smile )

I might add a 'U' variant to the CYL shape kind in 1.7 Beta 1 as it is relatively easy to implement.

But for now you can fake it by using squire f/m CYL metas which will allow it to slide, but it would allow this in 4 different orientations (like axles).
Reply
RE: Part Snapping missing/errors
What is the difference between a pin type and a stud type connection (when viewed in connection specs)?

This is more like a completely fixed connection like the rail connectors...
Reply
RE: Part Snapping missing/errors
(2023-04-22, 9:30)Rene Rechthaler Wrote: What is the difference between a pin type and a stud type connection (when viewed in connection specs)?

This is more like a completely fixed connection like the rail connectors...

The only difference is their pattern (pin has ldu 8, 6, 6.25 and stud is just 6)

The reason pins don't snap to, eg, anti-studs is because there is no room for the pin to 'click' (the 6.25 can compress to 6 as indicated by 'L'  but must be 6.25 at rest).
Reply
RE: Part Snapping missing/errors
42924: Snaps are missing.

I added for test this line in 42924.dat, it seems to work:

Code:
0 !LDCAD SNAP_INCL [ref=6558.dat]
Reply
RE: Part Snapping missing/errors
32064c: Snaps are missing.

I added for test this line in 32064c.dat, it seems to work:

Code:
0 !LDCAD SNAP_INCL [ref=32064b.dat]
Reply
RE: Part Snapping missing/errors
73831: Snaps are missing.

I added for test this line in 73831.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 10] [grid=C 3 1 20 0]
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 -10] [grid=C 2 1 40 0]
Reply
RE: Part Snapping missing/errors
71752: Snaps are missing.

I added for test this line in 71752.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 10] [pos=0 16 0] [grid=C 2 C 2 20 20]
Reply
RE: Part Snapping missing/errors
1126s01: Snaps are missing.

I added for test this line in 1126s01.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 0] [grid=C 2 1 20 0]
Reply
RE: Part Snapping missing/errors
73562: Snaps are missing.

I added for test these lines in 73562.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 32 -10] [grid=C 2 C 2 20 20]
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 8 20] [grid=C 2 C 1 20 20]
Reply
RE: Part Snapping missing/errors
I wanted to add support for using the github (green button) 'code' zip as-is, only to discover a minor bug is the only thing preventing it working in the older versions.

The bug concerns how LDCad decides if a compressed library is a shadow library.

Current versions only test for the .csl extension, if it has something else it will (due to the bug) fallback to using the filename as a folder which will fail.

The issue has been fixed in 1.7 Beta 1.

But if you want to use the latest shadow as found in github with 1.6 or 1.7 alpha, you must rename LDCadShadowLibrary-main.zip to LDCadShadowLibrary-main.csl. before using it in LDCad.
Reply
RE: Part Snapping missing/errors
77765: Snaps are missing.

I added for test this line in 77765.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=L_ 6.25 2  R 6 56  R 8 2] [pos=-30 0 0] [ori=0 -1 0 1 0 0 0 0 1]
Reply
RE: Part Snapping missing/errors
studa: Snaps are missing.

I added for test this line in studa.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=one] [secs=R 6 4]
Reply
RE: Part Snapping missing/errors
67811: Snaps are missing.

I added for test this line in 67811.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 16 0] [grid=C 2 C 2 20 20]
Reply
RE: Part Snapping missing/errors
(2021-12-04, 11:03)Philippe Hurbain Wrote: Not really a shadow problem, but the stud of the telescope (64644) is next to impossible to insert into tube of plate 1x1 round (6141). Most of the time, the telescope jumps to connect its tube to plate stud. Moving the plate instead doesn't help. It works much better with a regular plate 1x1 (3024)!

Finally got to the bottom of this issue (message #109)

It is caused by how 'best fits' are determined when there are multiple candidates.

The current engine can not be (easily) fixed for this as it introduces a chicken and egg problem.

So it will have to wait for the 2.0 rewrite (if ever Angry )

Instead I changed the 1x1 plate to prevent the issue entirely.

Code:
0 LDCad shadow info for "Plate  1 x  1 Round"

0 Author: LDCad Shadow Library
0 !LICENSE CC BY-SA 4.0, see LICENSE.md

0 !HISTORY 2015-10-20 {Roland Melkert} Initial info for 6141.dat
0 !HISTORY 2023-05-01 {Roland Melkert} Split bounding cylinder in two, to prevent 'best fit' fighting shortcomings

0 !LDCAD SNAP_CLEAR
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 5] [pos=0 8 0]
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 10 3   R 6 4] [slide=true] [pos=0 3 0]
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 10 3   R 8 5] [slide=true] [ori=-1 0 0 0 -1 0 0 0 1]
Reply
RE: Part Snapping missing/errors
73825: Snaps are missing.

I added for test these lines in 73825.dat, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 0]
Reply
RE: Part Snapping missing/errors
73230: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 8] [pos=0 24 0]
Reply
RE: Part Snapping missing/errors
65578: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 4 10] [slide=true] [pos=-10.0104 19.6673 0] [ori=0.707107 -0.707107 0 0.707107 0.707107 0 0 0 1]
Reply
RE: Part Snapping missing/errors
78329: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 8 0] [grid=C 5 1 20 0]
Reply
RE: Part Snapping missing/errors
73109: Snaps are missing.

I added for test these lines, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 8] [pos=0 24 0] [grid=C 2 1 20 0]
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 16 20] [grid=C 2 1 20 20]
Reply
RE: Part Snapping missing/errors
79756: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 0 0] [grid=C 4 1 20 0]
Reply
RE: Part Snapping missing/errors
40066: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=S 6 4] [pos=0 168 0] [grid=C 6 1 20 0]
Reply
RE: Part Snapping missing/errors
37695: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 4 22] [center=true] [slide=true] [pos=0 -11 0]
Reply
RE: Part Snapping missing/errors
66857: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 8 0] [grid=C 2 C 4 20 20]
Reply
RE: Part Snapping missing/errors
24324: Snaps are missing.

I added for test this line, it seems to work:

Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 4 46] [center=true] [slide=true] [pos=0 0 0] [ori=-1 0 0 0 -1 0 0 0 1]
Reply
RE: Part Snapping missing/errors
Regarding the new legs I have posted here:
https://forums.ldraw.org/thread-27515-po...l#pid50842
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Part Snapping missing/errors
(2023-06-29, 11:46)Jaco van der Molen Wrote: Regarding the new legs I have posted here:
https://forums.ldraw.org/thread-27515-po...l#pid50842

Thanks I will update the git repo with the postings in this thread soon.
Reply
RE: Part Snapping missing/errors
Thumbs Up 
(2023-06-29, 18:20)Roland Melkert Wrote: Thanks I will update the git repo with the postings in this thread soon.

Smile
Jaco van der Molen
lpub.binarybricks.nl
Reply
RE: Part Snapping missing/errors
I've processed things posted here up to message #198

You'll find the latest version of the library at
https://github.com/RolandMelkert/LDCadShadowLibrary

To use it just download the code (green button) and rename it to .csl and point LDCad to it using it's search location dialog.

Thanks to all who posted, but please consider using git directly.

The upcoming 1.7 Beta 1 version should make that a lot easier (headers wise), so now is the time to get familiar with github Big Grin
Reply
RE: Part Snapping missing/errors
(2023-07-04, 0:19)Roland Melkert Wrote: I've processed things posted here up to message #198

You'll find the latest version of the library at
https://github.com/RolandMelkert/LDCadShadowLibrary

To use it just download the code (green button) and rename it to .csl and point LDCad to it using it's search location dialog.

Thanks to all who posted, but please consider using git directly.

The upcoming 1.7 Beta 1 version should make that a lot easier (headers wise), so now is the time to get familiar with github Big Grin

Thanks Roland!
Reply
RE: Part Snapping missing/errors
(2023-07-04, 0:19)Roland Melkert Wrote: I've processed things posted here up to message #198

You'll find the latest version of the library at
https://github.com/RolandMelkert/LDCadShadowLibrary

To use it just download the code (green button) and rename it to .csl and point LDCad to it using it's search location dialog.

Thanks to all who posted, but please consider using git directly.

The upcoming 1.7 Beta 1 version should make that a lot easier (headers wise), so now is the time to get familiar with github Big Grin

That is good news!
Thanks. I will certainly be able to contribute to Github.
Jaco van der Molen
lpub.binarybricks.nl
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)