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. CAD Modeling
  4. Sweep a cross-section geometry along a spline

Sweep a cross-section geometry along a spline

Scheduled Pinned Locked Moved CAD Modeling
2 Posts 2 Posters 647 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.
  • J Offline
    J Offline
    JKM
    wrote on last edited by
    #1

    Hello,

    I am trying to convert a spline path into something more like a nerve bundle with multiple compartments following the path. ThickenWire works if I am keeping to a simple cross-section of concentric circles, but I want to move beyond that.

    I've tried starting out with sweeping a circle along the path of the spline, but I get the error that the sweep results in a self-intersecting surface. How do I constrain the normal of the cross-section to follow the path as well?

    And then with the next step in complexity, what would be done differently to sweep a cross-section template with multiple geometries along the spline?

    My apologies if this is in the wrong section, but it seemed mostly CAD related to start with, and the tutorials I've looked at only import the geometry.

    Extra points for the associated python scripting commands :)
    Thank you.

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

      Hi, when sweeping an object along a path, the normal of the cross-section should in principle follow the path. This, however, does not prevent having self-intersections in locations where the curvature of the path is too large compared to the size of the cross-section.

      The best way to experiment (different geometries, different paths, etc...) is to use the Python API:

      import s4l_v1.model as model
      from s4l_v1.model import Vec3
      import XCoreModeling
      spline1 = model.CreateSpline([Vec3(0,0,0), Vec3(50,0,0), Vec3(50,50,50)])
      section = model.CreateCircle(Vec3(0,0,0), Vec3(1,0,0), 10)
      region1 = XCoreModeling.SweepAlongPath(section, spline1, make_solid=True)
      
      1 Reply Last reply
      1
      • M mkn referenced this topic on
      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