powerCone Spiral, Allometric Growth
All  1-4  5-16

Previous
Next
 From:  bemfarmer
10608.5 
Here is an improved alpha version of powerConeSpiralGOOD16.

The straight powerCone is deleted from the geometry database.
The older/previous version of powerConeSpiral is deleted, when building a new preset, or changing "closed".

The sliders do not seem to do anything :-(

- Brian

EDITED: 5 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:  TOM (SIRTOM)
10608.6 
Very interesting script again ! Thank you, and downloading now.
  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.7 In reply to 10608.6 
Thank you SIRTOM.

I'll have a try at getting the sliders to work.

I'm not sure if the MoI meshangle settings is having an effect on the view, or not.

I tried a logarithmic for loop for spacing more profiles near the apex, which worked, but not sure if it improves the tip look, or not.
Nor if it has more overhead. (The log spacing is not in the current alpha.)

- 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.8 
Numerous changes were made, trying to get the sliders and parameters to update, without success. Just get programming errors so far.

If sliders are slid, (without update effect), clicking on the ClosedTip checkbox, causes ClosedTip checkbox to act as a defacto Update button, and causes the new slider static changes to implement to their new settings.
So the sliders are changing their parameters locally, but not being interactively updated.
Grafting Chain.js style programming to EggOvoid and cMorph style programming has caused some unknown lack of interactive updating problem.

- 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:  Michael Gibson
10608.9 In reply to 10608.8 
Hi Brian,

re:
> trying to get the sliders and parameters to update, without success. Just get programming errors so far.

I took a look in _PowerConeSpiralGOOD16.js and it looks like to get your sliders to update dynamically you will need to adjust your event loop.

Currently on _PowerConeSpiralGOOD16.js line 572 you've got:

if ( dlg.event == 'aValue' || dlg.event == 'bValue' || dlg.event == 'zOff' || dlg.event == 'wcValue' || dlg.event == 'startAngle' || dlg.event == 'rangeAngle' || dlg.event == 'radiusAdj' || dlg.event == 'aspect' || dlg.event == 'radial' || dlg.event == 'transverse' || dlg.event == 'flat' || dlg.event == 'numpoints'|| dlg.event == 'closedTip' || dlg.event == 'Preset' )

Make it also look for slider id values in there as well, like also look for dlg.event == 'aSlider' in addition to dlg.event == 'aValue'.

Hope that helps!

- 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.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-4  5-16