LDraw.org Discussion Forums
[LDCad] Part Snapping missing/errors - 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] Part Snapping missing/errors (/thread-23807.html)

Pages: 1 2 3 4 5 6 7 8 9


RE: Part Snapping missing/errors - Roland Melkert - 2020-06-09

I've processed up to #40

Latest shadow is at:
http://www.melkert.net/action/download/shadow.sf

It also includes a whole lot of shadow files donated by Alex Taylor, some of which are for unofficial files.

I haven't had the time to review them all but this is a work in progress version of the shadow anyway Smile

I will not include the unofficial ones in LDCad releases so some snapping functionally might 'disappear' when you upgrade to an official version.


(2020-05-02, 4:24)N. W. Perry Wrote: Wheel rim 11208 has no snap info.
What kind of pin is supposed to snap to that?


RE: Part Snapping missing/errors - N. W. Perry - 2020-06-10

(2020-06-09, 23:16)Roland Melkert Wrote: What kind of pin is supposed to snap to that?

Good question, actually—the only set I've used it in uses a 3.18 bar. But it seems to pair with the city/town scale wheel pins, such as 4488.dat.


RE: Part Snapping missing/errors - N. W. Perry - 2020-07-08

Two updates to official parts:

24866.dat
Needs the following additional cyl snap (to connect with various stem parts):
Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=none] [secs=R 2 2] [pos=0 2 0]

63965a.dat
Has no snap info; should be:
Code:
0 !LDCAD SNAP_CYL [gender=M] [caps=none] [secs=R 4 16   R 6 8   R 4 96] [slide=true] [pos=0 16 0]



RE: Part Snapping missing/errors - N. W. Perry - 2020-07-09

(2020-06-09, 23:16)Roland Melkert Wrote: What kind of pin is supposed to snap to that?

So yeah, it's meant to just go onto wpin.dat. The wheel pin clicks into the empty space in the middle, so it only extends halfway through the wheel.

Here's what I ended up going with:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=none] [secs=R 4 11   R 5 3   R 4 11] [center=true] [slide=true] [ori=1 0 0 0 0 1 0 -1 0]



RE: Part Snapping missing/errors - Magnus Forsberg - 2020-07-09

(2020-07-09, 2:50)N. W. Perry Wrote: So yeah, it's meant to just go onto wpin.dat. The wheel pin clicks into the empty space in the middle, so it only extends halfway through the wheel.

Here's what I ended up going with:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=none] [secs=R 4 11   R 5 3   R 4 11] [center=true] [slide=true] [ori=1 0 0 0 0 1 0 -1 0]

Yes, but on both sides.

This rim should have used 2 wpinhol2
1 16 0 0 -3.25 -0.707107 0 -0.707107 -0.707107 0 0.707107 0 9.25 0 wpinhol2.dat
1 16 0 0 3.25 -0.707107 0 -0.707107 -0.707107 0 0.707107 0 -9.25 0 wpinhol2.dat


RE: Part Snapping missing/errors - N. W. Perry - 2020-07-09

(2020-07-09, 5:20)Magnus Forsberg Wrote: Yes, but on both sides.

Well, the single cyl snap extends all the way through. A wheel pin will snap on either side, but a 318 bar will still slide all the way through. But perhaps this is not the preferred method?

Quote:This rim should have used 2 wpinhol2
1 16 0 0 -3.25 -0.707107 0 -0.707107 -0.707107 0 0.707107 0 9.25 0 wpinhol2.dat
1 16 0 0 3.25 -0.707107 0 -0.707107 -0.707107 0 0.707107 0 -9.25 0 wpinhol2.dat

The geometry of the rim is funky overall, and doesn't match the wpin's dimensions well. Maybe the snap info should match the rim's geometry rather than the pin's, allowing some realistic "play", but in my models I find that more a hindrance than a help. I like things like wheels to just snap to one place, and one place only.


RE: Part Snapping missing/errors - Stefan Frenz - 2020-07-09

I have no idea if this is my fault or maybe I missed something, but perhaps it has to do with part snapping: using 35563 (Cone 4x2x4 Half with Roof Tiles, I think it was in the last LDraw part update) as upper part and trying to snap this with the bottom to the upper side of a below 48310 (Cone 8x4x6 Half), the part is 1/2 stud (10 LDU) beside the "real" studs..


RE: Part Snapping missing/errors - N. W. Perry - 2020-07-09

(2020-07-09, 18:23)Stefan Frenz Wrote: I have no idea if this is my fault or maybe I missed something, but perhaps it has to do with part snapping: using 35563 (Cone 4x2x4 Half with Roof Tiles, I think it was in the last LDraw part update) as upper part and trying to snap this with the bottom to the upper side of a below 48310 (Cone 8x4x6 Half), the part is 1/2 stud (10 LDU) beside the "real" studs..

Yes, that's because the upper part has no snap info of its own, but it is inheriting the snap for the bottom stud tube. So it's connecting that to the hollow studs of the lower cone.

Adding the following pair of lines to 35563 should work:

Code:
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 96 -30] [grid=C 4 1 20 0]
0 !LDCAD SNAP_CYL [gender=F] [caps=one] [secs=R 6 4] [pos=0 96 -10] [grid=C 2 1 60 0]



RE: Part Snapping missing/errors - Magnus Forsberg - 2020-07-17

I think there is something wrong in the shadow file s\31111s01.dat


.png   31111.png (Size: 21.98 KB / Downloads: 249)

My log-file say this:
Circular reference detected to "s\31111s01.dat" from "31111.dat", reference will be cleared and rendered as "missing".


RE: Part Snapping missing/errors - Roland Melkert - 2020-07-17

(2020-07-17, 13:56)Magnus Forsberg Wrote: I think there is something wrong in the shadow file s\31111s01.dat

My log-file say this:
Circular reference detected to "s\31111s01.dat" from "31111.dat", reference will be cleared and rendered as "missing".

Indeed,

"s\31111s01.dat" references to 31111 for its snap data, while 31111 references "s\31111s01.dat" mesh wise.

Solution is to move the snap data from "31111.dat" to "s\31111s01.dat", and delete the shadow for "31111.dat" entirely.

Is "31111.dat" using a subpart a recent change?