Jump to content

Recommended Posts

Posted (edited)

Hi all!

 

How can I create a spline from n points?

(command "spline" point1 point2 pointi ... pointn) works, but I have to specify the start and end tangent. I want to do it automaticly i.e. 0, 0.

How can I do that?

 

That'd be better if I could make it with the entmake command!

 

Thanks any help!

Edited by hunszab
Posted

I have moved your question to its own thread, please start a new thread for each new question.

Posted

To get default tangents just use "" (equivalent to ) – a series of 3 "" at the end of the function call will do the job (one to end points input and the folowing two to accept default tangents:

 

(command "_spline" point1 point2 pointi ... pointn [color=blue]"" "" ""[/color])

 

 

Regards,

 

PS. Maybe the best location for this thread is under AutoLISP, Visual LISP & DCL sub-forum.

Posted

Thanks a lot!

 

And I modify my problem: I have a list that contains n points, and I want to make spline!

Posted

For this case can use the below approach:

 

(command "_SPLINE")   ;start command function
(foreach thePoint MyPointsList
(command thePoint)   ;parse points list and feed the SPLINE command
)
(command "" "" "")    ;close points input and accept default tangents

 

 

Regards,

Posted

You're welcome! Glad to help you.

 

Regards,

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...