Create a tore in Spaceclaim / Discovery

Gabriel Messager
Gabriel Messager Member, Employee Posts: 45
First Anniversary Ansys Employee First Comment Photogenic
edited June 2023 in 3D Design

Comments

  • Gabriel Messager
    Gabriel Messager Member, Employee Posts: 45
    First Anniversary Ansys Employee First Comment Photogenic
    ClearAll()
    
    majorRadius = MM(10)
    minorRadius = MM(5)
    
    # Create the torus
    torus = Torus.Create(Frame.World, majorRadius, minorRadius)
    my_torus = Body.CreateSurfaceBody(torus, BoxUV.Empty)
    DesignBody.Create(GetRootPart(), "my_torus", my_torus)