Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Python API
  4. How to create a Cone from Python?

How to create a Cone from Python?

Scheduled Pinned Locked Moved Python API
python
2 Posts 1 Posters 427 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SylvainS Offline
    SylvainS Offline
    Sylvain
    ZMT
    wrote on last edited by Sylvain
    #1

    like Solids -> Cone in the GUI?

    1 Reply Last reply
    0
    • SylvainS Offline
      SylvainS Offline
      Sylvain
      ZMT
      wrote on last edited by
      #2

      There is no python interface for the Solid Cone creation tool. However, you can achieve the same result by using the SkinWires() primitive as follows:

      import s4l_v1.model as model
      import XCoreModeling
      
      c1 = model.CreateCircle(model.Vec3(0,0,0), model.Vec3(0,0,1), 50)
      c2 = model.CreateCircle(model.Vec3(0,0,50), model.Vec3(0,0,1), 25)
      XCoreModeling.SkinWires([c1, c2])
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Search