Concerning "classic" hoses and LDCad


RE: Concerning "classic" hoses and LDCad
#5
(2019-10-22, 19:10)Roland Melkert Wrote: End caps should be 'normal' parts (non scaled) preferable including snap information.

You could put the scaled ls20.dat in a wrapper though, just be sure it has the same orientation and origin as 165.

This solution would create a dependency on ls20.dat meaning anyone you give the model to needs to have it in their library too.

I think the parts I'm creating are "normal"—well, at least as normal as the parts they're derived from. All I've done is change some values in the matrix to get the correct diameter.

I tried the same method starting with three different end parts: LS20.dat (pneumatic end cap) and LS50.dat (flex hose end cap) from LSynth, as well as LDCad's 3mm rigid hose end cap. I ended up choosing LS50 since it looks closest to the correct ratio of outer to inner diameter. The geometry from that file is:

1 16 0 0 0 4 0 0 0 1 0 0 0 4 4-4cyli.dat
0 BFC CERTIFY INVERTNEXT
1 16 0 0 0 2 0 0 0 1 0 0 0 2 4-4cyli.dat
1 16 0 0 0 4 0 0 0 1 0 0 0 4 4-4edge.dat
1 16 0 0 0 2 0 0 0 1 0 0 0 2 4-4edge.dat
1 16 0 0 0 2 0 0 0 1 0 0 0 2 RING1.DAT
1 16 0 1 0 2 0 0 0 -1 0 0 0 -2 RING1.DAT

LS50 is a 3.2mm diameter hose, so to get 4mm I just have to scale by 125% (trying it first in Studio's Part Designer to confirm it actually works this way). :-) That means I just have to change the 4's to 5's and the 2's to 2.5's, giving this resulting geometry:

1 16 0 0 0 5 0 0 0 1 0 0 0 5 4-4cyli.dat
0 BFC CERTIFY INVERTNEXT
1 16 0 0 0 2.5 0 0 0 1 0 0 0 2.5 4-4cyli.dat
1 16 0 0 0 5 0 0 0 1 0 0 0 5 4-4edge.dat
1 16 0 0 0 2.5 0 0 0 1 0 0 0 2.5 4-4edge.dat
1 16 0 0 0 2.5 0 0 0 1 0 0 0 2.5 RING1.DAT
1 16 0 1 0 2.5 0 0 0 -1 0 0 0 -2.5 RING1.DAT

I saved that into a new file, and it worked—almost:
   

Obviously I shouldn't be able to see through the hose that way, but I'm pretty sure I know why that is (the inner diameter of my end piece doesn't match that of the hose). So that's where I'm at; I'm sure there's a more correct way to do this, but I'm pretty much making this up as I go along.  Tongue
Reply
« Next Oldest | Next Newest »



Messages In This Thread
RE: Concerning "classic" hoses and LDCad - by N. W. Perry - 2019-10-22, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)