Rubber bands


Re: Rubber bands
#10
I see, maybe someone could create a basic (no closed mesh though) rubber band ring (for use in instructions) using a generic primitive subpart. Other tools could then use the same segment subpart to generate dynamic bands.

Based on this thread I'm using the following files for generating bands at the moment.

Feel free to reformat them to something useful in the official library. You probable want to leave out the ldcConRing*' stuff though.


Square (it's optional rotated by 45 deg, by the generator it self)
Code:
0 Donor segment for square rubber band
0 Name: ldcRubberBandSqSeg.dat
0 Author: LDCad
0 BFC CERTIFY CCW
0 !CATEGORY LDCad donor

0 Unofficial part

0 //Main 3d box segment
1 16 0 0 0 2 0 0 0 1 0 0 0 2 box4o8a.dat

0 //Conditional lines in between segments
0 //  The LDCad path deform generator will automatically remove outer (con)lines to prevent duplicate lines between segments.
0 //  It will also take care of segment overlapping control points
1 16 0 0 0 2 0 0 0 1 0 0 0 2 ldcConRect-4-4.dat
1 16 0 1 0 2 0 0 0 1 0 0 0 2 ldcConRect-4-4.dat


Code:
0 Conditional line rectangle (4-4)
0 Name: ldcConRect-4-4.dat
0 Author: LDCad
0 BFC CERTIFY CCW
0 !CATEGORY LDCad donor

0 Unofficial primitive

0 //Rectangle of conditional lines for use in-between segments.
0 //  When using this file realize scaling/rotating will move the control points and thus affects visibility of the edge.
0 //  The LDCad path deform generator will truncate them back to something useful when they overlap into another segment though.
5 24    -1  0  -1    1 0 -1    -1  1  -1   -1  -1  -1
5 24     1  0  -1    1 0  1     1  1  -1    1  -1  -1
5 24     1  0   1   -1 0  1     1  1   1    1  -1   1
5 24    -1  0   1   -1 0 -1    -1  1   1   -1  -1   1


Round band (couldn't find a res 8 cylinder primitive, so I generated one myself):
Code:
0 Donor segment for round rubber band
0 Name: ldcRubberBandRndSeg.dat
0 Author: LDCad
0 BFC CERTIFY CCW
0 !CATEGORY LDCad donor

0 Unofficial part

0 //Main 3d tube segment
1 16 0 0 0   2 0 0  0 1 0  0 0 2 ldcCyli8.dat

0 //Conditional lines in between segments
0 //  The LDCad path deform generator will automatically remove outer (con)lines to prevent duplicate lines between segments.
0 //  It will also take care of segment overlapping control points
1 16 0 0 0   2 0 0  0 1 0  0 0 2 ldcConRing8.dat
1 16 0 1 0   2 0 0  0 1 0  0 0 2 ldcConRing8.dat

Code:
0 LDC Donor primitive for cylinder of resolution 8
0 Name: ldcCyli8.dat
0 Author: LDCad
0 BFC CERTIFY CW
0 !CATEGORY LDCad donor

0 Unofficial primitive
4 16     0.000000 0.000000  1.000000     0.000000 1.000000  1.000000     0.707107 1.000000  0.707107     0.707107 0.000000  0.707107
4 16     0.707107 0.000000  0.707107     0.707107 1.000000  0.707107     1.000000 1.000000  0.000000     1.000000 0.000000  0.000000
4 16     1.000000 0.000000  0.000000     1.000000 1.000000  0.000000     0.707107 1.000000 -0.707107     0.707107 0.000000 -0.707107
4 16     0.707107 0.000000 -0.707107     0.707107 1.000000 -0.707107     0.000000 1.000000 -1.000000     0.000000 0.000000 -1.000000
4 16     0.000000 0.000000 -1.000000     0.000000 1.000000 -1.000000    -0.707107 1.000000 -0.707107    -0.707107 0.000000 -0.707107
4 16    -0.707107 0.000000 -0.707107    -0.707107 1.000000 -0.707107    -1.000000 1.000000 -0.000000    -1.000000 0.000000 -0.000000
4 16    -1.000000 0.000000 -0.000000    -1.000000 1.000000 -0.000000    -0.707107 1.000000  0.707107    -0.707107 0.000000  0.707107
4 16    -0.707107 0.000000  0.707107    -0.707107 1.000000  0.707107     0.000000 1.000000  1.000000     0.000000 0.000000  1.000000

5 24     0.000000 0.000000  1.000000     0.000000 1.000000  1.000000    -0.707107 0.000000  0.707107     0.707107 0.000000  0.707107
5 24     0.707107 0.000000  0.707107     0.707107 1.000000  0.707107     0.000000 0.000000  1.000000     1.000000 0.000000  0.000000
5 24     1.000000 0.000000  0.000000     1.000000 1.000000  0.000000     0.707107 0.000000  0.707107     0.707107 0.000000 -0.707107
5 24     0.707107 0.000000 -0.707107     0.707107 1.000000 -0.707107     1.000000 0.000000  0.000000     0.000000 0.000000 -1.000000
5 24     0.000000 0.000000 -1.000000     0.000000 1.000000 -1.000000     0.707107 0.000000 -0.707107    -0.707107 0.000000 -0.707107
5 24    -0.707107 0.000000 -0.707107    -0.707107 1.000000 -0.707107     0.000000 0.000000 -1.000000    -1.000000 0.000000 -0.000000
5 24    -1.000000 0.000000 -0.000000    -1.000000 1.000000 -0.000000    -0.707107 0.000000 -0.707107    -0.707107 0.000000  0.707107
5 24    -0.707107 0.000000  0.707107    -0.707107 1.000000  0.707107    -1.000000 0.000000 -0.000000     0.000000 0.000000  1.000000

Code:
0 Conditional line ring for resolution 8 cylinder
0 Name: ldcConRing8.dat
0 Author: LDCad
0 BFC CERTIFY CW
0 !CATEGORY LDCad donor

0 Unofficial primitive

0 //Ring of conditional lines for use in-between segments.
0 //  When using this file realize scaling/rotating will move the control points and thus affects visibility of the edge.
0 //  The LDCad path deform generator will truncate them back to something useful when they overlap into another segment though.

5 24     0.000000 0.000000  1.000000     0.707107 0.000000  0.707107     0.000000 -1.000000  1.000000     0.000000 1.000000  1.000000
5 24     0.707107 0.000000  0.707107     1.000000 0.000000  0.000000     0.707107 -1.000000  0.707107     0.707107 1.000000  0.707107
5 24     1.000000 0.000000  0.000000     0.707107 0.000000 -0.707107     1.000000 -1.000000  0.000000     1.000000 1.000000  0.000000
5 24     0.707107 0.000000 -0.707107     0.000000 0.000000 -1.000000     0.707107 -1.000000 -0.707107     0.707107 1.000000 -0.707107
5 24     0.000000 0.000000 -1.000000    -0.707107 0.000000 -0.707107     0.000000 -1.000000 -1.000000     0.000000 1.000000 -1.000000
5 24    -0.707107 0.000000 -0.707107    -1.000000 0.000000 -0.000000    -0.707107 -1.000000 -0.707107    -0.707107 1.000000 -0.707107
5 24    -1.000000 0.000000 -0.000000    -0.707107 0.000000  0.707107    -1.000000 -1.000000 -0.000000    -1.000000 1.000000 -0.000000
5 24    -0.707107 0.000000  0.707107     0.000000 0.000000  1.000000    -0.707107 -1.000000  0.707107    -0.707107 1.000000  0.707107


These aren't the definitive ones so there might be less then perfect Smile
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Rubber bands - by Roland Melkert - 2013-10-10, 21:06
Re: Rubber bands - by Philippe Hurbain - 2013-10-11, 8:31
Re: Rubber bands - by Roland Melkert - 2013-10-11, 17:11
Re: Rubber bands - by Philippe Hurbain - 2013-10-11, 18:40
Re: Rubber bands - by Roland Melkert - 2013-10-11, 19:06
Re: Rubber bands - by Roland Melkert - 2013-10-12, 23:56
Re: Rubber bands - by Steffen - 2013-10-11, 18:20
Re: Rubber bands - by Roland Melkert - 2013-10-11, 19:09
Re: Rubber bands - by Steffen - 2013-10-12, 0:21
Re: Rubber bands - by Michael Heidemann - 2013-10-12, 7:28
Re: Rubber bands - by Roland Melkert - 2013-10-12, 18:11
Re: Rubber bands - by Philippe Hurbain - 2013-10-12, 19:25
Re: Rubber bands - by Roland Melkert - 2013-10-12, 23:43

Forum Jump:


Users browsing this thread: 1 Guest(s)