Trombone, Bessel curve
All  1-2  3-8

Previous
Next
 From:  bemfarmer
10738.3 In reply to 10738.1 
Here is an ALPHA version of the BesselHorn curve, as a Script. A Node could be done.
It seems to work fine in MoI Beta 5 as well as MoI4.
Clicking on a parameter label restores its default value. (Thanks to Max for technique.)
cm was used for the Units.

Modification was made to the EggOvoid script. Egg build options need to be removed :-)

Some minor cleanup needs to be done.
Limited testing done.
It may be desire-able to modify the Limits of the sliders...
Error catching for weird parameter values is not done in the script. Have not had any crash so far.
Had to "relearn" Alert coding. (Alerts are commented out.) (The Alert would not show 1.0, just 1)
Had to "relearn" method of establishing input xValue range. Method shown in comments.

- Brian

The script .js and .htm files should be placed in the MoI commands folder in AppData.
(I use Max's customUI to run such scripts.)

Revolve of the profile curve is left up to the user of the script :-)

EDITED: 23 Jun 2022 by BEMFARMER


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10738.4 In reply to 10738.3 
Hi Brian,
Still working on Pyriform and avianform curve?? Those options don't do anything yet...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10738.5 In reply to 10738.4 
Hi Burr,

So far I left the two lines of the build options, in the event I decided to have the script perform some other curves.
Exponential horn is a possibility, but there is only ONE flare value for a given set of r0, r1, and length, so a flare slider makes no sense.
Maybe some semi-fancy coding could make flare parameter and flare slider not show up for exponential...

So that is one reason why the name Alpha was used.
Some minor code modification and deleting the Build options would eliminate the leftover build options.

-Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10738.6 
Trombone Bell:

image host
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10738.7 
Version 3 of BesselHorn curve script has some minor changes.

1. Added Conical horn curve line. It is just a line, which revolves to a cone, or frustum.
Flare slider has no effect.

2. Added exponential horn curve. It is calculated with positive x values, and so lies to the right of the y-axis, automatically.
There is only one exponential curve between the two endpoints, so flare slider has no effect.
eFlare is the calculated flare for the exponential curve, for given parameters.

3. Shifted Bessel and Conical curves to right of y-axis. So all 3 curves have the same endpoints, for given set of parameters,
and there is less jumping around with changing parameters.

In the event a multi curve horn is created, the multiple curves would need to be placed sequentially, end to end.
A nodeeditor version used multiple times, each with its own parameters, might permit multiple joined segments, in a single node program. (Or multiplex mode...)

- Brian

EDITED: 27 Jun 2022 by BEMFARMER

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
10738.8 
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-2  3-8