<div dir="ltr"><div>I`m sorry. I cant quiet understand what you problem is.<br></div>What numbers? What are you trying to do?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-06 23:37 GMT+02:00 linkreincarnate <span dir="ltr"><<a href="mailto:linkreincarnate@gmail.com" target="_blank">linkreincarnate@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I am trying to make a lid for a hinged box.  I am getting some<br>
unpredictable results with it though.   I need to be able to make a cutout<br>
of the lip of the box at the level where the lid ends and the lip begins and<br>
to place a hinge part there.  But when I change the numbers around to<br>
anything other than a 1:1 ratio on the two numbers that control the<br>
thickness I am unable to predict where the transition from lid to lip<br>
begins.  I have been working on this particular problem since yesterday and<br>
I am being stumped.  What am I missing here?<br>
<br>
boxLength = 90.4;<br>
boxWidth = 81.25;<br>
boxHeight = 19.2;<br>
boxBottomThickness = .67;<br>
boxWallThickness = .67;<br>
boxArcHeight = 3.5;<br>
boxArcRadius=1;<br>
boxControlArmHoleZOffset = 3.5;<br>
boxControlArmHoleYOffset = 3;<br>
boxHingePinDiameter = 3;<br>
boxHingeDiameter= 5;<br>
boxHingeZOffset = 0;<br>
boxHingeYOffset = 0;<br>
boxHingeTolerance = .1;<br>
boxHingeSupportZOffset= -5;<br>
boxHingeSupportYOffset = -4.5;<br>
boxHingeNumberOfSplits = 7;<br>
boxHingeClearance=1;<br>
//the following variables determine the details of the cylinder (or sphere)<br>
used for minkowski sums<br>
boxCornerRoundness = 7;<br>
boxCornerSmoothness = 16;<br>
boxRoundCorners = true;<br>
<br>
controlArmLength = 0;<br>
controlArmHeight = 0;<br>
conrolArmThickness = 0;<br>
controlArmPinDiameter = 2;<br>
controlArmHoleZOffset = 0;<br>
controlArmHoleYOffset = 0;<br>
controlArmPinTolerance = .1;<br>
<br>
lidLipHeight = 2;<br>
lidThickness = 2;<br>
lidTolerance = 1;<br>
lidHingeZOffset = 0;<br>
lidHingeYOffset = 0;<br>
lidHingeTolerance = 1;<br>
lidOverlap = 2;<br>
<br>
dispenserHoleLength = 72; //also used for dist between tracks<br>
dispenserHoleWidth = 11.5;<br>
dispenserHoleXOffset = 0;<br>
dispenserHoleYOffset = 0;<br>
<br>
trackPanelLength = 76;<br>
trackPanelHeight = 19;<br>
trackPanelThickness = 3;<br>
trackWidth = 2.5;<br>
trackLength = 61;<br>
trackHeight = 14;<br>
<br>
rollerDiameter = 7;<br>
rollerLength = 71;<br>
<br>
rollerPinDiameter = 2;<br>
hingePinDiameter = 1.6;<br>
pinLength= 71;<br>
<br>
pinTolerance = 1;<br>
cigaretteDiameter = 7.75;<br>
cigaretteLength = 70;<br>
<br>
booleanOverlap = .01; //to ensure that the faces used to difference() dont<br>
line up<br>
<br>
lowRollingClearance = 5; //the distance from the center of the rolling pin<br>
to the lid at the lowest point.<br>
hightRollingClearance = 12.6;<br>
<br>
arched = false;<br>
//uses math to determine the arc radius of the curve of the box and creates<br>
the appropriate cylinder<br>
<br>
<br>
difference(){<br>
                    $fn=boxCornerSmoothness;<br>
                    minkowski(){<br>
                     cube([lidOverlap + boxLength + lidTolerance - (2 *<br>
boxCornerRoundness),<br>
                           lidOverlap + boxWidth + lidTolerance - (2 *<br>
boxCornerRoundness),<br>
                           ((lidThickness + lidLipHeight)/2)], center=true);<br>
                     cylinder(r=boxCornerRoundness,<br>
                                 h=((lidThickness + lidLipHeight)/2),<br>
center=true);<br>
                    }<br>
<br>
                    translate([0,0,-lidThickness/2 ])<br>
                    {<br>
                        $fn=boxCornerSmoothness;<br>
                        minkowski()<br>
                        {<br>
                         cube([boxLength + lidTolerance - (2 *<br>
boxCornerRoundness) ,<br>
                               boxWidth + lidTolerance - (2 *<br>
boxCornerRoundness),<br>
                               lidLipHeight+booleanOverlap],center = true);<br>
                         cylinder(r=boxCornerRoundness,h=lidLipHeight/2,<br>
center = true);<br>
                        }<br>
                    }<br>
                    translate([0,(boxCornerRoundness + lidTolerance +<br>
lidOverlap+booleanOverlap),-lidThickness/2])<br>
                    cube([boxLength + lidTolerance - (2 *<br>
boxCornerRoundness) ,<br>
                               boxWidth + lidTolerance - (2 *<br>
boxCornerRoundness),<br>
                               lidLipHeight +booleanOverlap],center = true);<br>
}<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.openscad.org/Frustrating-unexpected-behavior-tp12321.html" target="_blank">http://forum.openscad.org/Frustrating-unexpected-behavior-tp12321.html</a><br>
Sent from the OpenSCAD mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
OpenSCAD mailing list<br>
<a href="mailto:Discuss@lists.openscad.org">Discuss@lists.openscad.org</a><br>
<a href="http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org" target="_blank">http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><a href="mailto:karsten@rohrbach.de" target="_blank">stempeldergeschichte@googlemail.com</a><br>
<br>
P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:<br>
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.<br>
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.<br>
<br>
P.S. In case my e-mail is shorter than you enjoy:<br>
I am currently trying short replies instead of no replies at all.<br>
Please let me know, if you like to read more.<br><br>Enjoy!<br></div>
</div>