BEAD004 From Lego Pens


BEAD004 From Lego Pens
#1
Hi,

I need help finishing my implementation of part BEAD004, I need the stud to be fully hollow so a bar can go right through it and also the bottom tube is intersecting the top wall of the brick slightly.

Here is my code so far:

4 16 -15 30 -15 -15 0 -15 15 0 -15 15 30 -15
4 16 15 30 -15 12 30 -12 -12 30 -12 -15 30 -15
4 16 15 30 15 12 30 12 12 30 -12 15 30 -15
4 16 -15 30 15 -12 30 12 12 30 12 15 30 15
4 16 -15 30 -15 -12 30 -12 -12 30 12 -15 30 15
0
1 16 0 1 0 1 0 0 0 -7.25 0 0 0 1 stud4.dat
1 16 0 30 0 15 0 0 0 -30 0 0 0 15 box4t.dat
0 BFC INVERTNEXT
1 16 0 30 0 12 0 0 0 -26 0 0 0 12 box5.dat
1 16 0 0 0 1 0 0 0 1 0 0 0 1 stud2.dat


Here are some references to the parts design:
https://youtu.be/eiegAdgSpcg?t=481
https://www.bricklink.com/v2/catalog/cat...ead004#T=C

There is also a load of other beads that are super useful that I would like to see but thats maybe for a seperate thread, and they are too complex for a beginner like me to make in LDRAW.

Regards, Snipe.
Reply
RE: BEAD004 From Lego Pens
#2
I don't know why you used the box4t and this quad  for the outside

1 16 0 30 0 15 0 0 0 -30 0 0 0 15 box4t.dat
4 16 -15 30 -15 -15 0 -15 15 0 -15 15 30 -15

Shorten the stud4:
1 16 0 4 0 1 0 0 0 -6.5 0 0 0 1 stud4a.dat


You can't use a box5 for the inside, so instead of:
0 BFC INVERTNEXT
1 16 0 30 0 12 0 0 0 -26 0 0 0 12 box5.dat

use:
0 BFC INVERTNEXT
1 16 0 30 0 12 0 0 0 -26 0 0 0 12 box4.dat
1 16 0 4 0 8 0 0 0 -1 0 0 0 8 4-4ndis.dat
4 16 -12 4 -12 -12 4 12 -8 4 8 -8 4 -8
4 16 -12 4 -12 -8 4 -8 8 4 -8 12 4 -12
4 16 12 4 -12 8 4 -8 8 4 8 12 4 12
4 16 -12 4 12 12 4 12 8 4 8 -8 4 8



The outer box instead of:
1 16 0 30 0 15 0 0 0 -30 0 0 0 15 box4t.dat

construct it like this:
1 16 0 30 0 15 0 0 0 -30 0 0 0 15 box4.dat
1 16 0 0 0 6 0 0 0 1 0 0 0 6 4-4ndis.dat
4 16 -6 0 6 6 0 6 15 0 15 -15 0 15
4 16 -6 0 6 -15 0 15 -15 0 -15 -6 0 -6
4 16 -6 0 -6 -15 0 -15 15 0 -15 6 0 -6
4 16 6 0 -6 15 0 -15 15 0 15 6 0 6


Now the top stud2 needs to get rid of the inner edge lines, replace:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 stud2.dat

with:
1 16 0 0 0 1 0 0 0 1 0 0 0 1 stud2.dat
1 16 0 0 0 6 0 0 0 1 0 0 0 6 4-4edge.dat


and extend the hole to the stud4 with:
0 BFC INVERTNEXT
1 16 0 0 0 4 0 0 0 4 0 0 0 4 4-4cyli.dat
1 16 0 4 0 4 0 0 0 1 0 0 0 4 4-4edge.dat
1 16 0 4 0 2 0 0 0 -1 0 0 0 2 4-4ring2.dat


Hope that helps
Reply
RE: BEAD004 From Lego Pens
#3
Hi,

Thanks for the code.

The hole and inner tube is now correct however the bottom has no face on it and also theres lines on the inside of the bar hole for some reason:

[Image: A.png][Image: B.png]

Here is the updated file, I don't know if I made a mistake or not, This is literally my first time making an LDRAW part and its tough!
1 16 0 4 0 1 0 0 0 -6.5 0 0 0 1 stud4a.dat

