powerCone Spiral, Allometric Growth
All  1-9  10-16

Previous
Next
 From:  bemfarmer
10608.10 In reply to 10608.9 
Thank you very very much Michael.

I'll try the changes tonight after work.

I also noticed that about line 33, function Update(...,...,...,obj)
that I have "obj" instead of "powerConeSpiral"
the "obj" isn't used, so seems to be superfluous???
Changing the "obj" to "powerConeSpiral" just caused an error...

- Brian

On other scripts, like eggOvoid, with your helpful preset code, the sliders worked fine, without the changes.
So I do not understand...
  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:  Michael Gibson
10608.11 In reply to 10608.10 
Hi Brian,

re:
> On other scripts, like eggOvoid, with your helpful preset code, the sliders worked fine, without the changes.
> So I do not understand...

I checked _EggOvoid2.js from http://moi3d.com/forum/index.php?webtag=MOI&msg=10525.1 and in its event loop it is looking for Ui events of both the numeric input field and also the sliders, on line 150 of _EggOvoid2.js it has this:

if ( dlg.event == 'LValue' || dlg.event == 'BValue' || dlg.event == 'wValue' || dlg.event == 'DValue' || dlg.event == 'numpoints' || dlg.event == 'Lslider' || dlg.event == 'Bslider' || dlg.event == 'wslider' || dlg.event == 'Dslider' || dlg.event == 'Build' )

These were missing in _PowerCoenSpiralGOOD16.js, there you only were looking for UI events for the numeric input controls and not events from the sliders, that's what was different.

- Michael
  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
10608.12 In reply to 10608.11 
Thank you Michael.

I should have been more careful with blithely copying and modifying code.

- 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
10608.13 
Which is faster?
How much faster?

Method 1:
Apex point.
50 calculated cross-section profiles, 4 * 50 numpoints each. 50 arc lengths.
Loft of said point and 50 profiles.
1 baseline for flow.
1 3D logarithmic spiral for flow.
Flow to 3D logarithmic spiral.

Method 2:
Apex point.
1 calculated cross-section profile, 4 * 50 numpoints total.
49 more profiles, scaled from profile 1. 49 + 1 arc lengths.
Loft
1 baseline for flow.
1 3D logarithmic spiral target for flow.
Flow to 3D logarithmic spiral.

Method 3:
Apex point End.
1 calculated cross-section profile, 4 * 50 numpoints total.
1 calculated scaling rail curve, 50 calculated arc lengths.
1 3D logarithmic spiral, as sweep rail.
One Rail Sweep along the 3D logarithmic spiral, with the scaling rail.
Well, not sure just how the scaling rail would work. Flow would still be needed maybe, or not?


A more quickly calculated cross-section profile? (Something from Max?)
Reducing Slider parameter decimals from 3 to 2 or 1.

- Brian

EDITED: 7 Mar 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:  bemfarmer
10608.14 
Here is alpha version 19.
The sliders work. Delay is roughly 1/4 to 1/3 second for one modification.
Reduced decimals of parameters to 1 or 2, from 3.
Reduced numpoints to 40, from 50.
Inner flat is working, but is on wrong side. (An easy fix, as per arcloop script.)
The log spiral preset looks a little strange. Has a variable thickness, not a curve.

- 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:  TOM (SIRTOM)
10608.15 In reply to 10608.14 
Well done and respect for this nice little addon the the huge toolbox of MOI !!
  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
10608.16 In reply to 10608.15 
Thank you SirTom.

When I get some time, I may try some speedups on forming the profiles.

Last night I read about how whiskers follow euler spiral curves :-) (No script planned for whiskers.)
The math guys should have tested log spirals?

- 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
 

Reply to All Reply to All

 

 
 
Show messages: All  1-9  10-16