MoI discussion forum
MoI discussion forum

Full Version: Script for Curvature Calculation

Show messages:  1-18  19-24

From: Karsten (KMRQUS)
20 Dec 2017   [#19] In reply to [#18]
Hello Pilou,

the problem of the open analysis curve for closed curves is caused by the patharray factory. The script works with a startpoint of the curve, arrays it to the curve and calculates the center of an theoretical arc for 3 following points. For a closed curve the arrayfactory don't calculate the last point, because it's the same as the start point. It's possible to improve that, but for the analysis it has not an effect, because the start and end point would need a previous point and following point. I solved that with a lagrange interpolation. The old script don't calculates start and endpoint. Ccc has to be placed in the command folder. It is complete independent from the node stuff. It's older than the elephant. Please play with the number of sample points and rhe scale factor.

Have a nice day
Karsten
From: Karsten (KMRQUS)
20 Dec 2017   [#20] In reply to [#19]
p. s. If you want to see also your curve in the nodeeditor while running a curvature analysis you can clone it first and give one clone to a second output node.
From: Frenchy Pilou (PILOU)
21 Dec 2017   [#21] In reply to [#20]
Thx for all these infos!
It's not precisely for me but for French people who will ask me that! :)

About the double curve by clone : very tricky simple!
I'm sorry I didn't find it all by myself!

Have happy Christmas...and coding!
See you the next year!
From: Frenchy Pilou (PILOU)
21 Dec 2017   [#22]
What is CCC ? Construction Curvature Calculation ?

Seems there is something! Like there is no title appropriated?

In English I have 2 Lines : (and not Select Curve(s) to Analyse! )
Choose Number
of Sample Points






Result!


From: Karsten (KMRQUS)
21 Dec 2017   [#23] In reply to [#22]
I saw a film, there was some saying : Give me names of wild animals! Answer: Evil butterfly!

My first mind was calculate curves curvature, but it's to long so CCC, but I can't speak french so it's up to you how you will translate it. The right name in english is comp curve, I think. I read also porcupine analysis, but I think it's for surfaces and also a word used by Dassault. I'm not shure if they can english really. Some other naming in CATIA was raising my doubts in the past;-) Anyway, In french most of the things sounds better and more graceful.

Have a nice day
Karsten
From: Frenchy Pilou (PILOU)
21 Dec 2017   [#24] In reply to [#23]
No, my question was not about some names of things (except CCC) but just why that is writed inside the code is not shown on the panel !
Aespecially on the title!

I have offseted the text lines on the Nopad++ for have the right thing! :)


Show messages:  1-18  19-24