RE: Ldcad Rubber bands cross over
2018-09-28, 12:39 (This post was last modified: 2018-09-28, 12:40 by Philippe Hurbain.)
2018-09-28, 12:39 (This post was last modified: 2018-09-28, 12:40 by Philippe Hurbain.)
First, instead of turning the second control point 180° it is better to change properties of this control point from clockwise to counter clockwise. This avoids the squishing effect you have. Then to avoid the overlap at crossing, you need to add two bezier control points and place/orient them as needed. Here is an example:
Code:
0 FILE main.ldr
0 Author: Philippe Hurbain [Philo]
0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt
1 71 0 0 -50 0 0 -1 0 1 0 1 0 0 4185b.dat
1 71 0 0 90 0 0 -1 0 1 0 1 0 0 4185b.dat
1 4 0 0 -50 0 0 -1 0 1 0 1 0 0 rubberBandRound-1.ldr
0 FILE rubberBandRound-1.ldr
0 Author: LDCad
0 !CATEGORY technic
0 !KEYWORDS flexible, band
0 !LDCAD CONTENT [type=path] [addFallBack=default] [looped=true] [displayKind=mm] [curveStep=0] [displayLenCor=0]
0 !LDCAD PATH_POINT [type=circle] [posOri=0 0 0 1 0 0 0 1 0 0 0 1] [prevCPDist=25] [nextCPDist=25] [cirR=30] [cirDir=xyCW] [prevYRoll=0] [nextYRoll=0]
0 !LDCAD PATH_POINT [type=bezier] [posOri=70 0 2 -0.469472 -0.882948 0 0.882948 -0.469472 0 0 0 1] [prevCPDist=16.5] [nextCPDist=14.5] [cirR=30] [cirDir=xyCW] [prevYRoll=0] [nextYRoll=0]
0 !LDCAD PATH_POINT [type=circle] [posOri=140 0 0 1 0 0 0 1 0 0 0 1] [prevCPDist=25] [nextCPDist=25] [cirR=30] [cirDir=xyCCW] [prevYRoll=0] [nextYRoll=0]
0 !LDCAD PATH_POINT [type=bezier] [posOri=70 0 -2 -0.469472 0.882948 0 -0.882948 -0.469472 0 0 0 1] [prevCPDist=16] [nextCPDist=16.5] [cirR=30] [cirDir=xyCW] [prevYRoll=0] [nextYRoll=0]
0 !LDCAD PATH_SKIN [donCol=16] [donOri=1 0 0 0 1 0 0 0 1] [donPart=ldcRubberBandRndSeg.dat] [donYSize=400%] [donCen=absCen] [donCenYOfs=0] [donFinScale=fitDon2Seg] [donPlace=deform] [donYAlign=0] [donInline=false] [segSize=100%] [segSizeTol=5%] [segsCnt=0] [segsGrp=0] [segsMaxMerge=10] [segsMrgAng=0] [segsMrgRollAng=0] [segsEdgeDelKind=keepFirstLeft]