You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create a holder for a GNS receiver using the makeOffset function. The idea was to create a model of the receiver first, then create an offset to this shape and cut the upper part. This would look like this.
However,the receiver has rounded edges. As soon as I apply the filleting to the shape of the receiver, the following happens:
My example code is listed below. To witness the effect the line starting with ".fillet" should be changed into a comment :
constdefaultParams={// setting the value of the parameterslength: 100,width: 50,height: 12,thickness: 2,portion: 0.75}functionmain({ makeBaseBox, Sketcher, makeOffset },// functions used within the main program{ length, width, height, thickness, portion})// parameters to adjust the model{letreceiverBody=makeBaseBox(length,width,height).fillet(5,(e)=>e.inDirection("X"));letcutter=makeBaseBox(length+4*thickness,width+4*thickness,height).translate(0,0,portion*height)letholder=makeOffset(receiverBody,thickness)holder=holder.cut(cutter)letshapeArray=[{shape: receiverBody,name:"receiver",color:"red"},{shape: cutter,name:"cutter",opacity: 0.5},{shape: holder,name:"holder",opacity: 1.0},]returnshapeArray}
I found a way around this by not using the makeOffset function, but still would like to know why this does not work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to create a holder for a GNS receiver using the makeOffset function. The idea was to create a model of the receiver first, then create an offset to this shape and cut the upper part. This would look like this.
However,the receiver has rounded edges. As soon as I apply the filleting to the shape of the receiver, the following happens:
My example code is listed below. To witness the effect the line starting with ".fillet" should be changed into a comment :
I found a way around this by not using the makeOffset function, but still would like to know why this does not work.
Beta Was this translation helpful? Give feedback.
All reactions