how to implement 'thicken-wire' in Modify menu of a spline?
-
Dear Sim4life Team,
I am writing a script to automatically generate implant wires, therefore I need to use the thicken-wire function for a spline, but I can not find the relevant description of this function in API, could you please help to check how to implement it in Python?Thank you
Aiping -
Dear Sim4life Team,
I am writing a script to automatically generate implant wires, therefore I need to use the thicken-wire function for a spline, but I can not find the relevant description of this function in API, could you please help to check how to implement it in Python?Thank you
AipingHello Aiping,
Bellow is a small example which might help you.
import s4l_v1 as s4l import XCoreModeling import random radius = 0.1 points = list() for ii in range(20): points.append(s4l.Vec3(random.randrange(0,20), random.randrange(0,20), random.randrange(0,20))) spline = XCoreModeling.CreateSpline(points) wire = XCoreModeling.ThickenWire(spline, radius)Regards,
Spuky
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