Example using the model.Extrude function
-
function Extrude
Extrude( (object)entities, (Vec3)extrusion_vector, (object)make_solid, (object)assign_new_color) -> Body
Extrudes a body out of a surface.
Member of module model.
import s4l_v1.model as model from s4l_v1.model import Vec3 p1 = model.CreatePolyLine([Vec3(0,0,0), Vec3(0,1,0),Vec3(1,1,0), Vec3(1,0,0)]) model.Extrude([p1],Vec3(0,0,5),True,False) p2 = model.CreatePolyLine([Vec3(2,0,0), Vec3(2,1,0),Vec3(3,1,0), Vec3(3,0,0), Vec3(2,0,0)]) model.Extrude([p2],Vec3(0,0,5),True,False)

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login