0 BFC INVERTNEXT
1 16 0 30 0 12 0 0 0 -26 0 0 0 12 box4.dat
1 16 0 4 0 8 0 0 0 -1 0 0 0 8 4-4ndis.dat
4 16 -12 4 -12 -12 4 12 -8 4 8 -8 4 -8
4 16 -12 4 -12 -8 4 -8 8 4 -8 12 4 -12
4 16 12 4 -12 8 4 -8 8 4 8 12 4 12
4 16 -12 4 12 12 4 12 8 4 8 -8 4 8

1 16 0 30 0 15 0 0 0 -30 0 0 0 15 box4.dat
1 16 0 0 0 6 0 0 0 1 0 0 0 6 4-4ndis.dat
4 16 -6 0 6 6 0 6 15 0 15 -15 0 15
4 16 -6 0 6 -15 0 15 -15 0 -15 -6 0 -6
4 16 -6 0 -6 -15 0 -15 15 0 -15 6 0 -6
4 16 6 0 -6 15 0 -15 15 0 15 6 0 6

1 16 0 0 0 1 0 0 0 1 0 0 0 1 stud2.dat
1 16 0 0 0 6 0 0 0 1 0 0 0 6 4-4edge.dat

0 BFC INVERTNEXT
1 16 0 0 0 4 0 0 0 4 0 0 0 4 4-4cyli.dat
1 16 0 4 0 4 0 0 0 1 0 0 0 4 4-4edge.dat
1 16 0 4 0 2 0 0 0 -1 0 0 0 2 4-4ring2.dat


Regards, Snipe.
Reply
RE: BEAD004 From Lego Pens
#4
Sorry, there was a mistake on my side, the stud2 needs to be a stud2a I did not completely edit it, that makes the line go away.

Your bottom quads were ok, but they had the wrong winding, I did not include them, but here's the necessary code (basically your initial first four lines BFC swapped)

4 16 -12 30 -12 12 30 -12 15 30 -15 -15 30 -15
4 16 12 30 -12 12 30 12 15 30 15 15 30 -15
4 16 12 30 12 -12 30 12 -15 30 15 15 30 15
4 16 -12 30 12 -12 30 -12 -15 30 -15 -15 30 15


Gerald
Reply
RE: BEAD004 From Lego Pens
#5
Thanks, Fixed:

1 16 0 4 0 1 0 0 0 -6.5 0 0 0 1 stud4a.dat

0 BFC INVERTNEXT
1 16 0 30 0 12 0 0 0 -26 0 0 0 12 box4.dat
1 16 0 4 0 8 0 0 0 -1 0 0 0 8 4-4ndis.dat
4 16 -12 30 -12 12 30 -12 15 30 -15 -15 30 -15
4 16 12 30 -12 12 30 12 15 30 15 15 30 -15
4 16 12 30 12 -12 30 12 -15 30 15 15 30 15
4 16 -12 30 12 -12 30 -12 -15 30 -15 -15 30 15

1 16 0 30 0 15 0 0 0 -30 0 0 0 15 box4.dat
1 16 0 0 0 6 0 0 0 1 0 0 0 6 4-4ndis.dat
4 16 -6 0 6 6 0 6 15 0 15 -15 0 15
4 16 -6 0 6 -15 0 15 -15 0 -15 -6 0 -6
4 16 -6 0 -6 -15 0 -15 15 0 -15 6 0 -6
4 16 6 0 -6 15 0 -15 15 0 15 6 0 6

1 16 0 0 0 1 0 0 0 1 0 0 0 1 stud2a.dat
1 16 0 0 0 6 0 0 0 1 0 0 0 6 4-4edge.dat

0 BFC INVERTNEXT
1 16 0 0 0 4 0 0 0 4 0 0 0 4 4-4cyli.dat
1 16 0 4 0 4 0 0 0 1 0 0 0 4 4-4edge.dat
1 16 0 4 0 2 0 0 0 -1 0 0 0 2 4-4ring2.dat

There is a slght error where the inside and outside of the bottom tube meets the top face, there should be lines but arn't but I'm not bothered so much about that:

[Image: C.png]
Regards, Snipe.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)