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
Playing around with shapes created using the loftWith function I found some strange behaviour:
using the .shell() function on a loft created with {ruled: false} seems to fail with the message "shape has not type"
using the . shell() function on a loft created with { ruled: true} has unpredictable behaviour. The code below combines a lofted shape with a basic cylinder. If you play around with the radius of the cylinder, sometimes the code runs fine, sometimes it fails graciously (omitting the .shell() or sometimes with a kernel error.
constmain=({ sketchCircle, sketchRectangle })=>{letloft=sketchRectangle(5,10).loftWith([sketchCircle(8,{origin: 10}),sketchRectangle(5,10,{origin: 20}),],{ruled:true});// if radius of cylinder is 2, shape is absorbed in loft// shell fails, // if radius is 3, you get message "shape has not type, it is null"// if radius of cylinder is 10, shell succeeds, // of radius is 8 you first see a combination of shapes, then // the loft disappears? // if { ruled: false} the result are kernel errorsletcylinder=sketchCircle(6).extrude(20)loft=loft.fuse(cylinder)loft=loft.shell(-0.5,(f)=>f.inPlane("XY",[0,0,20]))returnloft};
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
-
Playing around with shapes created using the
loftWith
function I found some strange behaviour:.shell()
function on a loft created with{ruled: false}
seems to fail with the message "shape has not type". shell()
function on a loft created with{ ruled: true}
has unpredictable behaviour. The code below combines a lofted shape with a basic cylinder. If you play around with the radius of the cylinder, sometimes the code runs fine, sometimes it fails graciously (omitting the.shell()
or sometimes with a kernel error.Beta Was this translation helpful? Give feedback.
All reactions