Script for Epitrochoid, Slider flicker
 1-3  4-23  24-43  44-50

Previous
Next
 From:  James (JFH)
6158.24 In reply to 6158.23 
Hi Brian

to remove vectors set visibility of "rotateVec" to "No".
See attached

James

EDITED: 6 May 2019 by JFH

  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:  Mike (MGG942)
6158.25 In reply to 6158.22 
Thank you very much, James, I'll study this tomorrow.
Mike.
  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
6158.26 In reply to 6158.24 
Hi James.
The visibility works, but once the bVectors have been applied, it is impossible to delete them from the MoI screen, even after nod is exited.
Is there some code running in the background?

- 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:  James (JFH)
6158.27 In reply to 6158.26 
Hi Brian,

>>Is there some code running in the background?<<

I can't say; this is perhaps a question for Karsten.
He is the author of the vector nodes.

James
  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
6158.28 In reply to 6158.27 
Thank you James.
  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:  Karsten (KMRQUS)
6158.29 In reply to 6158.28 
Hello Brian,

sorry it's a bug. The problem is an objectlist that points to the vectors geometry. It seems that the objectlist survives the closing of the nodeeditor. So MoI locks the objects as long as the list exists!?

Please try the new version of vector.js

Have a nice day
Karsten

p.s.: The vector nodes were not really in my focus and so I made the code very quick and dirty - sorry for that:-(
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
Next
 From:  bemfarmer
6158.30 In reply to 6158.29 
Thank you Karsten.

Using Compare plugin in Notepad++ shows that you made changes to vector.js.

After copying the new vector.js to the extension directory, the trochoid and trochoid2 scripts still cannot have their vectors deleted :-(

So there is an objectlist in the geometry database, which MoI cannot delete. (?)
Its objects can be lofted and extended, and such changes can be deleted, but not the original vectors.

- 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:  Karsten (KMRQUS)
6158.31 In reply to 6158.30 
Hello Brian,

that's very strange. Here is the problem solved. I think that you've restarted MoI already. I'm a little bit confused.



I hope someone can check it next time!

-Karsten
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
Next
 From:  bemfarmer
6158.32 In reply to 6158.31 
Maybe my node program has some old parts?
Maybe an updated node mod would be helpful...
I'll do some more checking later.
  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:  Mike (MGG942)
6158.33 In reply to 6158.25 
Thanks you James and Brian for the simplified versions.
I think I've got my head around it now.
This how I've interpreted the nod.
1. Draw two concentric circles with the same number of points by using polygons.
2. Attach vectors to each point of the larger circle with direction towards the centre and length the radius of the smaller circle.
3. Rotate each vector around the point of the larger circle to which it is attached by an amount determined by several inputs.
4. Draw a curve connecting the heads of each rotated vector.

However, I don't understand fully how step 4 is achieved. In particular, what does the MoveByVec node do?
Something along the lines of 'start with the co-ordinates of point on the large circle that the vector has been rotated about and calculate the co-ordinates of a new point that corresponds with the head of the vector'?

Thanks,
Mike.
  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:  James (JFH)
6158.34 In reply to 6158.33 
Hi Mike,

You seem to have a good grasp of it.

>> don't understand fully how step 4 is achieved.
In particular, what does the MoveByVec node do? <<

The vectors (direction+magnitude) need to act upon something.
So the points of the major circle are converted to point objects
for vector transformation then converted back to a point array,
that then in turn defines the path of the curve.

Does that make sense?

James
  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:  Mike (MGG942)
6158.35 In reply to 6158.34 
Ah, yes, vector transformation. That was what hadn't quite clicked.

Doing a bit of reading around I've learned a new word: tuple
Didn't have those 50 years ago in Engineering mathematics.

Thanks,

Mike.
  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:  James (JFH)
6158.36 In reply to 6158.35 
Hi Mike,

........UPDATED........

You got me thinking whether this was the most logical way to delineate the curve.

As an alternative the rotated vector can be added to polygon pts, and input to curve node. See attached.

James

EDITED: 14 May 2019 by JFH

  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:  Mike (MGG942)
6158.37 In reply to 6158.36 
Hi James,

re Trochoid4.nod

I like it. More straightforward and easier to understand.

Tell me, is there any reason why vMagnitude (Large circle radius) can be negative, so a range of -30 to +30 instead of simply 0 to 30?

Mike.
  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:  James (JFH)
6158.38 In reply to 6158.37 
Hi Mike,

>>Tell me, is there any reason why vMagnitude (Large circle radius) can be negative, so a range of -30 to +30 instead of simply 0 to 30?<<

Yes the range could be simply 0 to 30, but if you dial from start to finish you'll see that the extremes (-30, 30) are not identical.

It is similar to curves/polygon node setting "TYPE" "inscribed" / "circumscribed".

Have a great weekend

James

EDITED: 11 Aug 2017 by JFH

  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:  Mike (MGG942)
6158.39 In reply to 6158.38 
Not seeing that, James.
Is it dependent on the values of the other inputs?
Mike.
  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:  James (JFH)
6158.40 In reply to 6158.39 
Mike,

as shown, see attached

James


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
Next
 From:  Karsten (KMRQUS)
6158.41 
Pssst,
I don't want to disturb the discussion, but can someone test the problem of the locked Arrows with the new vector. js file?

Thanks in advance
Karsten
  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
6158.42 In reply to 6158.41 
Hi Karsten,

August 11, 2017
vector.js node non-erasable bug.

Hi Karsten,

I have tried the vector.js non-erasable bug, with three files, trochoid.node,
trochoid2.node, and CP_Oriented spi-Curve Result2.nod, with equivalent results.

A few permutations of Run, Stop, Apply, Delete, (+/-Undo), and Close script, were tried,
and yield different results.

The Curve is always delete-able.

If the Vectors have Not been deleted prior to Apply, they will not be Delete-able.

If the vectors Have been deleted prior to Apply, after Apply, they will be restorable and Delete-able.


1. ReOpen MoI, Load trochoid2.nod, press Run, Delete-able.

2. ReOpen MoI, Load trochoid2.nod, press Run, Stop, Delete-able.

3. ReOpen MoI, Load trochoid2.nod, press Run, (+/- Stop), Apply, (+/- Close nod), Only the curve will delete, the vectors are Not_Delete-able.

3. ReOpen MoI, Load trochoid2.nod, press Run, Select All, Delete, (+/- Undo), Apply, Close the nod. Curve is present. Vectors are recoverable with Undo.

In Short, the vectors need to be deleted before Apply is pressed. (And after deletion, it is OK to UnDelete the vectors, before Apply is pressed.)

(The permutations got confusing.)

(Also wondering about when blue curve should show up in Styles?)

- Brian

(These are the symptoms, and clues. The fix may be different.)

EDITED: 11 Aug 2017 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:  Mike (MGG942)
6158.43 In reply to 6158.40 
James,

Is it the same shape - but inverted?
Kind of useful, I guess.
I only picked up on it as it seems a bit weird giving a 'circle' a negative radius.

Mike.
  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:  1-3  4-23  24-43  44-50