I am designing a mechanical arm and would like to manipulate it in points {0,0}
and {100,0}
.
But I'm finding it difficult to define the first arm as the black profile and the second arm as the red profile.
braço[r1_,r2_,comprimento_]:={Disk[{0,0},r1],Disk[{comprimento,0},r2],Polygon[{{0,-r1},{0,r1},{comprimento,r2},{comprimento,-r2}}]};
Graphics[{With[{x=30},{braço[25,20,100],Red,Translate[braço[20,15,50],{100,0}],Translate[{Disk[{0,0},x],White,Disk[{0,0},x/2],Rectangle[{0,-x},{x,x}]},{180,0}]}]},Axes->True]
How could I create this manipulation more conveniently?
Manipulate function
, this geometry could be obtained in another way $\endgroup$Manipulate function
"? Just useGraphicsGroup
and be done with it! $\endgroup$