Create a cone in Spaceclaim/Discovery

Member, Employee Posts: 59
5 Answers Second Anniversary 10 Comments 5 Likes
✭✭✭✭
edited June 2023 in 3D Design

Comments

  • Member, Employee Posts: 59
    5 Answers Second Anniversary 10 Comments 5 Likes
    ✭✭✭✭
    1. import math
    2. ClearAll()
    3.  
    4. # Create the cone
    5. radius = MM(5)
    6. halfAngle = DEG(20)
    7. cone = Cone.Create(Frame.World, radius, halfAngle)
    8. int1 = Interval.Create(0,2*math.pi)
    9. int2 = Interval.Create(MM(-10),MM(10))
    10. bbox = BoxUV.Create(int1,int2)
    11. my_cone = Body.CreateSurfaceBody(cone, bbox)
    12. my_body = DesignBody.Create(GetRootPart(), "my_cone", my_cone)
    13. for edge in my_body.Edges:
    14.     Fill.Execute(Selection.Create(edge))

Welcome!

It looks like you're new here. Sign in or register to get started.